• Resolved Michael Zed

    (@michaelzed)


    Installing the plugin returns a PHP error:

    Parse error: syntax error, unexpected '[' in HOME/wp-content/plugins/meow-gallery/mgl_run.php on line 58

    Line 58 is in function gallery():

    $images = [];

    Moving the plugin makes the site work again. Running WordPress 5.02, PHP 5.3.29.

    Any fix for this?

    • This topic was modified 5 years, 10 months ago by Michael Zed.
    • This topic was modified 5 years, 10 months ago by Michael Zed.
    • This topic was modified 5 years, 10 months ago by Michael Zed.
Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Indeed, that is the PHP version. I developed everything against PHP 7 but thought it would also work on PHP 5. However, I missed it for that line.

    As there was more than one line incompatible with PHP 5, I attempted to fix it for you, and I have just released a new version, it is 3.2.4. Can you update and try it?

Viewing 1 replies (of 1 total)
  • The topic ‘Meow Gallery plugin returns parse error’ is closed to new replies.