WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Error messages on taxonomy pages (1 post)

  1. Jeff Pye Brook
    Member
    Posted 1 year ago #

    Debug log is filling with stack traces, They come when one of my taxonomy pages displays. The Title template on the taxonomy page is "%%term_title%%"

    What looks like is happening is that the wpseo_get_value funtion is called to setup the replacements array, and because it is a taxonomy the post ID is not set.

    I added this code at line 22 in wpseo_get_value and the error goes away. In the debugger it looks like the isset($post) evaluates to true, but because there isn't a current post the ID is set to the null value.

    I added this code at line 22 in the function and the error messages go away.

    if ( !isset($postid) || ($postid == '') )
    return false;

    This is the stack trace from my debug log

    ...post.php at line 1587 function n/a ()
    ....wpseo-functions.php at line 21 function n/a (0=)
    .....wpseo-functions.php at line 163 function n/a (0=focuskw, 1=)
    ......class-frontend.php at line 185 function n/a (?)
    .......class-frontend.php at line 148 function n/a (0=title-wpsc_product_category, object=stdClass)
    ........class-frontend.php at line 311 function n/a ()
    .........n/a at line n/a function n/a (0= Bags, 1=, 2=)
    ..........plugin.php at line 170 function n/a (?)
    ...........general-template.php at line 609 function n/a (0=wp_title, 1= Bags, 2=, 3=)
    ............header.php at line 15 function n/a (0=)
    .............template.php at line 390 function n/a (0=H:\web-site-dev\sparkle-gear.com\wp-content\t...)
    ..............template.php at line 366 function n/a (?)
    ...............general-template.php at line 34 function n/a (?)
    ................page.php at line 2 function n/a ()
    .................theme.functions.php at line 1077 function n/a (0=H:\web-site-dev\sparkle-gear.com\wp-content\t...)
    ..................n/a at line n/a function n/a (0=)
    ...................plugin.php at line 403 function n/a (?)
    ....................template-loader.php at line 7 function n/a (0=template_redirect)
    .....................wp-blog-header.php at line 16 function n/a (0=H:\web-site-dev\sparkle-gear.com\wp-includes\...)

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.