• Resolved joeymarino

    (@joeymarino)


    I get the following error upon activating the plug in after upgrading to 4.6.1

    Parse error: syntax error, unexpected T_STRING in /home/content/21/5073021/html/wp-content/plugins/wp-mail-logging/wp-mail-logging.php on line 34

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    what php version are you running? The linenumber indicates the usage of namespaces. Namespaces are supported since php 5.3.

    • This reply was modified 9 years, 9 months ago by No3x.
    Thread Starter joeymarino

    (@joeymarino)

    5.4.28

    Are you sure? Do you have multiple instances of php installed? If the error appears with 5.4.28 I don’t have a answer.

    Thread Starter joeymarino

    (@joeymarino)

    You were right. I was looking at the wrong hosting account. Upgrading to 5.4.x worked.

    Thread Starter joeymarino

    (@joeymarino)

    Really weird. I don’t know if it’s a godaddy issue or what, but after upgrading to 5.4 on the cpanel, the plugin activates fine then a few minutes later, it fails again. Same error. I go and check the CLI, the php version installed is 5.3.13. Should still work with 5.3 though, correct?

    Hi, 5.3 is required for namespaces but I use some other features that need 5.4. The plugin should activate fine with 5.3 but throw a message saying you need to run with 5.4 without php errors at least.
    The php version on cli is not always the php version used to process .php files. You could check this with a simple phpinfo().

    Thread Starter joeymarino

    (@joeymarino)

    Ya, that’s what I did. Not sure why my Cpanel says 5.4 and my instance is running 5.3. I guess I’ll have to talk with godaddy. Thanks for helping

    -bash-3.2$ php -r "phpinfo();"
    phpinfo()
    PHP Version => 5.3.13
    

    They did a lot of performance tweaks on php. Sorry for breaking the site for you and forcing you for upgrade php but on the other hand it’s overdue.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Fatal Error on Activation’ is closed to new replies.