Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 12640152

    (@anonymized-12640152)

    which is your php version?(is less then 5.3.0 ?). This plugin requires PHP version >= 5.3.0.

    I am also getting suddenly getting this error sitewide, causing the whole site to be down.

    Parse error: syntax error, unexpected T_STRING in \wp-content\plugins\sendgrid-email-delivery-simplified\wpsendgrid.php on line 60

    I receive this message for versions 1.3.2, 1.3, 1.2, 1.1 (line 57), and 1.0. Oddly, I have several other sites on the same server using 1.3.2 with no issues. Additionally, until yesterday, the site with an issue was using 1.3.2 with no problems.

    I’m trying to figure out what changed yesterday to cause the problem on just this one setup. All my sites using SendGrid are on WP 3.9.2. Perhaps even more oddly, I tried to install the Big Mailer SendGrid plugin as a stop gap and it creates the same error, at the same piece of code as yours:

    $mail = new SendGrid\Mail();

    This leads me to think it’s not an issue with either plugin, but with something else.

    Anonymous User 12640152

    (@anonymized-12640152)

    Ok, thanks for the feedback and let us know if you find other issues with the plugin.

    Hello all,

    We were able to sort out that the issue was because our host had changed our server that did not have PHP’s mail() function enabled.

    Calling to instantiate a new Mail() object causes a fatal error if mail() has not been enabled on the server.

    So, no fault of the plugin, just our server set up.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Will not activate due to parse error’ is closed to new replies.