• Resolved janvitos

    (@janvitos)


    Hi,

    I just upgraded to Yoast 3.6 and I’m getting many PHP Fatal errors:

    PHP Fatal error: Cannot redeclare class Yoast_Google_CacheParser in /plugins/google-analytics-for-wordpress/vendor/yoast/api-libs/google/io/Google_CacheParser.php

    I know the error is for the google-analytics-for-wordpress plugin, but I did not have this error prior to upgrading to 3.6 from 3.5.

    And google-analytics-for-wordpress is not working with Yoast SEO active.

    I will rollback for the time being and wait for an update.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter janvitos

    (@janvitos)

    By the way, I’m using Google Analytics by MonsterInsights 5.5.2.

    I can confirm that rolling back to 3.5 fixed the issue.

    • This reply was modified 8 years, 5 months ago by janvitos.

    Just to let you know I’ve upgraded to 3.6 and have Google Analytics by MonsterInsights 5.5.2 and do not have an issue.

    Thread Starter janvitos

    (@janvitos)

    Interesting. Do you have any caching mechanism ? Because the issue only seemed to happen after I cleared the cache.

    • This reply was modified 8 years, 5 months ago by janvitos.

    I use W3 Total Cache and have since cleared the cache, all is good. Maybe try disabling the cache?

    Thread Starter janvitos

    (@janvitos)

    Disabling the cache does not fix the issue.

    I must also note that I’m using Google Analytics Top Content Widget for displaying top posts from Google Analytics below my articles.

    That’s where the problem seems to happen since the bottom of my pages are broken / not displayed with 3.6.

    Reverting back to 3.5 is all good.

    I also tried reinstalling 3.6 from scratch with the same issue.

    Thread Starter janvitos

    (@janvitos)

    There might be a require instead of a require_once somewhere in 3.6 that wasn’t in 3.5 or that was already a require_once.

    Thread Starter janvitos

    (@janvitos)

    So I did more testing and was able to get 3.6 working by disabling the rest api and commenting out this line of code in wp-seo-main.php:

    add_action( 'init', 'wpseo_init_rest_api' );

    Maybe this is what’s also causing many problems for others…

    Plugin Support amboutwe

    (@amboutwe)

    Can you please submit that to our GitHub repository for Yoast SEO? Thanks!

    If you have not submitted an issue previously, this guide will help you submit a complete report which may result in a faster resolution.

    Thread Starter janvitos

    (@janvitos)

    Will do so!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PHP Fatal error: Cannot redeclare class Yoast_Google_CacheParser’ is closed to new replies.