Support » Plugin: Yoast SEO » Debug notices and warnings on v14

  • Resolved rafaucau

    (@rafaucau)


    After upgrading to 14.0.1, these warnings appear on the frontend when WP_DEBUG is enabled:

    Notice: Undefined property: Yoast\WP\SEO\Presentations\Indexable_Home_Page_Presentation::$robots in /wp-content/plugins/wordpress-seo/src/helpers/robots-helper.php on line 27
    
    Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/wordpress-seo/src/helpers/robots-helper.php on line 27
    
    Notice: Undefined property: Yoast\WP\SEO\Presentations\Indexable_Home_Page_Presentation::$robots in /wp-content/plugins/wordpress-seo/src/helpers/robots-helper.php on line 31
Viewing 7 replies - 1 through 7 (of 7 total)
  • debjo

    (@debra-pearson)

    Yes, I got the same error.

    karamba

    (@karamba)

    mee2

    larguello

    (@larguello)

    Same

    caruvin

    (@caruvin)

    Yep me too

    caruvin

    (@caruvin)

    This is not an official release yet but I’ve made a tiny change:

    if( property_exists( $presentation, 'robots' ) ) {
    ...
    }

    For now the warning seems to be not showing again, but this more to a temporary solution and we should wait for the official solution.

    ispreview

    (@ispreview)

    Yep also getting this error.

    Environment is PHP 7.4, Yoast SEO 14.0.1 and MySQL 5.7,

    • This reply was modified 4 months ago by ispreview.
    Plugin Support djennez

    (@djennez)

    This should be solved with the 14.0.2 release that is coming up.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.