Produced using: Commit c032821 on 6.x-2.x

When setting up a new mailbox, after changing the parser to Mailhandler IMAP stream parser, go to edit the settings and a White Screen Appears.

Logs revealed:

PHP Fatal error: Class 'MailhandlerAuthenticate' not found in...mailhandler/plugins/authenticate_plugin/MailhandlerAuthenticateDefault.inc on line 12

Notes:

It appears that whatever included the 'MailhandlerAuthenticate.inc' stopped including it correctly.

Perhaps when the files directories were recently changed?

As a test I included the missing class from within MailhandlerAuthenticateDefault.inc right above line 12

include_once ('MailhandlerAuthenticate.inc');

Result:

Error disappeared and so far configuration continues to work.

Comments

danepowell’s picture

Yes, the method for including plugins changed dramatically. Either it truly broke, or this is a caching issue. Did you completely uninstall Mailhandler, and clear any caches (Drupal, APC, memcache, etc...) before installing the new dev version, as indicated on the project page? (Not accusing, just curious) I'll double-check this when I get a chance.

Sean Buscay’s picture

Hey Dane.

Good question.

This was a fresh install of mailhandler via "drush dl mailhandler-6.x-2.x-dev"

Then drush en, drush cc all, and drush cron.

I just do the cc all and cron by habit.

Feeds and job_scheduler were done the same way. All fresh, though my codebase already had other modules installed and running for awhile.

danepowell’s picture

I am not able to reproduce this. What version of PHP are you running? And just to confirm, you've never had mailhandler installed on this Drupal site right? I can only imagine this is specific to PHP <5.3, or PHP has a cached version of those classes and is looking in the wrong place for them.

Sean Buscay’s picture

PHP Version 5.3.2-1ubuntu4.7

I'll try a fresh Drupal and mail handler install in the next few days to see if it occurs again.

I'll get back to you with what I find.

danepowell’s picture

That's the same version as me, and I'm not seeing this- do let me know what you find.

danepowell’s picture

So what did you find out? Did you have a chance to try a fresh install?

danepowell’s picture

Status: Active » Closed (cannot reproduce)

Going to assume this is a problem related to not completely uninstalling a previous version.

obrienmd’s picture

Status: Closed (cannot reproduce) » Active

Re-opening this, trying to troubleshoot this exact same problem now. This is on a mailhandler override of the one installed in open atrium beta9 install profile, via a complete module uninstall (from drupal db) and new mailhandler downloaded into sites/sitename/modules/ directory for override, then enabled. Dane is trying to reproduce the error, more coming soon.

danepowell’s picture

One of my test sites is suddenly reproducing this error as well- I will investigate further and roll an alpha3 tomorrow. Probably just a matter of manually including the class as you mention.

adamgerthel’s picture

I'm getting this error as well (using 6.x-2.0-alpha2, April 10) when trying to import from the /import page. I'm new to the module have just started setting up the feed and was trying out my first import. Strangely enough the logs are empty. No sign of this error at all there.

An error has occurred.
Please continue to the error page

An error occurred. /batch?id=6&op=do <br /> <b>Fatal error</b>: Class 'MailhandlerAuthenticate' not found in <b>--path--/sites/all/modules/contrib/mailhandler/plugins/authenticate_plugin/MailhandlerAuthenticateDefault.inc</b> on line <b>12</b><br />

Ps. I haven't had MailHandler installed prior to this. It's on a fresh install. Running PHP Version 5.3.6

danepowell’s picture

Status: Active » Fixed

Fixed in alpha3

adamgerthel’s picture

@Dane: Amazingly fast response! Nice work

Status: Fixed » Closed (fixed)

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