Fatal error when sending messages with an invalid notifier

Created on 3 December 2013, over 10 years ago
Updated 15 January 2024, 5 months ago

When message_notify_send_message is called and can't find the plugin for the specified notifier, an exception is thrown, but a misplaced parenthesis causes a fatal PHP error:

Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in sites/all/modules/contrib/message_notify/message_notify.module on line 24

The misplaced parenthesis means the format_string $args parameter is being passed to the MessageNotifyException constructor instead of format_args. A patch is attached to resolve this error.

πŸ› Bug report
Status

Closed: outdated

Version

2.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dwillems

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024