1

(1 replies, posted in Juicebox-Pro Support)

Please see this forum post for details: https://juicebox.net/forum/viewtopic.php?id=5318
(The solution is to use AIR v33.1.1.744.)

2

(7 replies, posted in Juicebox-Pro Support)

It's a long shot but it could be due to corrupt or missing Microsoft Visual C++ Redistributable files.

Try downloading and installing the latest Microsoft Visual C++ Redistributable files from here: https://learn.microsoft.com/en-us/cpp/w … le-version

Pick both the x86 and x64 versions (JuiceboxBuilder-Pro is an x86 application).

3

(7 replies, posted in Juicebox-Pro Support)

Thank you for the clarification.
It's certainly not a widespread problem but I found two other instances of a similar problem in the forum here (one from 2019 and the other from 2023).
I don't think there's a resolution that's going to help you in either of the threads but you might like to read through them in case something triggers an idea you might like to try.
https://juicebox.net/forum/viewtopic.php?id=4814
https://juicebox.net/forum/viewtopic.php?id=5377

Unfortunately, I do not know the cause of the problem or have a fix for you.
I'll keep researching, though, and if I find anything that might be useful, I'll post back here to let you know.

4

(7 replies, posted in Juicebox-Pro Support)

Thank you for posting the Event Viewer logs.

Looking solely at the logs, I'd try uninstalling and reinstalling Adobe AIR (making sure to use v33.1.1.744).
The weird thing is that you say JuiceboxBuilder-Lite runs OK (which suggests that your AIR installation is OK).
I'd still try uninstalling and reinstalling Adobe AIR, though.

Just so I can be clear on what you've already tried:

(1) Do you use any anti-virus software and were you able to completely disable it when trying to run JuiceboxBuilder-Pro?

(2) Were you able to locate and manually delete all of the following folders between uninstalling and reinstaiing JuiceboxBuilder-Pro?

  • C:\Program Files (x86)\JuiceboxBuilder-Pro

  • C:\Users\Username\AppData\Roaming\Adobe\AIR\ELS\JuiceboxBuilder-Pro

  • C:\Users\Username\AppData\Roaming\JuiceboxBuilder-Pro

  • C:\Users\Username\Documents\JuiceboxBuilder-Pro

Also, is there anything odd going on with your system's Documents folder? Have you renamed it or moved it from it's default location? Is it actively being synced by an online backup of file-sharing service (such as Dropbox, Google Drive or OneDrive)? If so, try temporarily disabling the service to see if this helps.
Any problem with the Documents folder might prevent JuiceboxBuilder-Pro from initializing it's own temporary work folder.

5

(2 replies, posted in Juicebox-Pro Support)

Please see this forum post for a full description of the problem and a solution (use AIR v33.1.1.744): https://juicebox.net/forum/viewtopic.php?id=5318

6

(7 replies, posted in Juicebox-Pro Support)

This is certainly unusual (especially as JuiceboxBuilder-Lite continues to function correctly) and, unfortunately, I'm not sure what might be causing it.

The first thing I should mention is that JuiceboxBuilder-Lite and JuiceboxBuilder-Pro can be installed and run side-by-side on the same computer without any problem, so JuiceboxBuilder-Lite should not be interfering with JuiceboxBuilder-Pro in any way.

JuiceboxBuilder-Lite and JuiceboxBuilder-Pro also share a lot of the same code so it's strange that one would work while the other does not.

I'd try a complete uninstall and reinstall of JuiceboxBuilder-Pro to see if this helps.
Follow the uninstall procedure noted as #11 in this forum post: https://juicebox.net/forum/viewtopic.ph … 453#p17453
If JuiceboxBuilder-Lite runs OK, you can skip steps 3, 4 and 5 (uninstalling and reinstalling JuiceboxBuilder-Lite and Adobe AIR) but be sure to manually delete any and all folders corresponding to JuiceboxBuilder-Pro after running the uninstaller (details in link above).

If this does not help, then you might need to dig a little deeper to figure out why JuiceboxBuilder-Pro is crashing.

Do you have any anti-virus or security software installed? If so, try temporarily disabling it to see if this helps. (Microsoft's own virus and threat protection should be fine but other third-party programs can be very aggressive with their detection sometimes resulting in false positives.)

Also, check the Windows Event Viewer immediately after the crash to see if anything is logged in the 'Windows Logs -> Applications' or 'Windows Logs -> System' sections which might point you in the right direction.
(Check the exact time of the crash and look for entries in the Windows Event Viewer with the same timestamp.)

I hope this helps.

7

(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.

8

(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.

10

(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.

11

(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.

12

(3 replies, posted in Juicebox-Pro Support)

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.

13

(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.

14

(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.

15

(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.

16

(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.

17

(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.

18

(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).

19

(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.

23

(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).

24

(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.

25

(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).