• Resolved robahas

    (@robahas)


    Hi – I have the latest version of everything. When activating this plugin I get:

    Parse error: syntax error, unexpected ‘[‘ in /home/intuitodev/public_html/test/wp-content/plugins/smtp-mailing-queue/smtp-mailing-queue.php on line 52

    That line is this:

    add_action(‘plugins_loaded’, [$smtpMailingQueueUpdate, ‘update’]);

    I don’t think that is a correctly formed action, but I could be wrong. Hoping to use this… :0)

    https://wordpress.org/plugins/smtp-mailing-queue/

Viewing 1 replies (of 1 total)
  • Plugin Author hildende

    (@hildende)

    According to your error message I assume you are using PHP 5.3 or lower?
    With PHP 5.4 the [ was introduced as short syntax for arrays. As far as I know there is no way to turn the short syntax off.
    This plugin requires at least PHP 5.4

    Since PHP 5.3 has reached it’s end of life in August 2014 it’s not worth to maintain it anymore.

Viewing 1 replies (of 1 total)
  • The topic ‘Syntax error on activation’ is closed to new replies.