Support » Plugin: Yoast SEO » Notice: Undefined property: stdClass::$post_type

  • Resolved dgfreemem



    When activating WordPress SEO I get the following notice on top of my startpage (the product page of woocommerce):
    “Notice: Undefined property: stdClass::$post_type in /…/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 159”. When deactivating WordPress SEO the message disappears.

    Anyone know if there is a solution for this?

    I run these, all the latest, versions on my site:
    Wordpress 3.7.1–sv_SE
    WooCommerce 2.0.19
    WooDojo 1.5.4
    WordPress SEO 1.4.19

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds like another plugin is interfering with the wp_query object. Try disabling all other plugins and enabling them one by one to figure out which one is not resetting the wp_query object after use and file a bug report with them.

    Thanks jtf!

    Actually did just that but not as structured as you suggest. In my frustration I toggled things off and on and the message in not there anymore. Cant tell which one it was that did the trick though :/

    Hi dgfreemem,

    Glad to hear you managed to get it working again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: Undefined property: stdClass::$post_type’ is closed to new replies.