I've got Elysia Cron running on my site; on the whole, everything is fine. The only problem is that, a few times a day, the elysia_cron/cron.php job throws an error of the form PHP Fatal error: Cannot redeclare class QueryConditionInterface in /var/www/html/the_site/includes/database/query.inc on line 16. What makes this is weird is that the_site is NOT the site that Elysia Cron is installed in. The two sites are running on the same server (quite happily, aside from this) and there are no references or interconnections between the two. I'm not seeing any ill effects from this, but I'd really like to understand what's going on, because it sure doesn't seem like the Right Thing. Any advice? Thanks!
Comments
Comment #1
gotheric commentedProbably this is not an error on elysia cron, but in another module that is invoked during cron process.
However the weird thing is that elysia_cron is not installed in that site...
Elysia_cron files are installed in that drupal site (in sites/all/modules/elysia_cron), and simply the module is disabled, or are not present at all?
Are you sure that the error is thrown by elysia_cron?
You could try to intercept the fatal error (via error_handler/exception_handler) or the watchdog_error and send an email to you when that happens with a stack trace of the error (or log that in watchdog).
But this is an hard thing to do and you should have PHP and drupal code experience to do this...
Maybe there is some drupal module that helps... i don't know...
Comment #2
jim_at_miramontes commented>>However the weird thing is that elysia_cron is not installed in that site...
>>Elysia_cron files are installed in that drupal site (in sites/all/modules/elysia_cron), and simply the module is disabled, or are not present at all?
Elysia cron is not installed at all on the other site (the one mentioned in the error message).
>>Are you sure that the error is thrown by elysia_cron?
Yes. I get notified of the error by email from the server, and the subject of the message is
Cron <root@linux2> curl -s "http://mydomain/sites/all/modules/elysia_cron/cron.php?cron_key=my_cron_key">>You could try to intercept the fatal error (via error_handler/exception_handler) or the watchdog_error and send an email to you when that happens with a stack trace of the error (or log that in watchdog).
>>But this is an hard thing to do and you should have PHP and drupal code experience to do this...
>>Maybe there is some drupal module that helps... i don't know...
Indeed. This was just a shout-out to see if there was any awareness of this on the boards; I'll try something like that as time permits.
Comment #3
kala4ek