I get this error

PHP Fatal error: Class name must be a valid object or a string in /sites/all/modules/contrib/message_notify/message_notify.module on line 30

when I try to send the confirmation message with this module via rules and on commerce order creation.

This line fixes the error: ctools_include('plugins'); because by default "ctools_plugin_load_class" function is not loading the class when you use rules and cache backend like Redis (not sure about others, but it should be the same).


function message_notify_send_message(Message $message, array $options = array(), $notifier_name = 'email') {
  ctools_include('plugins');
  if (!$plugin = message_notify_get_notifier($notifier_name)) {
    throw new MessageNotifyException(format_string('Could not send notification using the "@notifier" notifier.'), array('@notifier' => $notifier_name));
   }

Please add the call for ctools plugins include.

Comments

a.dmitriiev created an issue. See original summary.

joelpittet’s picture

That call exists in message_notify_send_message() I'm not sure how that resolves the problem you are having.

bluegeek9’s picture

Status: Active » Closed (outdated)