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

CommentFileSizeAuthor
log_error.patch790 bytessonictruth

Comments

pillarsdotnet’s picture

pillarsdotnet’s picture

Version: 7.x-2.60 » 7.x-2.61
Assigned: Unassigned » pillarsdotnet
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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