WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
Error when creating new sites (3 posts)

  1. manakuke
    Member
    Posted 2 years ago #

    I've been using this plugin for a while now with no problems until this past week. Anytime I add a new site (I have WP set to multisite), the new site crashes with one of the two errors below unless I disable the plugin. All old sites previously configured work just fine.

    Error messages:

    Fatal error: Call to a member function set_defaults() on a non-object in /var/www/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 1452

    Fatal error: Call to undefined function wp_get_current_user() in /var/www/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 1348

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

  2. turkeyphant
    Member
    Posted 2 years ago #

    Did you ever fix this? I am trying to add a new site/domain and every time I do it I get this error. Any ideas?

  3. manakuke
    Member
    Posted 2 years ago #

    Nope :(

    I ended up using a different plugin. Pain in the behind. After switching plugins, had to go through each site and reattach my API credentials, but everything is working fine again.

    Google Analyticator: http://wordpress.org/extend/plugins/google-analyticator/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic