Closed (fixed)
Project:
Messaging
Version:
6.x-4.0-beta5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2010 at 13:29 UTC
Updated:
24 Nov 2011 at 15:33 UTC
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 commentedNeeds cache refreshing. Latest version (dev) will take care of it on update scripts.
Comment #2
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 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 commentedMy mistake, I had neglected to install the Autoload module when I upgraded. Works now! Thanks!
Comment #5
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 commentedComment #7
jose reyero commented@nilsja,
Do you have Autoload module and did you run the updates?
Comment #8
nilsja commented@Jose Reyero, yes and yes. also cleared all caches...
Comment #9
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 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 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 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 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 538and it is not deactivated! how can deactivate it?
Comment #14
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 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 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 commentedFor a more permanent fix please see and review #1351748: Autoload classes not found on enable.