WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] WordPress SEO 1.2.8.6 Missed a notice! Here's a patch! (2 posts)

  1. Michael Ecklund
    Member
    Posted 1 year ago #

    WordPress: 3.4.2
    WordPress SEO: 1.2.8.6

    Notice: Undefined property: WP_Query::$post in /wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 659 Notice: Trying to get property of non-object in /wordpress-seo/frontend/class-frontend.php on line 659

    File: ./front-end/class-frontend.php
    Line 659: $numpages = substr_count( $wp_query->post->post_content, '<!--nextpage-->' ) + 1;
    Proposed Fix:

    if(isset($wp_query->post->post_content)){
    	$numpages = substr_count( $wp_query->post->post_content, '<!--nextpage-->' ) + 1;
    } else{
    	$numpages = 0;
    }

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

  2. Joost de Valk
    Member
    Plugin Author

    Posted 1 year ago #

    Thx, will be in next release (though slightly different)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic