Title: [Plugin: Widget Builder] syntax error, unexpected T_FUNCTION on activation
Last modified: August 20, 2016

---

# [Plugin: Widget Builder] syntax error, unexpected T_FUNCTION on activation

 *  Resolved [WingerSpeed](https://wordpress.org/support/users/wingerspeed/)
 * (@wingerspeed)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/)
 * Parse error: syntax error, unexpected T_FUNCTION in /wordpress-path/wp-content/
   plugins/widget-builder/classes/widget-builder.php on line 146
 * Environment: php 5.2
 * [http://wordpress.org/extend/plugins/widget-builder/](http://wordpress.org/extend/plugins/widget-builder/)

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

 *  [houstonjdd](https://wordpress.org/support/users/houstonjdd/)
 * (@houstonjdd)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024070)
 * Same issue on our site after latest update to the plugin.
 *  [diamoonwillow](https://wordpress.org/support/users/diamoonwillow/)
 * (@diamoonwillow)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024102)
 * Also happened on my site after update
 *  Plugin Author [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * (@codearachnid)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024117)
 * This comes from your site running PHP 5.2 – I am working on a fix to make this
   backward compatible to PHP 5.2 this weekend. In the meantime please revert to
   version 1.3. Let me know if [http://downloads.wordpress.org/plugin/widget-builder.1.3.zip](http://downloads.wordpress.org/plugin/widget-builder.1.3.zip)
   does not work for you and I can send you a copy of my local repo reverted to 
   v1.3.
 *  Plugin Author [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * (@codearachnid)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024118)
 * I have released version 1.5 this resolves issues with PHP 5.2 compatibility. 
   You may download automatically from the .org repo or manually replace your installation
   with the download from [http://downloads.wordpress.org/plugin/widget-builder.1.5.zip](http://downloads.wordpress.org/plugin/widget-builder.1.5.zip).
   Please let me know if you continue to have any issues.
 *  Thread Starter [WingerSpeed](https://wordpress.org/support/users/wingerspeed/)
 * (@wingerspeed)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024119)
 * [@timothy](https://wordpress.org/support/users/timothy/): V1.5 works. Thank you
   so much.
 *  Plugin Author [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * (@codearachnid)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024126)
 * I’m glad this helped you out! If you don’t mind selecting “Works” for your version
   of WP/Plugin in order to let folks know the support data.

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

The topic ‘[Plugin: Widget Builder] syntax error, unexpected T_FUNCTION on activation’
is closed to new replies.

 * ![](https://ps.w.org/widget-builder/assets/icon-256x256.png?rev=985727)
 * [Widget Builder](https://wordpress.org/plugins/widget-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-builder/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Timothy Wood](https://wordpress.org/support/users/codearachnid/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-builder-syntax-error-unexpected-t_function-on-activation/#post-3024126)
 * Status: resolved