a white screen of death WSOD comes up when when tries to create a new custom subscription after enabling it.
http://www.testsite7.com/admin/messaging/customsubs/new

on checking the apache logs it shows

[Wed Jun 02 15:23:28 2010] [error] [client 192.168.1.33] PHP Fatal error:  Class 'Notifications_Custom_Subscription' not found in /work/projects/testsites/testsite7/www/sites/all/modules/contrib/notifications/notifications_custom/notifications_custom.module on line 355, referer: http://www.testsite7.com/admin/messaging/customsubs

Once we clear the cache via http://www.testsite7.com/admin/settings/performance the WSOD goes away.
This is probably due to the the autoload modules needs caches to be cleared as mentioned
on the homepage of the module

http://drupal.org/project/autoload
NOTE: Remember to clear all caches in your module's hook_enable() if your module relies on autoload. Autoload information is cached and your class may not be found if the autoload cache is not cleared.

CommentFileSizeAuthor
#1 notifications_custom.module.patch507 bytesyasheshb

Comments

yasheshb’s picture

Status: Active » Needs review
Issue tags: +WSOD
StatusFileSize
new507 bytes

here's the attached patch. requesting review.

thx.

yashesh

jose reyero’s picture

Status: Needs review » Needs work

I think the cache will be automatically refreshed after enabling a new module.

Most of the issues we are running into are because of new classes in new versions of the Notificaitons modules so they're actually upgrade issues.

yasheshb’s picture

If the caches were refreshed automatically after enabling a new module then there would not have been a need to clear the caches via the admin interface.
i think it's a cache issue as mentioned clearly by the documentation in the Autoload module.

kswan’s picture

Version: 6.x-4.0-beta5 » 6.x-4.0-beta6

I just had the same issue on beta6.

I updated from a -dev that was a couple weeks old to beta6 (using drush up).
Then enabled Custom Subscriptions (using the modules page).
Next, I went to the Custom subscriptions page and clicked on Add new custom subscription.
The same error that yasheshb had occurred.
After clearing the cache, the error was gone.

alison’s picture

I am having this issue with beta6 too, and I just installed this and the Autoload module yesterday. I cleared my cache and ran cron a few times since first experiencing the issue but I'm still getting WSOD. In case it matters, I only enabled Custom Subscriptions today, though I enabled the other subscriptions/notifications/messaging/autoload modules yesterday.

alison’s picture

Sorry, meant to include the errors...

Here:

[10-Jun-2010 13:41:18] PHP Fatal error:  Class 'Notifications_Custom_Subscription' not found in /path/to/sites/all/modules/notifications/notifications_custom/notifications_custom.module on line 369

[10-Jun-2010 13:42:30] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/path/to/sites/all/modules/notifications/notifications_custom/notifications_custom.class.inc' (include_path='.:/usr/share/pear') in /path/to/sites/all/modules/autoload/autoload.module on line 33

(The first error showed up 3 times in a row in my log; the second error showed was listed 6 times in a row after the 3 instances of the first error.)

Thank you!

jose reyero’s picture

Status: Needs work » Fixed

Applied the patch. Thanks.

To fix the error disable and enable the 'Custom' module.

Status: Fixed » Closed (fixed)
Issue tags: -WSOD

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