The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Yoast SEO
Fatal error (2 posts)

  1. arsliber
    Posted 2 years ago #

    I've just installes the plugin last version and when trying to see the page in which it's installed, I got this message:

    Fatal error: Call to undefined method WP_Query::is_main_query() in /home/arsl/domains/arsliber.com/public_html/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 555

    Any idea? Help is wellcome...


  2. jrf
    Posted 2 years ago #

    That's a standard WordPress class method which should definitely be available at that point. Another plugin or your theme may be doing something funky causing it to not be available.

    Try de-activating all other plugins and switching to a standard WP theme. The error will more likely than not, no longer appear. (If it does: report it on GitHub).
    Presuming it doesn't: switch back to your preferred theme and test, activate each plugin in turn an test after each activation. Take note of which plugin/theme you activated when the error starts re-appearing and contact them to get it fixed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic