• Resolved shrewdies

    (@shrewdies)


    Archiver works fine on Multisite when Network Enabled. I tried installing on an independent single site. Activation failed with the error:
    syntax error, unexpected '[' in [...] wp-content/plugins/archiver/includes/class-archiver.php on line 329

    The same thing happened on 2 different independent single sites.

    I located line 329 which is:

    wp_send_json_error( $response->get_error_codes()[0] . ': ' . $response->get_error_messages()[0] );

    I removed the 2 occurrences of [0], and plugin activated OK.

    I don’t know enough about coding to understand what is going on here. But, with this change, Archiver functions as I expect it to.

    It’s a great plugin. This is a very minor issue.

    https://ww.wp.xz.cn/plugins/archiver/

Viewing 1 replies (of 1 total)
  • Plugin Author Mickey Kay

    (@mcguive7)

    Great catch, Keith. Thanks for notifying me. This is an issue with this specific syntax not being supported in PHP < 5.4. I’ve updated the code and version 1.0.2 should work fine for you. Please let me know if you have any other issues.

Viewing 1 replies (of 1 total)

The topic ‘syntax error, unexpected '[' on single sites’ is closed to new replies.