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

Jose Reyero’s picture

Status: Active » Fixed

Needs cache refreshing. Latest version (dev) will take care of it on update scripts.

StratisFear’s picture

Possibly 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

BenStallings’s picture

Version: 6.x-4.0-beta3 » 6.x-4.0-beta5
Status: Fixed » Needs work

I upgraded to the latest dev version and still get the error. Disabling the messaging module until a later upgrade fixes this problem.

BenStallings’s picture

Status: Needs work » Fixed

My mistake, I had neglected to install the Autoload module when I upgraded. Works now! Thanks!

nilsja’s picture

i 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...

nilsja’s picture

Status: Fixed » Active
Jose Reyero’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

@nilsja,

Do you have Autoload module and did you run the updates?

nilsja’s picture

@Jose Reyero, yes and yes. also cleared all caches...

Carlitus’s picture

I 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.

Jose Reyero’s picture

@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

Carlitus’s picture

Uppss, sorry, this was my fault, i didn't add this to the svn repository. Now it works without errors, thanks for all Jose.

StratisFear’s picture

Sorry for being a little slow, but can you explain what you mean by "add this to the svn repository"?

Thanks

Stratis

nilsja’s picture

perhaps 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?

Carlitus’s picture

ummm...don't worry about this, i hadn't all the files "uploaded" in the drupal instalation that had the error

Jose Reyero’s picture

Status: Postponed (maintainer needs more info) » Fixed

Let'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..)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gmclelland’s picture

I 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"

Fatal error: require(): Failed opening required '/var/aegir/drush/sites/dp2.devsites.com/modules/messaging/includes/messaging_store.class.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/aegir/platforms/drupal/drupal-6.17/sites/dp2.devsites.com/modules/autoload/autoload.module on line 33
Drush command could not be completed.                              

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?

JoeMcGuire’s picture

For a more permanent fix please see and review #1351748: Autoload classes not found on enable.