I have just installed wp autoblog plugin which gives following errors Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 Warning: gmmktime() expects parameter 3 to be long, string given in /home2/warezrdx/public_html/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35 This is given in the file rss_utils.inc <?php /* * Project: MagpieRSS: a simple RSS integration tool * File: rss_utils.inc, utility methods for working with RSS * Author: Kellan Elliott-McCrea <kellan@protest.net> * Version: 0.51 * License: GPL * * The lastest version of MagpieRSS can be obtained from: * http://magpierss.sourceforge.net * * For questions, help, comments, discussion, etc., please join the * Magpie mailing list: * */ /*======================================================================*\ Function: parse_w3cdtf Purpose: parse a W3CDTF date into unix epoch NOTE: http://www.w3.org/TR/NOTE-datetime \*======================================================================*/ function auto_blog_parse_w3cdtf ( $date_str ) { # regex to match wc3dtf $pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2})\d{2})(\d{2}))?(?[-+])(\d{2}):?(\d{2})|(Z))?/"; if ( preg_match( $pat, $date_str, $match ) ) { list( $year, $month, $day, $hours, $minutes, $seconds) = array( $match[1], $match[2], $match[3], $match[4], $match[5], $match[6]); # calc epoch for current date assuming GMT $epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $offset = 0; if ( $match[10] == 'Z' ) { # zulu time, aka GMT } else { list( $tz_mod, $tz_hour, $tz_min ) = array( $match[8], $match[9], $match[10]); # zero out the variables if ( ! $tz_hour ) { $tz_hour = 0; } if ( ! $tz_min ) { $tz_min = 0; } $offset_secs = (($tz_hour*60)+$tz_min)*60; # is timezone ahead of GMT? then subtract offset # if ( $tz_mod == '+' ) { $offset_secs = $offset_secs * -1; } $offset = $offset_secs; } $epoch = $epoch + $offset; return $epoch; } else { return -1; } } ?> Please help how to fix these...
I think you should ask on the plugin support forum. I'm fairly sure most plugins have some kind of support associated with them.
I have seen a very similar gmmktime() warning while running a certain WP plug-in (not WP Autoblog however) in combination with PHP 5.1. Is this the version of PHP you are using? The fix was to edit the line in the script that is causing problems (in this case line 35 of the rss_utils.inc). Generally, adding +0 after the third parameter in the gmmktime() function (which happens to be seconds) will solve this problem. So if your gmmktime function looked like this; gmmktime($hour,$minute,$second,$month,$day,$year) HTML: You would want to change it to: gmmktime($hour,$minute,$second+0,$month,$day,$year) HTML: Check the plugin support if all else fails tho..