Hello,
I have a G2 installation that used to work very well. I haven't been on the site for a while and today, when I try to go to the gallery's URL, I get the following message:
Quote:
Error
Item not found.
Back to the Gallery
Error Detail -
Error (ERROR_MISSING_OBJECT)
in modules/core/classes/GalleryView.class at line 368 (GalleryCoreApi::error)
in modules/core/ShowItem.inc at line 106 (GalleryView::getItem)
in modules/core/ShowItem.inc at line 61 (ShowItemView::getItem)
in modules/core/classes/GalleryView.class at line 293 (ShowItemView::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88
I can still access admin with the URL: main.php?g2_view=core.SiteAdmin
The gallery is in debug mode (buffered)
It is installed with Joomla 2.5.17 and JFusion 1.8.4-009 Rev ( c2e3d2b1... ). I cannot access the gallery whether JFusion is active or not.
Thanks in advance for your help.
URL de Gallery = http://www.toutlaville.com/mediatheque/main.php
Gallery version = 2.3.1 noyau 1.3.0.1
API = Noyau 7.54, Module 3.9, Thème 2.6, Intégré 1.5
PHP version = 5.3.16 cgi-fcgi
Serveur Web = Apache
Base de données = mysql 5.1.66-0+squeeze1-log, lock.system=flock
Boîtes à outils = ArchiveUpload, Exif, Getid3, ImageMagick, LinkItemToolkit, Thumbnail, Gd, SquareThumb
Accélération = none/0, full/900
Système d'exploitation = Linux web276.media.ha.ovh.net 3.10.11-mutu-grs-ipv6-64 #1 SMP Tue Sep 24 18:07:54 CEST 2013 x86_64
Thème par défaut = matrix
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Lignes dans la table GalleryAccessMap = 27
Lignes dans la table GalleryAccessSubscriberMap = 0
Lignes dans la table GalleryUser = 209
Lignes dans la table GalleryItem = 5024
Lignes dans la table GalleryAlbumItem = 128
Lignes dans la table GalleryCacheMap = 0
PHPInfo Link : http://www.toutlaville.com/phpinfo.php
Posts: 8339
Apparently the error is not visible to anonymous users.
See if you can tell which itemId is missing from the debug output.
try clearing the caches http://www.toutlaville.com/mediatheque/lib/support/
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
Hi,
Thanks for your answer.
I just cleared the cache as advised.
As an anonymous user, I get the following message:
I can login and use administration back office using the url: http://www.toutlaville.com/mediatheque/main.php?g2_view=core.SiteAdmin
How can I see which itemId is missing from the debug output? I searched for "itemId" and "missing", but I did not find anything.
I've attached the debug output I get when I log in to the gallery.
Thanks!
Posts: 8339
see what the integrity module reports http://codex.galleryproject.org/Gallery2:Modules:integrity
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
Attached the integrity module report.
Posts: 8339
You can try my missing object fix script.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
Tried it, get the error in attached file
Posts: 8339
do you have another admin user you could try logging in as?
Or if you can create one in admin and give it a try.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
What is the purpose? I can login as admin already.
Posts: 9
I logged in with another admin account, but same result when running missingObjectFix.php:
Posts: 8339
user id:6 is the root admin account, and this admin user does not have core.view permissions for id:7 which is the root album.
That is a problem.
try adding core.view permissions for admin:
http://www.toutlaville.com/mediatheque/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemPermissions&g2_itemId=7
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
Unfortunately, I can't change permissions, I only can access administration panel.
Posts: 8339
do you have access to phpMyAdmin(or similar) for your gallery's database?
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
Yes, full access to PHPMyAdmin.
Posts: 8339
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 9
It appears that every table of my database had been duplicated with identical names without capital letters, and that table g2_AccessSubscriberMap was empty! I copied the content of table g2_accesssubscribermap in table g2_AccessSubscriberMap and everything is back to normal and works perfectly!
Any idea about what can have happened?
Anyway, many thanks for your very reactive and efficient help.
Pierre
Posts: 8339
if you moved from windows to *nix - *nix is case sensitive whereas windows is not.
there was a script to help fix that http://codex.galleryproject.org/Downloads:FixLowercaseFilenames
-s
________________________________
All New jQuery Minislideshow for G2/G3