Title: PHP Parse Error when upgrading to 2.2.1
Last modified: August 31, 2016

---

# PHP Parse Error when upgrading to 2.2.1

 *  Resolved [narrf](https://wordpress.org/support/users/narrf/)
 * (@narrf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-parse-error-when-upgrading-to-221/)
 * 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://wordpress.org/plugins/widgets-in-tabs/](https://wordpress.org/plugins/widgets-in-tabs/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [404](https://wordpress.org/support/users/ahspw/)
 * (@ahspw)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-parse-error-when-upgrading-to-221/#post-7288108)
 * 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](https://wordpress.org/support/users/narrf/)
 * (@narrf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-parse-error-when-upgrading-to-221/#post-7288174)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/widgets-in-tabs_4a50e7.svg)
 * [Widgets In Tabs](https://wordpress.org/plugins/widgets-in-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widgets-in-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widgets-in-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/widgets-in-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widgets-in-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widgets-in-tabs/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [narrf](https://wordpress.org/support/users/narrf/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/php-parse-error-when-upgrading-to-221/#post-7288174)
 * Status: resolved