Support » Plugin: Yoast SEO » Fatal error after installing plugin

  • Resolved chrisaliceko

    (@chrisaliceko)


    Each time after I install Yoast, my browser displays following message when I try to access any page from my website :

    Fatal error: Call to undefined method WP_Query::is_main_query() in /homez.429/christine/www/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 518

    Any idea how I can solve this problem ?

    http://wordpress.org/plugins/wordpress-seo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • disable all other plugins except for yoast and see if you still get that error, if not add them back in one by one until you get that error

    Thanks webslugger.

    I did as you suggested , disabled all plugins. even deleted yoast and added it again. Result is : I have the same fatal error …

    As I didn’t read anything like this on the forum, could it be a problem with my theme ?

    I am using Clearly Modern 1.7 par Cudazi

    do you get the same error when enabling the twenty-ten theme?

    Hi chrisaliceko,

    Maybe the problem is that your WordPress version is lower than 3.3, and is_main_query() function exists since this version.
    If you don’t want to upgrade it, you can change the class-frontend.php according to: https://gist.github.com/Viper007Bond/1297669

    It works me well.

    Indeed I had an old version of WP !
    Upgraded it and now Yoast works beautifully

    Thank you very much for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error after installing plugin’ is closed to new replies.