Topic: WordPress Plugin Config.xml issue

Hey guys,

I know there are many posts on this issue but none of the solutions have yet to work for me. Perhaps I'm missing something obvious?

Basically I am using the Juicebox WordPress plugin but no matter what I try I can't get past the error Config XML Not Found. I'm working off a fresh WordPress and wp-juicebox plugin install. I did upgrade the jbcore folder to the pro folder though.

This is the site I'm trying to add a gallery to: etcillustration.com

I've checked compatibility with my server and I should meet all of the plugins requirements.

PHP version: 5.2.17
DOM extension is enabled

Wordpress version: 3.8.1

WP-JuiceBox version: 1.3.3.1

It is adding XML files to my /wp-content/uploads/juicebox folder and the permissions on that folder are 777

I don't know if this means anything but if you open the XML from the direct path you see all my settings:
http://etcillustration.com/wp-content/u … ebox/1.xml
but if you instead go to http://etcillustration.com/wp-content/p … llery_id=1 you just see a blank xml file.

This is a test gallery with only 2 images in it that I'm pulling from the NextGEN gallery plugin. I've tested creating a gallery directly pulling from WP's Media Library but that also doesn't work. I've also tried switching from my custom theme to one of the default themes to no avail.

Thanks for the help!
-Matt

Re: WordPress Plugin Config.xml issue

Unfortunately, I cannot replicate this problem (using servers with PHP 5.3.8 and PHP 5.4.21).
However, I do not believe your problem is related to permissions or a conflicting plugin or theme.
It sounds like a PHP-related issue (perhaps a bug in PHP 5.2.17).
Try changing line 121 of the 'wp-juicebox/config.php' file from:

echo $dom_doc->saveXML();

... to:

echo $dom_doc->saveXML($settings_tag);

WP-Juicebox uses saveXML() with no arguments which, according to the PHP documentation, should output the entire document (and does in my own test galleries).
However, in your case, nothing is output at all so instructing saveXML() to output just a specific node (as in the modification above) may help.

Re: WordPress Plugin Config.xml issue

Thanks for the response. Unfortunately I'm still not having much luck with this. Maybe its something I should bring up with my host regarding the PHP?

When I built everything locally it all worked just fine. However I have PHP 5.4.17 locally and not 5.2.17

Re: WordPress Plugin Config.xml issue

Did you try the modification I suggested? Did it help?
I think your problem is likely to be PHP related but even if there is a bug in v5.2.17, there is likely to be a workaround (although I would need access to a server running PHP v5.2.17 in order to run a few tests).
I do not know for sure that a PHP bug is the cause of your problem but going directly to http://etcillustration.com/wp-content/p … llery_id=1 confirms that a plugin or theme conflict is not the issue and the only other differences between your instalation and my own are the server itself and the version of PHP installed (and, as you say, it worked OK for you when using PHP 5.4.17).
If you have not yet tried my suggestion above, please give it a go and see if it helps.

Re: WordPress Plugin Config.xml issue

Unfortunately I ended up with the same results.

I sent in a support request to my host about the PHP but have yet to hear back.

In the meantime I can just revert back to using the Juicebox Pro Builder and uploading/embedding that. Will a WordPress page require an iFrame?

I would just prefer to use the plugin since it makes it easy to dynamically pull from NextGen gallery folders. This site is my wife's and I need to make it as easy as possible for her to add new images.

Re: WordPress Plugin Config.xml issue

Will a WordPress page require an iFrame?

No. You can use the baseUrl method of embedding as documented here.

From what you say and my own tests, it looks like an upgrade to PHP might solve the problem.
However, in order to determine the exact cause of the problem, I would need to run a few tests on PHP v5.2.17.
If you are willing to give me access to your web server (FTP login details) then please let me know and I will send you an email address so that you can pass them on to me.