There is a bug on the cron run.
It fails to run because of this line of code on line 119 in the file session_api.module
if (!empty($outdated_sids)) {
module_invoke_all('session_api_cleanup', $outdated_sids);
db_query('DELETE FROM {session_api} WHERE sid IN (:sids)', array(':sids' => $outdated_sids));
}
When I comment this line, it runs perfectly. I tried to implement this hook but to no avail; it still fails.
if (!empty($outdated_sids)) {
// module_invoke_all('session_api_cleanup', $outdated_sids);
db_query('DELETE FROM {session_api} WHERE sid IN (:sids)', array(':sids' => $outdated_sids));
}
If this hook should be implemented in a custom module, kindly indicate it and how in a documentation.
Regards,
Comments
Comment #1
a.ross commentedYou probably have a module that implements hook_session_api_cleanup, and that breaks cron.