1

(21 replies, posted in Juicebox-Pro Support)

If you are logging into 'wordpress' then everything ought to be created in 'wordpress' (i.e. with 'wordpress' in the path) so I don't think that redirecting towards non-'wordpress' pages is a good idea. This will work for old pages (which already exist in the non-'wordpress' site) but anything new created in 'wordpress' will only be publicly accessible and visible when 'wordpress' is in the path (in an ideal scenario if everything is working as expected).
I hope Hostinger can help to sort this out for you.

2

(21 replies, posted in Juicebox-Pro Support)

If you think a migration might have gone awry, then maybe your web how would be best suited to help you resolve this.
If you don't remember installing WortdPress twice (in two different locations), then it's quite possibly a migration problem.

You certainly seem to have two different login URLs:

... which suggests to me that you have two different installations.

Your current redirect ensures that the site seen by the public is always the root directory site (not the /wordpress/ one).
This suggests that it's the root site that you should be using but I don't know which one you've recently been logging into.

Unfortunately, I have no knowledge of the history of your site (whether a second installation was intentional or a migration ever took place) or access to your web server.
With this in mind, I think your web host would be better placed to help you untangle things.

Here are a couple of things you could check to see if things make sense:

(1) Check /wp-config.php and /wordpress/wp-config.php to see if both installations are using the same database and/or table prefix. Look for:

define('DB_NAME', ...);
$table_prefix = 'wp_...';

(2) Check /wp-config.php and /wordpress/wp-config.php to see if the path to the content directory (the parent directory for the uploads directory where Juicebox stores its XML files) is explicitly defined. Look for:

WP_CONTENT_DIR

In a regular installation, this constant will not be present (and WordPress will just use the default value of ABSPATH . '/wp-content'). However, the path can be overridden with WP_CONTENT_DIR so it might be interesting to see if one installation has an explicit entry for WP_CONTENT_DIR.

You might be able to 'fix' your problem by setting a WP_CONTENT_DIR in the wp-config.php file in one of your installations to force a certain content directory to be used.
e.g.

define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content');

... or:

define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wordpress/wp-content');

However, with your two installations seemingly intertwined, I don't know which installation you should target for this 'fix' or which path to use.
(Also, I put 'fix' in quotes as this is more of a potential workaround than a true fix as, under normal circumstances, you shouldn't need to define a WP-CONTENT_DIR and you'll still be left with two installations on your server.)

Maybe you'd get more specialized help from a WordPress forum or more knowledgeable support from your web host (as they will have access to everything and might have been involved in the installation and/or migration). These are avenues I'd certainly explore.

... higher in the queue

Incidentally, there won't be a queue. There will be one content directory specified per installation and either it will be used or saving content will simply fail. As noted above, the default path will be used unless WP_CONTENT_DIR is specified.

I'd forgotten about that post and I also forgot that there's a checkbox in the WP-Juicebox gallery settings that would enable you to simply turn off gallery titles without removing them from NextGEN. Sorry about that. I'm glad you found it.

I hope you are able to disentangle your two WordPress installations. I've posted an observation in your other thread which might (hopefully) help.

4

(21 replies, posted in Juicebox-Pro Support)

I've just noticed that going to:

https://inmagicland.com/wordpress/2024/02/whistler-spankys-ladder

... redirects to:

https://inmagicland.com/2024/02/whistler-spankys-ladder/

... i.e. there's a redirect from one WordPress account (the one with /wordpress/ in the path) to the other.

