Issue with Google Analytics Extension

Hi folks,

There appears to be an issue with the Google Analytics Extension. I’m hosted with WP Engine and recently updated to PHP 7. One of the engineers mentioned that, after looking into this a bit more, they are seeing a PHP notice for that plugin in the error log:

[Fri Aug 10 08:13:35.331551 2018] [:error] [pid 31537] [client 81.98.180.245:24658] PHP Notice:  Undefined index: tco_google_analytics_code in /nas/content/live/pitchbite/wp-content/plugins/tco-google-analytics/functions/options.php on line 50

They said it does look like some portion of that plugin’s code may not be fully compatible with PHP 7. They recommended reaching out to you guys for assistance with the PHP Notice to see if you have a patch or other update that would address that issue to get it to stop displaying on the top of the page (attached). I’ve deactivated the plugin temporarily.

Any thoughts?

Thanks!

Hi Thomas,

Thanks for writing in! I have tested this issue on PHP v7.0.31 and I can confirm this error.

Basically you’re safe to ignore PHP notices by disabling your WP_DEBUG on wp-config.php file. Please check WordPress guidelines on how to to disable (https://codex.wordpress.org/WP_DEBUG).

In the meantime I will submit this to our issue tracker, so that our developers will aware of this.

Again, thank you for informing.
Cheers!

Much appreciated, @mldarshana! :wink: I’m assuming this will allow Google Analytics to continue working if I disable the WP_DEBUG on wp-config.php file?

Hi There,

The Google Analytic plugin should work fine.

Regards!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.