• Resolved brettmeyer

    (@brettmeyer)


    Apologies if this has been asked, I can’t find a way to search support for just one plugin…

    Anyway, I have 2 custom taxonomy category pages (taxonomy-….php). On these pages I seem to get an error in my header:

    "Notice: Undefined property: stdClass::$ID in /data/stage.ponds.co.za/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop_class.php on line 2036"

    Which is:

    if ( $page_for_posts && ( !is_object( $post ) || ( $page_for_posts != $post->ID ) ) && is_home() )

    I’m guessing I need to put something in there to specify its a taxonomy?

    Thanks.

    https://wordpress.org/plugins/all-in-one-seo-pack/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Brett,

    This looks like a bug; try replacing that line with this and let me know if it fixes your issue here:

    if ( $page_for_posts && is_home() && ( !is_object( $post ) || ( $page_for_posts != $post->ID ) ) )

    Thread Starter brettmeyer

    (@brettmeyer)

    Sorted it out, thanks. And sorry for the late reply.

    Hi Peter,

    I have a similar notice but on line 960:

    if ( is_object( $post_id ) )
    $post_id = $post_id->ID;
    $get_opts = $this->default_options( $location );

    Any ideas how to fix it?

    Hi baalam,

    That’s kind of unusual, are you also getting this error on a custom taxonomy category page, or where and when are you seeing it show up?

    I just found the notice on my error_log file but I don’t see it under any page.

    Hi baalam,

    What this says to me is that on some page, the $post variable gets set to some class that isn’t a post at all; without knowing where it’s taking place, though, I can’t really track down why it’s happening. This could be due to a conflict with another plugin or with your theme as well.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error on custom taxonomy page’ is closed to new replies.