ncsulilwolf
Member
Posted 7 months ago #
Getting the following error when trying to re-activate the Google Analytics for WordPress plugin:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/l/u/c/luckybsbar/html/wp-content/plugins/google-analytics-for-wordpress/wp-gdata/wp-gdata.php on line 14
Any thoughts, anyone? Thank you!
http://wordpress.org/extend/plugins/google-analytics-for-wordpress/
balduino
Member
Posted 6 months ago #
I have the same problem here. Tried to run versions 4.2.2 and 4.2 of the plugin, however the same error still happening.
balduino
Member
Posted 6 months ago #
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/l/u/c/luckybsbar/html/wp-content/plugins/google-analytics-for-wordpress/wp-gdata/wp-gdata.php on line 14
Ok, I'm not sure, but I think this happens due our version of PHP. I'm running PHP 4.3.10.
On the line 14 of the file wp-gdata.php you can see the declaration "public $http_code;". This is only supported in PHP 5.
I suggest the author specifies on the plugin download page the minimum requirements to run this plugin, since I couldn't see anywhere the server's requirements.
Thanks.
Scott Offord
Member
Posted 5 months ago #
shizucor
Member
Posted 5 months ago #
I'm currently on 3.1.4 and I'm experiencing the same issues. I've set it as "broken" on the plugin page.
Unfortunately, I can't update WordPress because the GoDaddy account only supports PHP 4.3. Oy.