Any idea on why I'm receiving the following error ...

Fatal error: Call to undefined function notifications_event_build() in .../sites/all/modules/notifications_extra/messaging_notify/messaging_notify.module on line 256

I have latest of all modules and Drupal 6.19. I have beta7 of messaging and notifications but beta5 of extra. Could this be the problem? Is there a beta7 of extra?

Comments

itserich’s picture

I had the same error.

It seems to have been fixed by disabling the modules included in this module which are listed on the main page of the module, and re enabling them.

One that could not be re enabled is FeedAPI Subscriptions because Feedapi is missing. I don't currently use feeds so did not install it.

itserich’s picture

I am using the 4.0-beta5 version.

sajosh’s picture

Thanks for the suggestion. I tried it twice with no luck.

I only have enabled Message notifications and CCK Notifications so I unchecked them. Saved. Checked them. Saved. Updated content that would produce a message. Got same fatal error.

Did you do anything else? Perhaps uninstall notifications extra?

itserich’s picture

Sorry, the error came back. I have been trying to get messaging and geography and it is a mess.

itserich’s picture

I disabled the modules again, and re enabled only CCK notifications and comment subscriptions and no error message, yet.

sajosh’s picture

Is it possible that you need to create/update content that would use the enabled module (CCK Notif or Comment Sub) to get the error. So since you have CCK enabled you might try creating content that triggers CCK notif to see if the error occurs.

itserich’s picture

That may be, but I have not tried it much. The only time I think I saw the error message was when I did the Messagings Settings test, and I am not getting the error message now.

Have you tried Subscriptions, I think it is less flexible but it was easier to set up.

sajosh’s picture

Jose, Any idea about why this is happening? It's preventing cron from completing.

realrudymartin’s picture

Me too! I'm getting the same errors. I tried a fresh install on another site I have under development and am getting the same occasional error results.

Messaging templates test well. Events, type and actions enabled, formats and filters clean. Tested the send methods. I even have an "email action to role" working but notifications are not. Custom subscriptions also not working.

Does it have anything to do this the following?

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/notifications_tools/notifications.admin.inc' (include_path='.:/usr/local/php5/lib/php') in /home/content/59/6473859/html/includes/menu.inc on line 346

eighthourlunch’s picture

I got the same error when submitting a comment on an open Casetracker case. It went away when I refreshed the page. If you look at /notifications/includes/notifications_event.class.inc, you'll see that the function notifications_event_build() has been replaced. I changed line 262 in /modules/notifications_extra/messaging_notifiy/messaging_notifiy.module from

$event = notifications_event_build($data);

to

$event = notifications_event($data);

Seems to be working fine now.

sajosh’s picture

Thanks eighthourlunch! That' seems to have done it. I just changed the function and ran cron. It ran successfully. Also modified a couple of events that trigger notifications. They sent out the notice without the Fatal Error. Next test is whether cron runs automatically tonight.