Frustrating problem with 5.6.0.2 and image gallery add-ons
Permalink 1 user found helpful
Hi,
I've tried several image gallery add-ons, all based on javascript and not flash, and they worked fine on 5.5.x.x. Upon upgrading to 5.6.0.2 (I skipped 5.6.0 and 5.6.0.1) I noticed that none of them works, unless the viewer is logged in. Guest users get broken HTML code, abruptly truncated at the place such an image gallery block is inserted.
How can I work around this problem?
Some of the image viewers I tried in several themes and other combinations (and none worked unless logged in) are: dojo supersized! and Photo Swipe.
Thanks!
Ryuji
I've tried several image gallery add-ons, all based on javascript and not flash, and they worked fine on 5.5.x.x. Upon upgrading to 5.6.0.2 (I skipped 5.6.0 and 5.6.0.1) I noticed that none of them works, unless the viewer is logged in. Guest users get broken HTML code, abruptly truncated at the place such an image gallery block is inserted.
How can I work around this problem?
Some of the image viewers I tried in several themes and other combinations (and none worked unless logged in) are: dojo supersized! and Photo Swipe.
Thanks!
Ryuji
With your galleries, are you using file sets to manage them?
I've seen a bug with 5.6.0.2 lately where it wouldn't upgrade the permissions of the sets correctly (so you'd only be able to view the files in the sets when logged in). A fresh 5.6.0.2 didn't have the problem. The solution was to remove the set (not the files though) and simple recreate it and place the files back into the set.
Just an idea.
I've seen a bug with 5.6.0.2 lately where it wouldn't upgrade the permissions of the sets correctly (so you'd only be able to view the files in the sets when logged in). A fresh 5.6.0.2 didn't have the problem. The solution was to remove the set (not the files though) and simple recreate it and place the files back into the set.
Just an idea.
Just tried that .. No Success..
I'm using File Sets. And I use a LOT of them so that manually deleting and recreating is not an option. Is there any better way to deal with this? Thanks!
Addons that work when logged in and don't when not are generally down to jquery not being loaded.
Hmmm, But I have a standard slideshow on the same page that works just fine?
Download the add-on Simple Image Gallery...it's free. You can install it and add block to your page and scroll down to Simple Image Gallery. Once the Add Simple Image Gallery box appears, click the File Set drop down box and choose go to file manager. Click the check boxes next to each image you want to use. Then click the **With Selected drop down box and click Sets. It will bring up a box where you can type in the name of the fileset (i.e. Gallery) and click the checkbox that says Make Set Public. Click Update and then close the file manager box. You should then be back to the Add Simple Image Gallery box. Now click the Fileset drop down box once more and select the name of the Gallery you just created and click the blue Add+ button. It will add it to your page. You can save the edits and log out of your site. You will see that any visitor can now view your gallery.
Hope this helps.
Hope this helps.
Many thanks for the very detailed advice jmonroe however, the problem is a little more complicated now that I have found that the upgrade to 5.6.0.2 did not complete,
Running the upgrade?force=1 results in a spinner that eventually times out with a server 500 error,
Still probing......
Running the upgrade?force=1 results in a spinner that eventually times out with a server 500 error,
Still probing......
You can revert back to the previous version....access the folder /config/site.php and edit that file. Remove the last line about the update from < to >. You should have the salt value as your last line. Save the file and should be good.
Yes, I have already deleted the DIRNAME_APP_UPDATED definition and reverted to 5.5.2.1,
Thanks
Thanks
Have you tried doing a manual upgrade to 5.6.0.2 to see if it will complete? And then install or use the image gallery?
I think jquery is loaded in my case.
You can check at
http://beaupix.com
Also, some other add-ons that use jquery work unless there is another add-on in the same page that breaks it... example of a page that's not broken:
http://beaupix.com/headshot/
You can check at
http://beaupix.com
Also, some other add-ons that use jquery work unless there is another add-on in the same page that breaks it... example of a page that's not broken:
http://beaupix.com/headshot/
I had a look at your site, as one of our add-ons is affected on Ryuji's site, and I can see the Javascript has loaded... which is strange.
I did notice other javascript in the header that I don't remember seeing in previous C5's (may be wrong) so was wondering if it was that.
If you can PM me your FTP etc I can try a few things... before I go on holiday.
If its affecting other image galleries then it must be either this version of C5, JQuery or something else conflicting.
I am going to try a clean install here and see if I can recreate.
I did notice other javascript in the header that I don't remember seeing in previous C5's (may be wrong) so was wondering if it was that.
If you can PM me your FTP etc I can try a few things... before I go on holiday.
If its affecting other image galleries then it must be either this version of C5, JQuery or something else conflicting.
I am going to try a clean install here and see if I can recreate.
One finding.
If I enable debug option to show error messages to the visitors, I get this message when I'm not logged in:
Fatal error: Class 'FileSetPermissions' not found in /home/beaupixc/public_html/models/file_list.php on line 171
Does this mean that some files were not updated correctly? If so, is this primarily a consequence of a poorly made updater and manual updating is the solution?
Thanks again !
If I enable debug option to show error messages to the visitors, I get this message when I'm not logged in:
Fatal error: Class 'FileSetPermissions' not found in /home/beaupixc/public_html/models/file_list.php on line 171
Does this mean that some files were not updated correctly? If so, is this primarily a consequence of a poorly made updater and manual updating is the solution?
Thanks again !
Looks like a permissions error. Are your file sets/images set to public?
Again, this may be wrong but worth discounting.
Again, this may be wrong but worth discounting.
I get a server error with first:
Request URL:http://beaupix.com/
Request Method:GET
Status Code:HTTP/1.0 500 Internal Server Error
Not with second:
Request URL:http://beaupix.com/headshot/
Request Method:GET
Status Code:HTTP/1.1 200 OK
Request URL:http://beaupix.com/
Request Method:GET
Status Code:HTTP/1.0 500 Internal Server Error
Not with second:
Request URL:http://beaupix.com/headshot/
Request Method:GET
Status Code:HTTP/1.1 200 OK
I just tried a clean install on C5.6.0.2 and tried a couple of slideshows, including Dojo Suoersized and it all worked fine.
I am wondering if the error happens with an upgraded version?
I am wondering if the error happens with an upgraded version?
This would make sense. Its as if the path to the scripts are lost or something.
Maybe duplicating the add-on into your upgraded folders might help? Not sure.
Maybe duplicating the add-on into your upgraded folders might help? Not sure.
I tried a manual upgrade by putting a clean copy and upgraded through dashboard menu. It had no effect on this issue.
(For others who want to try manual updates, consulting these links might be useful.)
http://www.concrete5.org/documentation/how-tos/developers/manually-...
http://www.concrete5.org/community/forums/installation/update-for-c...
For now, I moved back because I can't lose business... But I'd rather find a solution!
(For others who want to try manual updates, consulting these links might be useful.)
http://www.concrete5.org/documentation/how-tos/developers/manually-...
http://www.concrete5.org/community/forums/installation/update-for-c...
For now, I moved back because I can't lose business... But I'd rather find a solution!
@RyujiS It looks like you have an over-ride file named 'file_list.php' in your 'root/models' folder (see attached jpg).I would rename that file temporarily and force the upgrade again. Now that you have debugging on, it might spit out a clearer reason for failing or if my fix works, it will upgrade successfully.
I had a bunch of over-ride files when I tried to upgrade and 5.6 didn't like some of them.
I had a bunch of over-ride files when I tried to upgrade and 5.6 didn't like some of them.
BINGO! This was it!!
Description of what happened...
In 5.4.2.2, there was a bug with file set, which was only unofficially resolved (to the best of my knowledge) and it was described here:
http://www.concrete5.org/community/forums/customizing_c5/problem-wi...
This solution required to override file_list.php and now 5.6.0.2 upgrade didn't like that file. Renamed it, manually upgraded again, and the problem is gone.
Thanks all who tried to help on this strange problem!
Description of what happened...
In 5.4.2.2, there was a bug with file set, which was only unofficially resolved (to the best of my knowledge) and it was described here:
http://www.concrete5.org/community/forums/customizing_c5/problem-wi...
This solution required to override file_list.php and now 5.6.0.2 upgrade didn't like that file. Renamed it, manually upgraded again, and the problem is gone.
Thanks all who tried to help on this strange problem!
So upgrading caused the issue.
Glad its sorted.
Glad its sorted.
I got a feeling it is a permissions problem but was unable to resolve it so I am sticking with 5.5.2.1 for now..