If you remove the redirect (which might be in a .htaccess file or a setting in your web hosting account's control panel), this might help to disentangle your two WordPress installations.

I can't think of any other reason why one WordPress installation would save files to the uploads folder in another WordPress installation which, by all accounts, it should not even know about.

I think the root of the problem could either be that both WordPress installations are sharing the same database or that the redirect is causing problems in the admin sections of your sites.

5

(21 replies, posted in Juicebox-Pro Support)

Ah, so you have two separate WordPress installations, one in your root directory and another in /wordpress/.
That would certainly explain things.

WP-Juicebox saves each gallery into the current installation's /wp-content/uploads/ folder.
WP-Juicebox fetches the path to this folder using WordPress's own wp_upload_dir() function and the ['basedir'] key. This is the recommended method of pointing towards the /wp-content/uploads/ folder in the active installation without hard-coding any paths.

It looks like both of your WordPress installations might be returning the same value for this, which would be correct for one site but incorrect for the other.
Are both of your WordPress sites using the same database by any chance? If so, they ought to be using different table prefixes. If they are both using the same table prefix, then they will be intertwined and I can see how this might be a probable cause.

The thing is, no matter where WP-Juicebox saves the file to, it should still be able to find it again as the same get_gallery_path() function is used to save and load the files.

I'm just noting everything I can think of in case it helps but I'm really not sure how to untangle this so that you can continue with one site and perhaps abandon the other.

If I can think of anything else you could try, I'll be sure to let you know.

I see the filename in both Firefox and Chrome.
If you are not seeing the same thing in both browsers, then try clearing your browsers' caches and reload your web page.

The filename is the image's 'Title' rather than its 'Caption' (Juicebox terminology) and, as the gallery is a NextGEN gallery, the 'Title' is being pulled from the NextGEN 'Alt Text' rather than the NextGEN 'Description' (which is used for the 'Caption').

If you don't want the image filenames to appear, edit the images in your NextGEN gallery and remove the 'Alt Text' entries.
You might need to clear your browsers' caches after making any changes.

7

(21 replies, posted in Juicebox-Pro Support)

I don't see any obvious problem with the code and I cannot replicate the problem which makes troubleshooting difficult.

The next step would be check where your setup is looking for the gallery #203 file.
This would confirm whether or not the internal path is correct.
If the path is OK, then the next step would be to figure out why the file check is failing.

Some modifications to the 'wp-juicebox.php' file will be required.

Open 'wp-juicebox.php' (from 'plugins/wp-juicebox/') and change the error message on line 375 from:

return '<div><p>Juicebox Gallery Id ' . $clean_gallery_id . ' cannot be found.</p></div>' . PHP_EOL;

... to:

return '<div><p>Juicebox Gallery path ' . $gallery_filename. ' cannot be found.</p></div>' . PHP_EOL;

This will print the full path to the gallery XML file rather than just the gallery ID in the error message.
We can then see if the path is correct.
Please let me know what the error message now says with this modification in place.

If the path looks correct, then the only other reason for the shortcode handler to fail would be if the path fails the PHP is_file() check. (There are many instances of this function throughout the source code so if your PHP installation has any problem with this function, I would expect the plugin to fail in other areas, too.)

N.B. The line number refers to WP-Juicebox v1.5.1.4.

8

(21 replies, posted in Juicebox-Pro Support)

Thank you.
Here's what I can deduce from this:

(1) The shortcode itself is fine, otherwise WP-Juicebox wouldn't recognize it and go looking for a gallery.

(2) The shortcode handler can extract the gallery ID fine (as it forms part of the error message).

(3) The problem seems to be with the shortcode handler creating the full path to the '202.xml' file and confirming that it is an actual file. Why this happens sporadically and not consistently across all galleries is a mystery to me at the moment (as the '202.xml' file is present and correct on your web server and the 'config.php' file finds the '202.xml' file without any problems and dynamically generates the gallery's XML data fine).

One thing I noticed in my investigations was that you seem to be using WP-Juicebox v1.5.1.1 and not the current version v1.5.1.4.
I don't know if it will resolve your problem but I'd certainly recommend upgrading.
WP-Juicebox is not in the official WordPress repository so you'll not be able to upgrade it on the 'Plugins' page.
Instead, you'll need to download it from here: https://juicebox.net/support/wp-juicebox/
... and follow the installation instructions (overwriting your existing WP-Juicebox plugin files).

I'll keep my fingers crossed that this helps.

9

(21 replies, posted in Juicebox-Pro Support)

It was blank when I checked it. I guess you must have deleted the gallery by then.

Where exactly are you seeing "Juicebox Gallery Id 202 cannot be found."? Is it in the admin section or the gallery's page? If it's the gallery's page, could you please provide a link to it so that I can see the problem for myself? I'm not sure it will help but it might.

10

(21 replies, posted in Juicebox-Pro Support)

I don't know why it's happening but there is no WP-Juicebox XML settings file for gallery #201: https://inmagicland.com/wordpress/wp-co … ox/201.xml
... which results in a completely empty gallery XML configuration file: https://inmagicland.com/wordpress/wp-co … ery_id=201

Unfortunately, I'm no further forward in figuring out what is going on.
All I can say with any certainty is that new galleries are displaying as expected in my own setup so the combination of WP-Juicebox 1.5.1.4 and NextGEN 4.1.3 ought to work in your own setup, too.

If I can think of anything else that might help (or anything else that you could check that might point us in the right direction), I'll be sure to post back here.

11

(21 replies, posted in Juicebox-Pro Support)

I, too, have read (in the plugin's WordPress Support forum) that a lot of users are experiencing issues with NextGEN 4. They seem to have deprecated a lot of features from NextGEN 3.

Having said that, I just created a test gallery in WordPress 7.0 RC2 under PHP 8.1.31 with NextGEN 4.0.5 and WP-Juicebox 1.5.1.4.
The gallery displayed OK (with the exception of the thumbnails due to this issue).
I then upgraded to PHP 8.4.1 and NextGEN 4.1.3 and the gallery remains the same.

I'm really not sure what the problem is with your own galleries but maybe you could try reverting to NextGEN 3.59.12 which at least one user claims is a solid workaround for NextGEN 4 problems (see here for details).

WP-Juicebox has not been fully tested on PHP 8.2 but I think that your problem is more likely to be connected to NextGEN than PHP.

12

(21 replies, posted in Juicebox-Pro Support)

I can see why your gallery is blank but I do not know what caused it.

If you check out the XML configuration file for gallery #191: https://inmagicland.com/wordpress/wp-co … ery_id=191
... you'll see that it has no image information at all (just gallery configuration options).

The 'juicebox.js' JavaScript file is being loaded in your page OK, the gallery's embedding code is present and correct in your page and the gallery's XML configuration file is being generated OK but the images are not being picked up.

WP-Juicebox uses another XML file (where the image source is stored) to generate the actual XML configuration file that Juicebox uses to display the gallery.
You can find the corresponding XML file for gallery #191 here: https://inmagicland.com/wordpress/wp-co … ox/191.xml
(The fact that the file exists is the reason why the gallery listing shows up in the Manage Galleries page.)

You'll see the entries e_library="nextgen" and e_nextgenGalleryId="215", telling WP-Juicebox to create a XML configuration file containing all the images from NextGEN gallery #215.
I'm guessing that there's a problem with either:
(1) WP-Juicebox being unable (for some reason) to fetch the images from NextGEN gallery #215.
... or:
(2) NextGEN gallery #215 contains no images (for whatever reason).

WP-Juicebox seems to at least be creating and embedding all the files the gallery needs. The problem seems to be that it can't fetch or find the images from your NextGEN galleries.

Gallery #192 seems to be suffering from the same problem as gallery #191; all the required files are there but there is no image information in the XML configuration file.

I know this does not directly resolve your problem but I hope it's at least a first step in the right direction towards finding the cause (and it should hopefully let you eliminate some potential problems).

13

(3 replies, posted in Juicebox-Pro Support)

I'm glad you've got it working. Thanks for letting me know!

I'm glad to hear you've managed to resolve your problem.
Thank you for posting back to let me know. It's most appreciated.
Best wishes!

The gallery embedding options galleryWidth and galleryHeight,which can be expressed as absolute pixel values or as percentages (of their parent container), are supported by both Juicebox-Lite and Juicebox-Pro.
If you continue to experience difficulties, please post the URL to your gallery so that I can take a look at the problem for myself and hopefully help further. Thank you.

So far, I see a part of the first photo in the viewer that is cropped on all sides.

Maybe you're just seeing the Splash Page (see here for details and scroll down).
The Splash Page is an image placeholder for the gallery which, when clicked, will expand the gallery to fill the browser viewport (to give the gallery as much room as possible).
By default, the Splash Page will be displayed on mobile devices when a gallery is embedded in a web page alongside other content (where the gallery might be too small to use). By default, Juicebox uses the first image in the gallery as the Splash Page image (and crops if necessary). You can change this if you like via the splashImageUrl option (in JuiceboxBuilder-Pro's 'Customize -> Splash Page' section).
You could also choose to not use the Splash Page at all by setting showSplashPage="NEVER".
Please note that these are Pro options (not available in Juicebox-Lite).

Also, if you are using a fixed value for your galleryWidth, try using a percentage instead (e.g. 100%).
However, please be sure to set widths for all parent containers using CSS so that your browser knows what the gallery's width should be 100% of.

17

(6 replies, posted in Juicebox-Pro Support)

I'm sorry to hear that. It seems like a very aggressive security policy they have in place and it's unfortunate that they do not allow you to make decisions about the security on your own web site.
At least you know the root of the problem and can work around it (although I realize there is no quick and easy solution, other than to perhaps change your web host to one which gives you more freedom).

18

(3 replies, posted in Juicebox-Pro Support)

Unfortunately, WordPress changed some of their internal code which now prevents the 'Add Juicebox Gallery' button from appearing in the Gutenberg editor.
With an update to WP-Juicebox unlikely, the best solution would be to create the gallery on the 'WP-Juicebox -> Manage Galleries' page and then copy the shortcode (provided on the 'Manage Galleries' page after creating a new gallery) into your page or post.
This should still work fine.

19

(6 replies, posted in Juicebox-Pro Support)

I'm glad you're making progress but it seems very strange that your web host does not allow you to have any files named 'config.xml' on your server or that you can't simply make an exception for files named as such in the security module that it appears your are being forced to use (otherwise, I guess you could just have switched it off).

20

(6 replies, posted in Juicebox-Pro Support)

I should be able to see your gallery's 'config.xml' file here: http://www.edpeet.com/gallery/config.xml
However, going directly to that location in a browser results in the message "Your request was blocked by the Web Application Firewall".
You should be able to view the 'config.xml' file like in this demo gallery: https://juicebox.net/demos/lite/full/config.xml

It looks like something on your web server is blocking access to your gallery XML files and this is causing your problem.
This makes sense as, if you have changed nothing on your website but the galleries now no longer function, then this suggests that something must have changed on your web server to cause the problem (as none of the gallery code itself will have changed).

Please check in with your web host and ask them to allow XML files (at least your gallery XML files) through your Web Application Firewall.
This should resolve your problem.

One other thing: I used to have a login to juicebox.net, but it doesn't recognize my login anymore. I tried "resetting my password", by no email was received. Could this have something to do with the problem?

If you have trouble with an old forum account, please email me at steven@juicebox.net (with a note of your forum username) and I can sort you out with a temporary password so that you can log in (and then change the password without needing an email confirmation).
Incidentally, any problems with your forum account would have no effect on your website. This is a completely separate issue.

21

(3 replies, posted in Juicebox-Pro Support)

I'm glad you've found the cause of your problem.
Thank you for posting back to let me know. It's most appreciated.

22

(3 replies, posted in Juicebox-Pro Support)

I cannot be sure, as I don't have access to all the files involved, but it appears that you might have some custom CSS in your 'styles.css' file that is overriding the default Juicebox CSS and interfering with the layout of the gallery's Button Bar.

Check your 'styles.css' file for any generalized CSS rules that the gallery might inherit. Look out for any CSS rules that, for example, apply to all 'img', 'p' or 'div' tags (rather than just specific instances of these tags through use of ids and classes).

I hope this points you in the right direction.
However, if you continue to experience difficulties, please post the URL to your gallery's web page so that I can see the problem for myself.
Once I'm able to see the gallery live on your web server, I'll be able to inspect all the files and hopefully determine the cause of the problem.
Thank you.

23

(1 replies, posted in Juicebox-Pro Support)

First of all, try completely clearing your browser's cache (or use a different browser, one that you've not previously used to view your gallery, e.g. Chrome, Edge, Firefox, Opera, Safari), in case you've modified your gallery's 'config.xml' file but your browser is still using an older, cached version.

Otherwise, please post a link to your gallery's web page (or email it to me at steven@juicebox.net) so that I can actually inspect the gallery itself (I appreciate the screenshot but I cannot really troubleshoot an image).
Once I'm able to see the gallery live on your web server, I can view the gallery for myself, check the gallery's 'config.xml' file and use browser developer tools to delve further. Hopefully I'll be able to determine the exact cause of the problem and propose a solution. Thank you.

24

(1 replies, posted in Juicebox-Pro Support)

You can manually change the name of your gallery's configuration file via the configURL Embed Option.
Just add a line such as the following to your gallery's embedding code and rename your gallery's configuration file accordingly.

configURL: "juicebox-data.xml",

For example:

<script src="jbcore/juicebox.js"></script>
<script>
    new juicebox({
        containerId: "juicebox-container",
        configURL: "juicebox-data.xml",
        galleryWidth: "100%",
        galleryHeight: "100%",
        backgroundColor: "rgba(34,34,34,1)"
    });
</script>
<div id="juicebox-container">

Apologies for my previous reply (which I have since deleted as it was simply incorrect).
I completely forgot about the Embed Options for a moment as they are not actually available within the JuiceboxBuilder-Pro interface but they are available for manual use.

25

(2 replies, posted in Juicebox-Pro Support)

I can confirm that there's not an official plugin for Photomator (or even an unofficial one, as far as I'm aware).

If you're using Photomator to edit your images, then I reckon the best course of action might be to feed them to JuiceboxBuilder-Pro to create your Juicebox-Pro galleries.
If you don't want JuiceboxBuilder-Pro to modify any of your images after editing them in Photomator, be sure to deselect the 'Resize Images' checkbox on the 'Images' tab (as seen in the first screenshot in the link above).

The installation file for JuiceboxBuilder-Pro (JuiceboxBuilder-Pro.air) can be found inside the Juicebox-Pro zip file.
Instructions for installing JuiceboxBuilder-Pro can be found here.
Make sure that you have AIR v33.1.1.744 (and not the very latest version of AIR) installed first. Details here.

If necessary, you can download the latest version of Juicebox-Pro using the link from your original purchase.
Download links always point towards the latest version rather than the version you purchased.
If you cannot find your download link or your link has expired, you can request a new one via the online Download Link Request Form.