1 (edited by didge4u 2014-07-08 14:04:16)

Topic: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

Hello all,

Sorry, I think I am the causer of this problem. Please be patient with me, my english is poor.

My problem:
Tody a visitor of my webpage told me, that the galleries are not working. So I deleted the wordpress juicebox-plugin folder manually and added it manually.

Unfortunately I saw to late the update version 1.4.0.2, so I do the whole plugin installation like described in the support website. But now when i wan't to add a new juicebox gallery the following error appears: 
www.pelles.ch/juicebox_error.jpg

And all galleries have the following message:
http://www.foto.pelles.ch/alma-mater-universitaet-bern/

What have I done? What can I do? Sorry but my programming knowledge is poor too.

Greetings from Switzerland (today we lost the game)

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

It looks like your WordPress installation or web server is preventing direct access to PHP files (which will break WP-Juicebox).

If you use the BulletProof Security plugin, then this will almost certainly be the cause of your problem and you will need to add a skip/bypass rule to the .htaccess file in your root directory as follows:

# Juicebox skip/bypass rule
RewriteCond %{REQUEST_URI} ^/wp-content/plugins/wp-juicebox/ [NC]
RewriteRule . - [S=13]

If you do not use the BulletProof Security plugin, then please check your .htaccess file for an entry such as:

<Files *.php>
    deny from all
</Files>

If you find such an entry, either comment it out or remove it and WP-Juicebox should work as expected.

3 (edited by didge4u 2014-07-02 05:25:34)

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

Hi Steven
Thanks for your input. But it doesn't work. I have no bullet proof plugin.

This is the content of my .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Can you explain why it was working with version 1.4.0.1 and now it breaks with version 1.4.0.2?
cheers pat

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

If I go directly to the PHP file which generates your gallery's XML data, an error 404 (file not found) is displayed.
http://www.foto.pelles.ch/wp-content/pl … llery_id=7

This suggests that either the file does not exist on your web server, or that access to the file is being blocked.
This is the reason why both your gallery settings pop-up window (in the backend) and the gallery (in the frontend) do not display. They require direct access to the 'jb-config.php' and 'config.php' files respectively.
(This has not changed between v1.4.0.1 and v1.4.2.0.)

Please check the following:
(1) Check that all the WP-Juicebox files (including 'config.php' and 'jb-config.php') are present on your web server.
(2) Check that the permissions on these files are not too restrictive. (Permissions of 644 should be fine.)

Also, you could try checking with your web host to see if they have made any changes recently which would be affecting things this way.

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

Thx for your patience.

They have apparently done no changes on the web host.
As you see in the screenshot the settings to the whole plugin-folder are 777:
http://www.pelles.ch/juicebox_settings.jpg

When i open the gallery:
http://www.foto.pelles.ch/alma-mater-universitaet-bern/
The error says: "Config XML file not found." But when I put a direct link to the XML-File. The file is found:
http://www.foto.pelles.ch/wp-content/up … ebox/7.xml

I am still confused that I can add no new gallery.
Should I delete all galleries and reconfigure the whole plugin?

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

The '7.xml' file (and all other numerical XML files in the 'uploads/juicebox/' directory) store settings for each gallery but they are not the actual XML files used by Juicebox when the galleries are displayed.

The XML files used by Juicebox when the galleries are displayed are generated dynamically by the 'config.php' file (with a 'gallery_id' query string so that Juicebox knows which numerical XML file to take the settings from) and it is because the plugin cannot access PHP files directly that the "Config XML file not found." message is displayed.

Try temporarily deactivating all plugins (other than WP-Juicebox) and reactivate them one-by-one (checking the functionality of your Juicebox galleries after each one) to see if you can find a conflicting plugin.

The problem seems to be one of security so if you have any security-related plugins, I would try disabling them first.

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

Hi Steven,
Ok, you're right. The problem is not due to the update from 1.4.0.1 to 1.4.0.2.

I can tell you what I have done:
I installed a separated Wordpress Publication on my server with the basic template set: http://luca.pelles.ch/wp2.

After that I installed the wp-juicebox-plugin Version: 1.4.0.1. When I want to Add a new juicebox-gallery e internal Server error appears:

http://www.pelles.ch/juicebox_ServerError.png

I think that i will embedd my galleries with a <iFrame>-Tag, because Juicebox-Galleries works fine outside of Wordpress
Link: http://www.pelles.ch/1476/

It's a pity.

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

The problem is that your web server is denying direct access to PHP files.
If you contact your web host, they may be able to help or point you in the right direction.

You could certainly load your galleries into iframes but you could also embed your galleries directly into your WordPress pages or posts using the baseUrl method of embedding as documented here.
Essentially, you would create a Juicebox-Pro gallery using JuiceboxBuilder-Pro, upload your entire Juicebox gallery folder (not just the contents) to your web server and then paste the baseUrl embedding code into the body of your WordPress page or post (ensuring that the method of entry is 'Text' rather than 'Visual').
It does not matter where on your web server you upload your gallery folder to as long as the two paths in the embedding code (the path to the 'juicebox.js' file and the baseUrl itself) are correct.

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

Finally, it works!

Thank you very much for all your work!

I had a little e-mail conversation with a support member of my provider. The solution is to set the permissions of the juicebox-plugin folder and all the sub-files and folders to 755.
With the permissions 777  appears the server Error and nothing works. They updated the PHP Version to 5.5. I don't know if this is the "problem".
Cheers
Patrick

Re: Can't add new gallery after upgrading to 1.4.0.2 [SOLVED]

WP-Juicebox requires PHP v5.2.0 or later so the upgrade to v5.5 should not have made a difference.
Also, permissions of 777 should work OK. By defenition, 777 permissions gives full permissions to all but it looks like your web server may actually restrict access when using 777.

In any case, I am glad that your problem has been resolved.
Thank you for posting back to let me know.