I was getting this error on my site:
• Notice: Use of undefined constant LOG_ERROR - assumed 'LOG_ERROR' in HTMLMailSystem->mail() (line 214 of /home/ncdcs/public_html_alpha/sites/all/modules/htmlmail/htmlmail.mail.inc).
When looking in the module code I noticed that the constant used in the watchdog() was incorrect. The correct ones are outlined here: http://api.drupal.org/api/drupal/includes--common.inc/function/watchdog_...
Attached is my patch that changes LOG_ERROR to WATCHDOG_ERROR on lines 165 and 213 of html.mail.inc
| Comment | File | Size | Author |
|---|---|---|---|
| log_error.patch | 790 bytes | sonictruth |
Comments
Comment #1
pillarsdotnet commentedYup. That's a leftover cruft from #1136130: Regression: Reinstate WATCHDOG_* constants and document why they are necessary.
Fixed in 7.x-2.61 release.
Comment #2
pillarsdotnet commented