• After updating the plugin from 2.2.4 to 2.2.5, my client got the following message after logging into the site:

    Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or ‘$’ in {rest of directory path}/wp-content/plugins/wp-html-mail/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 160

    All WordPress emails stopped being set as well. I reverted back to 2.2.4. and everything worked fine.

    Thanks,

    Dave.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Me too!!
    I fix it, file /wp-content/plugins/wp-html-mail/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 160 change
    from: usort($rules, array(RuleProcessor::class, ‘sortOnSpecificity’));
    to: usort($rules, array(‘RuleProcessor’, ‘sortOnSpecificity’));

    CssToInlineStyles requires php 5.5 but I have PHP 5.4.

    Best regards
    Gabriele

    Hello, WordPress recommends at least PHP 5.6 so I also increased requirements for my plugin.

    Hi @haet I must say your plugin for e-mail template is the best out there. Simple to use yet powerful. But its a bad thing that PHP 5.6 is needed. Its not that simple to get hosting to upgrade PHP version quick enough and specially not with the excuse for one plugin that dosent work. And I think its strange that you dont write this significant change in the changelog or for the specifications.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error after upgrading to 2.2.5’ is closed to new replies.