Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] Fatal error when using WPSEO_frontend::metadesc(); (3 posts)

  1. Mark Jansen
    Posted 3 years ago #

    WordPress version: 3.4.1
    WordPress SEO version: 1.2.5

    The theme developer added WPSEO_frontend::metadesc(); to the theme's header.php. Since my client updates the SEO plugin himself a few days ago the following fatal error appeared:

    Fatal error: Using $this when not in object context in /public_html/cms/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 797

    WPSEO_frontend::metadesc(); looks to be the problem, but I am not sure what to do next. If any one could show me the right direction where to look, that would be awesome.




  2. acsnaterse
    Posted 3 years ago #

    I shouldn't know why you call this function like this.

    Meta descriptions are added automatically, so you don't need to call it manually.
    So, just removing this function seems the best solution to me ;-)

  3. Mark Jansen
    Posted 3 years ago #

    Thanks. Worked it out. This function is obsolete indeed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic