Google Analytics by MonsterInsights
[Plugin: Google Analytics for WordPress] Error when creating new sites (3 posts)

  1. manakuke
    Posted 4 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


  2. turkeyphant
    Posted 4 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
    Posted 4 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

  • Google Analytics by MonsterInsights
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic