Topic: WP-Juicebox problem

I am also having problems with the Wordpress plugin.  When I try to add a gallery to a post or a page, I get a pop-up box that displays my homepage.  I'm not sure what is wrong.  I even tried the lite version and the pro version (substituting the folder of the plugin per the instructions) with no luck either way.  Any ideas?

Re: WP-Juicebox problem

This is a problem with the admin (backend) section and the 'jbcore' folder is used only when the gallery is displayed (the frontend) so swapping the Juicebox-Lite 'jbcore' folder for the Juicebox-Pro 'jbcore' folder will not help with the problem that you are experiencing.
When clicking the 'Add Juicebox Gallery' button, the plugin's own 'jb-config.php' file (in the 'wp-content/plugins/wp-juicebox/' directory) should open in the pop-up window. I do not know why your own homepage would open in the pop-up window instead.
Try reinstalling the current version of the WP-Juicebox (v1.3.1.0) from scratch to ensure that all plugin files are present and correct on your web server.

Re: WP-Juicebox problem

Still having the same problem after re-install.

Idea.  Maybe it has to do with the directory structure of my site?  The Wordpress install is actually in www.hmkphotography.com/blog/, but it is re-directed (within Wordpress config options) to appear at www.hmkphotography.com.  Would this possibly mess something up with the plugin?  Is there a configuration option somewhere that I can change?

Take a look here to see what I'm talking about: http://www.hmkphotography.com/juiceboxissue.jpg

Re: WP-Juicebox problem

It is not actually your homepage which is displayed in the pop-up window but your web site's error 404 page, indicating that the required page cannot be found.
Either the 'jb-config.php' file is not in the 'wp-juicebox' directory or your WordPress installation is returning an incorrect path for the plugins_url() function. (WP-Juicebox uses the WordPress 'plugins_url()' function to determine the location of the 'jb-config.php' file.)

It looks like there may still be a WordPress configuration option you need to change with regard to your redirection.
Please see the Moving WordPress page for details.

If this does not help, then you could hard-code the path to the 'jb-config.php' file by opening the 'wp-juicebox/wp-juicebox.php' file in a plain text editor and changing line 651 from:

JB.Gallery.configUrl = "<?php echo plugins_url('jb-config.php', __FILE__); ?>";

... to:

JB.Gallery.configUrl = "http://www.hmkphotography.com/blog/wp-content/plugins/wp-juicebox/jb-config.php";

Please note that the line number above refers to the current version of WP-Juicebox (v1.3.1.0).

Re: WP-Juicebox problem

Ah, good catch.  That is the 404 page.

Tried hard-coding the location to jb-config.php with no luck.  It's loading the page just fine according to Firebug - no issues with the pathway despite the redirect.

Any other ideas for things I might try?

Re: WP-Juicebox problem

Did notice an error in Firebug that may be causing this, as it throws a 404 error...

[15:50:44.675] GET http://www.hmkphotography.com/blog/wp-c … onfig.php? [HTTP/1.1 404 Not Found 733ms]

I noticed that if you try to load the page without the "?" at the end, it loads fine.  With the "?" causes the 404.  Looking in the code for how the ? is added but if anyone knows, it would save me a search :)

Re: WP-Juicebox problem

Are you perhaps using the Bulletproof Security plugin?
If so, then you will need to add a bypass rule to your root .htaccess file to allow WP-Juicebox to function correctly.
Add the following code to your root .htaccess file:

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

If you are not using the BulletProof Security plugin, then try deactivating all your installed plugins other than WP-Juicebox and re-activate them one by one (checking your WP-Juicebox functionality after each one) to see if you can find a conflict.

Re: WP-Juicebox problem

Hi

Wondered if andyhm managed to sort this problem? I have been through all the steps taken above with no success. Sure it's connected with BP Security somehow. Hardcoded URL into wp-juicebox.php and I have deactivated and deleted BPS.

Also started with a clean install. Also deactivated all plugins except Juicebox and still not working. Cannot get jb-config.php to load when trying to add a gallery.

Any ideas as no where to go for me from here?

Re: WP-Juicebox problem

If you are using BulletProof Security, then this will almost certainly be the cause of your problem and you will need to use a skip/bypass rule as above. (I have tested this myself and it works fine.)
Please note that if your WordPress installation is in a subfolder, then you will need to add your WordPress subfolder name to the path in the rule as follows.

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

You may also like to take a look at this WordPress forum thread which deals with the same problem.