Title: [Plugin: Google Analytics for WordPress] Fatal error  Parse error: syntax error, unexpected T_STRING
Last modified: August 20, 2016

---

# [Plugin: Google Analytics for WordPress] Fatal error Parse error: syntax error, unexpected T_STRING

 *  [ncsulilwolf](https://wordpress.org/support/users/ncsulilwolf/)
 * (@ncsulilwolf)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-parse-error-syntax-error-unexpected-t_string-expecting-t_old_fun/)
 * 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/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

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

 *  [balduino](https://wordpress.org/support/users/balduino/)
 * (@balduino)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-parse-error-syntax-error-unexpected-t_string-expecting-t_old_fun/#post-2376605)
 * 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](https://wordpress.org/support/users/balduino/)
 * (@balduino)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-parse-error-syntax-error-unexpected-t_string-expecting-t_old_fun/#post-2376606)
 * > 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.
 *  [x](https://wordpress.org/support/users/offordscott/)
 * (@offordscott)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-parse-error-syntax-error-unexpected-t_string-expecting-t_old_fun/#post-2376640)
 * I have the same issue.
 *  [Corinne](https://wordpress.org/support/users/shizucor/)
 * (@shizucor)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-parse-error-syntax-error-unexpected-t_string-expecting-t_old_fun/#post-2376642)
 * 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.

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

The topic ‘[Plugin: Google Analytics for WordPress] Fatal error Parse error: syntax
error, unexpected T_STRING’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Corinne](https://wordpress.org/support/users/shizucor/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-parse-error-syntax-error-unexpected-t_string-expecting-t_old_fun/#post-2376642)
 * Status: not resolved