Title: syntax error, after upgrade
Last modified: September 26, 2016

---

# syntax error, after upgrade

 *  [arekbis](https://wordpress.org/support/users/arekbis/)
 * (@arekbis)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/)
 * After upgrade wptouch to 4.3 I got following error.
 * Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/wptouch/themes/
   bauhaus/default/functions.php on line 283

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

 *  [Alain RONK](https://wordpress.org/support/users/alain-ronk/)
 * (@alain-ronk)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8225060)
 * It’s the same for me…
 * Wp Touch…
 *  [sjoerd89](https://wordpress.org/support/users/sjoerd89/)
 * (@sjoerd89)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8225234)
 * Same problem here, would love a fix of somehow
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8225707)
 * Best option:
 * Upgrade your PHP to at least 5.4, better 5.6 or greater, [see also here](https://wordpress.org/about/requirements/).
 * Quickfix:
 * Replace `$classes = [];` with `$classes = array();` in file/line specified in
   error message.
 *  [SandyMe](https://wordpress.org/support/users/sandyme/)
 * (@sandyme)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8228677)
 * I get….
    Plugin could not be activated because it triggered a fatal error. Parse
   error: syntax error, unexpected T_STRING in /home/……./wp-content/plugins/wptouch/
   core/class-cache-smash.php on line 104
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8229387)
 * [@sandyme](https://wordpress.org/support/users/sandyme/): Your PHP version is
   too old for “namespaces”.
 * Upgrade your PHP to at least 5.3, better 5.6 or greater, [see also here](https://wordpress.org/about/requirements/).
 *  [Emmageddon](https://wordpress.org/support/users/emmageddon/)
 * (@emmageddon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8230111)
 * Okay renaming has now helped but can’t have the plugin running at the moment 
   if I am going to get that issue. Is there any idea what coulee be causing this?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8230253)
 * emmageddon: please do not hijack topics. If you are having issues with this plugin,
   please open your own topic. thanks.
 *  [Emmageddon](https://wordpress.org/support/users/emmageddon/)
 * (@emmageddon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8230308)
 * Hello Steve not my intention to hijack a thread – just trying to say that having
   same issue as others have stated. Although I understand the reasons, it does 
   seem better to have single threads where users can report the same issue to not
   overload the forum with lots of topics on the same issue.
 * Will start a new thread but hope you can understand why I tried to keep to a 
   similar thread.
 *  [SandyMe](https://wordpress.org/support/users/sandyme/)
 * (@sandyme)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8232474)
 * Updated WPtouch from 4.3.1 (problem) to 4.3.2 today and everything works fine
   on the site where I had the problem described above.

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

The topic ‘syntax error, after upgrade’ is closed to new replies.

 * ![](https://ps.w.org/wptouch/assets/icon-256x256.png?rev=1313960)
 * [WPtouch - Make your WordPress Website Mobile-Friendly](https://wordpress.org/plugins/wptouch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptouch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptouch/)
 * [Active Topics](https://wordpress.org/support/plugin/wptouch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptouch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptouch/reviews/)

## Tags

 * [Parse error: syntax error](https://wordpress.org/support/topic-tag/parse-error-syntax-error/)

 * 10 replies
 * 7 participants
 * Last reply from: [SandyMe](https://wordpress.org/support/users/sandyme/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-after-upgrade/#post-8232474)
 * Status: not resolved