Support » Plugins » [Plugin: Google XML Sitemaps] Warning: mktime() expects parameter 1 to be long

  • Hello, I get this warning whenever I click on rebuild the sitemap:

    Warning: mktime() expects parameter 1 to be long, string given in /home/dakiniai/domains/somesite.com/public_html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2426

    but if I go back I see sitemap is built successfully or at least it says so:

    # Your sitemap was last built on 13/06/2009 14:37.
    # Your sitemap (zipped) was last built on 13/06/2009 14:37.
    # Google was successfully notified about changes.
    # Bing was successfully notified about changes.
    # Ask.com was successfully notified about changes.
    # The building process took about 0.89 seconds to complete and used 20 MB of memory.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same exact problem here. Running WP 2.8 with akismet and All in One SEO Pack plugins.

    Also experiencing the same issue. Maybe something to do with how WP 2.8 tracks timezones by city name now?

    I am also getting this….

    To be a little more helpful, using the debug tool I get the following:

    Errors, Warnings, Notices
    
    Notice: Undefined offset: 1 in /home/content/25/4494725/html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2423
    
    Notice: Undefined offset: 2 in /home/content/25/4494725/html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2424
    
    Notice: Undefined offset: 1 in /home/content/25/4494725/html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2424
    
    Notice: Undefined offset: 2 in /home/content/25/4494725/html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2425
    
    Notice: Undefined offset: 1 in /home/content/25/4494725/html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2425
    
    Warning: mktime() expects parameter 1 to be long, string given in /home/content/25/4494725/html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2426

    Referring to these lines:

    function GetTimestampFromMySql($mysqlDateTime) {
    		list($date, $hours) = split(' ', $mysqlDateTime);
    		list($year,$month,$day) = split('-',$date);
    		list($hour,$min,$sec) = split(':',$hours);
    		return mktime($hour, $min, $sec, $month, $day, $year);
    	}

    Look at this thread, this fixed the problem for me:

    http://wordpress.org/support/topic/281175

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Warning: mktime() expects parameter 1 to be long’ is closed to new replies.