WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Plugin: WordPress SEO by Yoast] 1.2.8.7 gives notice when searching

[Plugin: WordPress SEO by Yoast] 1.2.8.7 gives notice when searching

  • WordPress version: 3.4.2
    WordPress SEO version: 1.2.8.7

    I did this: I installed the plugin 😉

    I expected the plugin to do this: Optimize SEO and stuff..

    Instead it did this:

    If a search doesn’t give posts back, i get an Notice from php saying:
    Notice: Trying to get property of non-object in /var/www/wptest.local/httpdocs/wp-includes/post-template.php on line 30

    I traced it back to the wpseo-functions.php file and changed line 14 from this:
    if ( $postid === 0 ) {
    to this:
    if ( $postid === 0 || $postid === '' ) {

    Which made the notice disappear.

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

  • The topic ‘[Plugin: WordPress SEO by Yoast] 1.2.8.7 gives notice when searching’ is closed to new replies.
Skip to toolbar