Support » Plugin: WP Mail Logging by MailPoet » Fatal Error on Activation

  • Resolved Azunga

    (@azunga)


    Can’t activate the plugin:

    Parse error: syntax error, unexpected ‘[‘ in …./public_html/wp-content/plugins/wp-mail-logging/WPML_Email_Log_List.php on line 88

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor No3x

    (@no3x)

    You should not be able to activate the plugin at all as it requires at least php 5.4. This is enforced
    Since php 5.4 it is possible to to initialize arrays with a shorthand $array = [] instead $array = array().

    Please have a look at http://php.net/supported-versions.php and consider making an update of php. I’m not willing to adapt my code to support the use of legacy php versions.

    Thread Starter Azunga

    (@azunga)

    Thanks for the reply. This is being hosted on a clients third party hosting service which I thought had 5.4 but it sounds like it doesn’t. I’ll double check. I wouldn’t ever expect someone to downgrade their plugin for legacy versions of php. Thanks so much!

    Plugin Contributor No3x

    (@no3x)

    You can use the previous version of the plugin, I guess. It should not activate with versions prior 5.4 but it behaves like it’s running with php prior 5.4 – strange.

    Plugin Contributor No3x

    (@no3x)

    I just check with WordPress 4.7 | PHP 5.3.29 | Apache/2.4.7 (Ubuntu) | MySQL 5.5.53
    The error is shown and the plugin wont activate to prevent php errors:
    error pre 5.4 is shown

    Thread Starter Azunga

    (@azunga)

    Awesome. I upgraded php and all is fine now. Thanks so much for the support!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error on Activation’ is closed to new replies.