Fixing the Error on gmmktime() expects parameter


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.


Don't forget to Subscribe!

Previous Posts


Advertisements

40 .com Internet Domain Names, Lawyer Legal Law Domains
US $8,999.00 (0 Bid)
End Date: Saturday Jul-04-2009 18:54:09 PDT
Buy It Now for only: US $9,999.00
Bid now | Buy it now | Add to watch list

50 Legal Internet Domain Names, Lawyer Web Law Domains
US $1,499.00 (0 Bid)
End Date: Saturday Jul-04-2009 18:56:53 PDT
Buy It Now for only: US $2,499.00
Bid now | Buy it now | Add to watch list

TRAVEL INTERNET .COM DOMAIN NAMES FOR SALE
US $1,500.00 (0 Bid)
End Date: Sunday Jul-05-2009 12:41:38 PDT
Bid now | Add to watch list

This entry was posted by Sam Ilan on Thursday, April 3rd, 2008 at 4:55 pm and is filed under Tip and Guides.

Taged as: , ,

You can leave a response, or trackback from your own site.

0 responses so far!

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

Incoming search terms for this post

  error (6),  gmmktime%28%29 (1),  fixing+gmmktime%28%29+expects+parameter+3+to+be+long (1),  php+Warning%3A+gmmktime%28%29+expects+parameter (1),  gmmktime+error (1),