Digibug Module Uncaught Exception
|
rasamassen
Joined: 2009-08-01
Posts: 12 |
Posted: Tue, 2009-08-11 18:17
|
|
PHP Info: http://lutheranlakeside.com/gallery3_test/info.php In my G3B2 logs, I'm regularly getting the following error: I looked in my access logs, and this is what is always found when I get this type of exception: From what I figure, GoogleBot is following the Print link in the gallery and getting an error for whatever reason. I tested this link on the latest experimental version, and the problem is still happening (http://lutheranlakeside.com/gallery3_test/index.php/digibug/print_photo/57?csrf=681a2c5e27beda41adcf69416b8bdac1). --- So here's the error: File: modules/gallery/helpers/access.php, line: 189 * modules/gallery/helpers/access.php [390]: access_Core::forbidden( ) * modules/digibug/controllers/digibug.php [22]: access_Core::verify_csrf( ) * Digibug_Controller->print_photo( 57 ) * system/core/Kohana.php [291]: ReflectionMethod->invokeArgs( Digibug_Controller Object [input] => Input Object ) * Kohana::instance( ) * system/core/Event.php [209]: call_user_func( Array * system/core/Bootstrap.php [55]: Event::run( system.execute ) * index.php [86]: require( system/core/Bootstrap.php ) --- What is causing the error is straightforward. The csrf is unique for each session, and it's not validating properly. Your regular user won't run into this error. However, my error logs shouldn't be filling up with an error like this because it shouldn't happen that often (averaging 200 of these errors a day). Possible correction could be a robots.txt (simple, blocks GoogleBot and other spiders). I'm not sure what else would correct this, as I'm not that familiar with the architecture, but I'm betting a robots.txt is not the best solution. |
|

Posts: 25945
please file a bug for this issue.
https://sourceforge.net/apps/trac/gallery/newticket
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7985
Wacky! Thanks for filing the ticket, we'll have to figure out a way to prevent this from happening.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!