Title: Syntax error, unexpected T_USE
Last modified: August 21, 2016

---

# Syntax error, unexpected T_USE

 *  [seinnichts](https://wordpress.org/support/users/seinnichts/)
 * (@seinnichts)
 * [12 years ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_use/)
 * Hi. Your plugin is such a great enhancement to Magic Fields 2 that I WANT it 
   to work with the latest version of WP. I realize your support ends at 3.7.1 so
   obviously you can ignore this… however your toolkit is the ONLY performance addon
   to Magic Fields 2 so there’s nowhere else to turn.
 * After installing Magic Fields 2 and then installing your plugin, any attempt 
   to trigger an enhancement on the settings page produces the “white screen of 
   death.” Turning on debugging produces this error:
 * Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION in /home/user/
   public_html/wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-dumb-shortcodes-
   kai.php on line 31.
 * That line refers to “use Magic_Fields_2_Toolkit_Post_Filters;” The actual error
   may be around that line or in the post-filter.php file where the Magic_Fields_2_Tookit_Post_Filters
   trait is declared.
 * I thought maybe the order of things might have gotten mixed up a bit but moving
   the “use” statement around just caused more errors, as well as anything else 
   I’ve tried.
 * I have deactivated, reactivated, deleted and reinstalled all kinds of things 
   to no avail. Perhaps it will simply not work with WP 3.9, and so I’ll go hang
   myself.
 * If you notice something obvious, perhaps in the way WP works with objects now,
   or anything else, please let me know and I’ll give your suggestion(s) a go. Using
   PHP 5.3
 * [https://wordpress.org/plugins/magic-fields-2-toolkit/](https://wordpress.org/plugins/magic-fields-2-toolkit/)

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

 *  Plugin Author [Magenta Cuda](https://wordpress.org/support/users/magenta-cuda/)
 * (@magenta-cuda)
 * [12 years ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_use/#post-4830620)
 * The traits feature of PHP – which is what the use line is using – is a feature
   of PHP 5.4. This plugin requires PHP 5.4. I am currently using my plugin with
   WP 3.8 so it also works with 3.8. It probably will work with 3.9 if you upgrade
   to PHP 5.4.
 *  Plugin Author [Magenta Cuda](https://wordpress.org/support/users/magenta-cuda/)
 * (@magenta-cuda)
 * [12 years ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_use/#post-4830639)
 * I did some light testing with WP 3.9 with a newer version of this plugin and 
   had no problems so your problem is probably not related to WP 3.9 but with your
   PHP version.

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

The topic ‘Syntax error, unexpected T_USE’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magic-fields-2-toolkit.svg)
 * [Magic Fields 2 Toolkit](https://wordpress.org/plugins/magic-fields-2-toolkit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magic-fields-2-toolkit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magic-fields-2-toolkit/)
 * [Active Topics](https://wordpress.org/support/plugin/magic-fields-2-toolkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magic-fields-2-toolkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magic-fields-2-toolkit/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Magenta Cuda](https://wordpress.org/support/users/magenta-cuda/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_use/#post-4830639)
 * Status: not resolved