By Sam Ilan · Tip and Guides · Thursday, April 3, 2008 16:55 · 0 Comments

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

NEW Internet Address Book with Computer Back Up File...
US $19.95
End Date: Saturday Aug-09-2008 3:00:15 PDT
Buy It Now for only: US $19.95
Buy it now | Add to watch list

Lot 3 Computer Books Internet WWW Graphics Usborne
US $6.99 (0 Bid)
End Date: Sunday Aug-10-2008 5:52:00 PDT
Bid now | Add to watch list

Lot 3 Computer Books Internet WWW Graphics Usborne
US $5.99
End Date: Sunday Aug-10-2008 5:56:06 PDT
Buy It Now for only: US $5.99
Buy it 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 (5),