Hi,
On Login to Gallery we get the following error:
Error
An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_COLLISION)
in modules/core/classes/GallerySession.class at line 702 (GalleryCoreApi::error)
in modules/core/classes/GallerySession.class at line 305 (GallerySession::_acquireNewPersistentSession)
in modules/core/classes/GallerySession.class at line 488 (GallerySession::start)
in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 327 (GallerySession::regenerate)
in modules/core/classes/helpers/GalleryEventHelper_simple.class at line 117 (GalleryUserHelper_medium::handleEvent)
in modules/core/classes/GalleryCoreApi.class at line 2140 (GalleryEventHelper_simple::postEvent)
in modules/core/UserLogin.inc at line 143 (GalleryCoreApi::postEvent)
in main.php at line 231 (UserLoginController::handleRequest)
in main.php at line 94
in main.php at line 83
System Information
Gallery version 2.2.4
PHP version 5.2.9 cgi
Webserver Apache/1.3.42 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_gzip/1.3.26.1a mod_ssl/2.8.31 OpenSSL/0.9.8e-fips-rhel5
Database mysqlt 5.0.92-community-log
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux serv01.m1106.sgded.com 2.6.18-194.32.1.el5PAE #1 SMP Wed Jan 5 18:43:13 EST 2011 i686
Browser Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
User mentioned that he may have uploaded a very large photo prior to the error occurring.
Does anyone have any suggestions as to a solution?
Many thanks.
Posts: 8339
Should upgrade to 2.2.4 -> 2.2.6 -> 2.3.2
Try clearing caches and sessions in gallery admin -> maintenance
or yoursite.com/gallery2/lib/support
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Thanks very much for the advice. We've installed the upgrade but are now getting the following error:
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_PERMISSION_DENIED)
in modules/core/classes/GalleryController.class at line 147 (GalleryCoreApi::error)
in main.php at line 206 (GalleryController::loadController)
in main.php at line 104
in main.php at line 88
System Information
Gallery version 2.3.2
PHP version 5.2.9 cgi
Webserver Apache/1.3.42 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_gzip/1.3.26.1a mod_ssl/2.8.31 OpenSSL/0.9.8e-fips-rhel5
Database mysqlt 5.0.92-community-log
Toolkits NetPBM, Gd
Operating system Linux serv01.m1106.sgded.com 2.6.18-194.32.1.el5PAE #1 SMP Wed Jan 5 18:43:13 EST 2011 i686
Browser Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
This happens when trying to Login (i.e. after entering username and password and clicking Login button) and also if using some of the navigation links (i.e. trying to navigate back to the 'root' album after viewing sub-albums/photos.
Have cleared the cache via the yoursite.com/gallery2/lib/support. Can't log in because of above error to get to the Admin page to do any other maintenance.
Many thanks.
Posts: 8339
Have you tried w/ different browsers?
Also try clearing all cookies for your site.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Yes, have cleared cookies etc and have also tried with different browsers and from different computer at different locations.
Posts: 8339
Put gallery in debug mode
FAQ: How to set/use Gallery in debug mode?
Copy/paste the error msg from a login attempt to a txt file and attach it to this forum.
Not the smarty popup.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Thanks, see attached.
Posts: 8339
Nothing really stands out there.
One possibility could be large or crashed DB tables.
Using phpMyAdmin or similar truncate(empty) the following tables:
g2_EventLogMap, g2_FailedLoginsMap, g2_ImageBlockCacheMap, g2_SessionMap
make sure to make a backup 1st
Also check for crashed tables and repair if necessary.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Hi, have tried all of the above but unfortunately still the same problem. Can you suggest anything else?
Many thanks,
Posts: 8339
Hmm..
Make sure the last line of gallery2/config.php is either:
$gallery->setConfig('baseUri', '');
or your correct url ie.
$gallery->setConfig('baseUri', 'http://yoursite.com/gallery2/main.php');
You can also re-run the upgrader to step 2 system checks and see if gallery complains about anything.
Lastly make sure your g2data is readable/writable recursively
chmod -R 0777 /full/system/path/to/your/g2data
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Success!! The URL in config.php was incorrect.
Many thanks for your assistance suprsidr!
Best regards,