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
- The topic ‘Syntax error, unexpected T_USE’ is closed to new replies.