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.
Related posts:
- Fixing Pligg gzip technique error
- Optimizing Post Title on Blogger
I am proud to announce the launch of the new social bookmarking sites ShowUs. ShowUs is a social bookmasking site, where you can share and votes any interesting information collected...
Blogspot has implemented more strict rules on their xhtml template. I was once succeed implementing the title optimization hack on blogger beta, but when I recently change the template the...
Subscribe