WordPress.org

Forums

WordPress SEO by Yoast
Fatal error (2 posts)

  1. arsliber
    Member
    Posted 1 year 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...

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

  2. jrf
    Member
    Posted 1 year 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

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

About this Topic

Tags