Priceless Tips

Fixing the Error on gmmktime() expects parameterSubscribe Subscribe

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:


  1. Fixing Pligg gzip technique error
    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...

  2. Optimizing Post Title on Blogger
    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...


Searched words:



Leave a Comment

Required
Required (Won't be published)
Optional
Avatar
Add your picture!
Join Gravatar and upload your avatar. It's free!