WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google XML Sitemaps] warning: sitemap-core.php on line 1909 (2 posts)

  1. randompage
    Member
    Posted 4 years ago #

    hi,

    i found this warning while build the sitemap manually:
    Warning: mysql_fetch_object(): 240 is not a valid MySQL result resource in /-----/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 1909

    line 1909 code:
    while($post = mysql_fetch_object($postRes)) {

    seem that problem on $postRes variable, which is setted null on line 1848: $con = $postRes = null;

    or if safemode is used (line 1855 and 1856):
    if($this->GetOption("b_safemode")===true) {
    $postRes = mysql_query($sql,$wpdb->dbh);

    suggest:
    maybe its better to use unset instead of setting with null at line 1848.

    regards,
    dwi

  2. arnee
    Member
    Posted 4 years ago #

    Hi,

    looks like there is a problem with the MySQL query, probably another plugin is affecting it. Try to use the safemode which doesn't use the unbuffered query mode and is more "resistant" to external influences...

Topic Closed

This topic has been closed to new replies.

About this Topic