Recently when I installed Magpie RSS on PHP 5.1 it keep showing Error warning: Warning: gmmktime() expects parameter 3 to be long. When I tried finding the answer from Google, it seems many sites suffering this same kind of error. The error looks only occur on sites running on PHP 5.
To fix this ” gmmktime() expects parameter 3 to be long ” error you only need to slightly modify the magpie RSS code.
Edit the rss_utils.inc in MagpieRSS and find out the line 35
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year);
to the following line by adding +0 after the third variables ($seconds):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year);
That’s all and you won’t receive the error warning again.






