Title: [Plugin: Google Analytics for WordPress] Fatal error set_defaults()
Last modified: August 20, 2016

---

# [Plugin: Google Analytics for WordPress] Fatal error set_defaults()

 *  [Remco Tolsma](https://wordpress.org/support/users/remcotolsma/)
 * (@remcotolsma)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-set_defaults/)
 * Sometimes we get the following fatal error on the frontend of an WordPress site:
 * `Fatal error: Call to a member function set_defaults() on a non-object in /www/********/
   httpdocs/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php
   on line 1452`
 * The $ga_admin is NULL, probably because the $ga_admin is only created within 
   the WordPress admin interface. The set_defaults() function call (lin 1452) on
   the $ga_admin object is also called outside the admin interface.
 * I’m not sure how and when this problem occurs, but could it be fixed?
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

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

 *  [balbert](https://wordpress.org/support/users/balbert/)
 * (@balbert)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-set_defaults/#post-2299670)
 * I’m getting this problem on my MU site using 2.9. When activated site wide I 
   get this same error on my other blogs with in the MU. ONly the main primary site
   seems to work.
 *  [turkeyphant](https://wordpress.org/support/users/turkeyphant/)
 * (@turkeyphant)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-set_defaults/#post-2299684)
 * Even when I disable the plugin I can’t create new sites.
 * See also: [http://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-error-when-creating-new-sites](http://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-error-when-creating-new-sites)

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

The topic ‘[Plugin: Google Analytics for WordPress] Fatal error set_defaults()’ 
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/)

 * 2 replies
 * 3 participants
 * Last reply from: [turkeyphant](https://wordpress.org/support/users/turkeyphant/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-fatal-error-set_defaults/#post-2299684)
 * Status: not resolved