Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Fatal error when using WPSEO_frontend::metadesc();

  • Resolved Mark Jansen

    (@mark-jansen)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 😉

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Fatal error when using WPSEO_frontend::metadesc();’ is closed to new replies.