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
Comment #1
danepowell commentedYes, 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.
Comment #2
Sean Buscay commentedHey 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.
Comment #3
danepowell commentedI 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.
Comment #4
Sean Buscay commentedPHP 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.
Comment #5
danepowell commentedThat's the same version as me, and I'm not seeing this- do let me know what you find.
Comment #6
danepowell commentedSo what did you find out? Did you have a chance to try a fresh install?
Comment #7
danepowell commentedGoing to assume this is a problem related to not completely uninstalling a previous version.
Comment #8
obrienmd commentedRe-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.
Comment #9
danepowell commentedOne 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.
Comment #10
adamgerthel commentedI'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.
Ps. I haven't had MailHandler installed prior to this. It's on a fresh install. Running PHP Version 5.3.6
Comment #11
danepowell commentedFixed in alpha3
Comment #12
adamgerthel commented@Dane: Amazingly fast response! Nice work