WordPress.org

Ready to get started?Download WordPress

Forums

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

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

    Regards,

    Mark

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

  2. acsnaterse
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic