• Resolved Kirr

    (@kirr)


    When I trying to activate the plugin I’m getting this:
    ——-
    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /…SKIP…/wp-content/plugins/plugin-grouper/autoload.php on line 25
    ——-
    ??
    All other plugins are deactivated.

    https://www.ads-software.com/plugins/plugin-grouper/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Kirr

    (@kirr)

    UPD:
    PHP version is 5.3.29

    Thread Starter Kirr

    (@kirr)

    Just updated plugin to new version 3.0.2.

    Things became slightly different though still with no luck. =(
    I’ve got this when activating the plugin:
    ——-
    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected ‘[‘ in /…SKIP…/wp-content/plugins/plugin-grouper/classes/Group.php on line 295
    ——-

    Thread Starter Kirr

    (@kirr)

    Seem like the culprit is a pretty old PHP on my hosting which doesn’t support the short syntax for arrays.

    The problem is that I hardly can enforce my hoster to upgrade PHP in the near future. And there is fact that I have over 30 plugins on my WP and they don’t suffer from that error. So I hope there can be an update for the plugin to make it work on old PHPs. =)

    Thread Starter Kirr

    (@kirr)

    Well… =)
    I changed
    $plugins_ =[];
    to old fashioned
    $plugins_ = array();
    in that line 295 and it began to work! ??

    Thread Starter Kirr

    (@kirr)

    Update to version 3.0.3 fixed the bug.
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error when activating the plugin’ is closed to new replies.