PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /var/www/vhosts/xx.xx.com/httpdocs/sites/all/modules/mailmime/mailmime.inc on line 254,

Comments

sterndata’s picture

The cause is a misplaced "$" at line 254.

    if (empty($content_type)) {
      $content_type = $self::guess_mimetype($filename, $is_file ? NULL : $file);
    }

should be

    if (empty($content_type)) {
      $content_type = self::guess_mimetype($filename, $is_file ? NULL : $file);
    }
pillarsdotnet’s picture

Title: PHP Parse error » PHP Parse error: erroneous '$' in MailMIME::addHTMLImage() function at line 254 of file mailmine.inc
Assigned: Unassigned » pillarsdotnet

Thanks very much; fixing now.

pillarsdotnet’s picture

Version: 6.x-2.16 » 7.x-2.17
Status: Active » Fixed

Fixed in 6.x-2.17 / 7.x-2.17 / 8.x-2.17 releases.

Thanks very much for the report and fix.

Status: Fixed » Closed (fixed)

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