Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
occoures when i try to run cron manually. This is the url where the error appears: /admin/reports/status/run-cron?destination=admin%2Fbuild%2Fthemes
and here is the complete error message, no css loaded, just white page with this line:
Fatal error: Class 'Messaging_Store' not found in /home/.../modules/messaging/messaging.module on line 559
i totally dont get it. any ideas?
Comments
Comment #1
Jose Reyero CreditAttribution: Jose Reyero commentedNeeds cache refreshing. Latest version (dev) will take care of it on update scripts.
Comment #2
StratisFear CreditAttribution: StratisFear commentedPossibly related:
require(/sites/all/modules/messaging/includes/messaging_store.class.inc) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/myserver/public_html/sites/all/modules/autoload/autoload.module on line 33.
The error is thrown by Supercron when it hits Messaging. If I invoke just Messaging via Supercron, it runs through and sends the que of messages.
Thanks
Comment #3
BenStallings CreditAttribution: BenStallings commentedI upgraded to the latest dev version and still get the error. Disabling the messaging module until a later upgrade fixes this problem.
Comment #4
BenStallings CreditAttribution: BenStallings commentedMy mistake, I had neglected to install the Autoload module when I upgraded. Works now! Thanks!
Comment #5
nilsja CreditAttribution: nilsja commentedi still get the error
Fatal error: Class 'Messaging_Store' not found in .../modules/messaging/messaging.module on line 538
after manual cron runs :( also after the update to the latest dev...
Comment #6
nilsja CreditAttribution: nilsja commentedComment #7
Jose Reyero CreditAttribution: Jose Reyero commented@nilsja,
Do you have Autoload module and did you run the updates?
Comment #8
nilsja CreditAttribution: nilsja commented@Jose Reyero, yes and yes. also cleared all caches...
Comment #9
Carlitus CreditAttribution: Carlitus commentedI have the same error that StratisFear #2
Fatal error: require() [function.require]: Failed opening required sites/all/modules/messaging/includes/messaging_store.class.inc' (include_path='.:/usr/local/lib/php') in sites/all/modules/autoload/autoload.module on line 33
I'm using the last dev of notifications and messaging and the last autoload, i've made the update.php and cache cleared.
Comment #10
Jose Reyero CreditAttribution: Jose Reyero commented@Carlitus,
Could you confirm that the file is present in that exact path?
sites/all/modules/messaging/includes/messaging_store.class.inc
?
This starts looking like a misterious bug
Comment #11
Carlitus CreditAttribution: Carlitus commentedUppss, sorry, this was my fault, i didn't add this to the svn repository. Now it works without errors, thanks for all Jose.
Comment #12
StratisFear CreditAttribution: StratisFear commentedSorry for being a little slow, but can you explain what you mean by "add this to the svn repository"?
Thanks
Stratis
Comment #13
nilsja CreditAttribution: nilsja commentedperhaps this help: when i try to deactivate the module "Messaging Privatemsg" i also get the error like on cron runs...
Fatal error: Class 'Messaging_Store' not found in /.../modules/messaging/messaging.module on line 538
and it is not deactivated! how can deactivate it?
Comment #14
Carlitus CreditAttribution: Carlitus commentedummm...don't worry about this, i hadn't all the files "uploaded" in the drupal instalation that had the error
Comment #15
Jose Reyero CreditAttribution: Jose Reyero commentedLet's do some recap. So far all the 'Class not found' errors have been traced back to one of:
- Missing Autoload module. You need to install the module, http://drupal.org/project/autoload
- Missing files. A bunch of new files come with the new version. Also updating a module means deleting old files before copying over new ones.
- Cache not refreshed after module update (again, autoload issues). This may hapeen in between 'dev' versions when a new class is added. We'll be adding a cache refresh to the update script for every new tagged release (every beta, rc, etc..)
Comment #17
gmclelland CreditAttribution: gmclelland commentedI just ran into this issue. I noticed that cron didn't work when using drush, but it did work when you run it through the website.
Here is the error I got when I tried to run "drush cron"
It fails because it is trying to load
/var/aegir/drush/sites/dp2.devsites.com/modules/messaging/includes/messaging_store.class.inc
instead of
/var/aegir/platforms/drupal/drupal6.17/sites/dp2.devsites.com/modules/messaging/includes/messaging_store.class.inc
I'm not sure why it is doing this?
Comment #18
JoeMcGuire CreditAttribution: JoeMcGuire commentedFor a more permanent fix please see and review #1351748: Autoload classes not found on enable.