WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Google XML Sitemaps] warning: sitemap-core.php on line 1909

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

  • 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

Viewing 1 replies (of 1 total)
  • 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…

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google XML Sitemaps] warning: sitemap-core.php on line 1909’ is closed to new replies.
Skip to toolbar