#3138 - An error has occurred - The requested page (galleries) is missing.
| Identifier | #3138 |
|---|---|
| Issue type | Major issue (breaks an entire feature) |
| Title | An error has occurred - The requested page (galleries) is missing. |
| Status | Completed |
| Handling member | PDStig |
| Addon | galleries |
| Description | After bulk uploading images to a gallery an error page is displayed with message "An error has occurred - The requested page (galleries) is missing." when choosing an image to view from the gallery.
Clicking images in the first few rows (first 10 or so images) in multipage mode all is ok, but if clicking images 45 or more (further down the page) the error page is loaded. |
| Steps to reproduce | run on composr 10RC33 since install
-browse in bulk upload gallery for photos -select more than 40-70 images in one hit -uncheck flow mode -upload or submit -then browse gallery (don't have a paging control, but that is another issue).
-when page is displayed with images click one of the first 10 or so and image page is loaded with next/previous buttons enabled -when going back to click an image that is further down the page - lets say image 45 or more, an error page showing the message "An error has occurred - The requested page (galleries) is missing." is displayed along with add page button and the sitemap / structure in tree view.
seems that the url of later images drops the "site" folder information as shown in the urls below.
images that work - http://mysite.com/site/index.php?page=galleries&type=image&id=basketball%2Ffriday_night20%2Funtitled-648&root=root&keep_gallery_root=root
images that don't - http://mysite.com/index.php?page=galleries&type=image&id=basketball%2Ffriday_night20%2Funtitled-458&root=root&keep_gallery_root=root |
| Additional information | -if I copy the url and include the site folder directive on a non working image the image will be displayed but the next/previous button are disabled.
-also in edit image the thumb_nail image is not displayed on some image listed when hovering over the image name. |
| Funded? | No |


Comments
Thanks for your detailed report.
Quite a lot is going on here so I'll try and summarise what you've found...
1) No pagination. This is because you have "Infinite scrolling" enabled (the default), so it just shows them as you scroll down.
2) No next/previous. I can't reproduce on my machine except for the last image in the gallery and the first, but even then it's only one button disabled. However, it could be that you've enabled the "Narrow-in when browsing" option for galleries, in which case it may be there truly only is 1 image in the gallery you were viewing an image for. This option would show all gallery images in browsing of the root gallery, but previous/next would be confined to the specific gallery they belong in.
3) "also in edit image the thumb_nail image is not displayed on some image listed when hovering over the image name." I don't really understand what you mean with this one. I did find a bug on mass import though, which may be related. It is importing things like Windows or MacOS thumbnail files as gallery videos, making a mess. I've just fixed this.
4) The main issue, the wrong URL. This only happens when single public zone is not enabled (and it isn't by default). It's a nasty bug and I've just fixed it.
This hotfix fixes a pagination issue when 'single public zone' is not enabled, and affects multiple addons. It is very important that you only extract files that you already have, as fixes are included for all affected addons and you almost certainly will not have all addons. i.e. Don't extract a file that doesn't replace an existing file.