• Resolved narrf

    (@narrf)


    Hi,

    The upgrade from 2.2.0 to 2.2.1 produces the following PHP error in the Apache error log. The parse error prevented my site from loading at all, with only a blank page returned (both the admin pages and normal pages).

    AH01215: PHP Parse error: syntax error, unexpected ‘[‘ in /home/sites/domainname.co.uk/public_html/wp-content/plugins/widgets-in-tabs/widgets-in-tabs.php on line 171

    I restored 2.2.0 from back up and restored functionality. I can replicate the issue each time I try to upgrade.

    Please let me know if I can assist with fault finding.

    Regards,
    Narrf

    https://www.ads-software.com/plugins/widgets-in-tabs/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author 404

    (@ahspw)

    Thanks for reporting this issue. Your PHP version must be below 5.4. I am initializing an array using [] rather than array(). This should be fixed in 2.2.2. If you are eager to try the new version, edit that line manually for now.

    Thread Starter narrf

    (@narrf)

    Thanks for getting back to me quickly.

    You are indeed correct, my PHP version was set at 5.3. I have updated to 5.5 and now the plugin upgrades without error.

    Thanks,
    Narrf

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Parse Error when upgrading to 2.2.1’ is closed to new replies.