Forums

[Plugin: Google XML Sitemaps] Warning: mktime() expects parameter 1 to be long (6 posts)

  1. Julius7
    Member
    Posted 5 months ago #

    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.

  2. travor
    Member
    Posted 5 months ago #

    Same exact problem here. Running WP 2.8 with akismet and All in One SEO Pack plugins.

  3. Hammerhead
    Member
    Posted 5 months ago #

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

  4. bdelin
    Member
    Posted 5 months ago #

    I am also getting this....

  5. bdelin
    Member
    Posted 5 months ago #

    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);
    	}
  6. kimflournoy
    Member
    Posted 4 months ago #

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

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

Reply

You must log in to post.

About this Topic