Digibug Module Uncaught Exception
|Posted: Tue, 2009-08-11 18:17|
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 :
* modules/digibug/controllers/digibug.php :
Digibug_Controller->print_photo( 57 )
* system/core/Kohana.php :
ReflectionMethod->invokeArgs( Digibug_Controller Object
[input] => Input Object
* system/core/Event.php :
* system/core/Bootstrap.php :
Event::run( system.execute )
* index.php :
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.