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

MAMMOTH BOOK OF CHESS ~ Incl INTERNET & COMPUTER CHESS
US $9.98 (0 Bid)
End Date: Monday Oct-13-2008 10:50:27 PDT
Buy It Now for only: US $12.98
Bid now | Buy it now | Add to watch list

Rare INTERNET BOOK ICC72 Early Computer History ARPANET
US $295.50
End Date: Thursday Oct-16-2008 8:08:25 PDT
Buy It Now for only: US $295.50
Buy it now | Add to watch list

NEW BOOK Dictionary of Computer And Internet Terms Down
US $12.51
End Date: Friday Oct-17-2008 16:35:01 PDT
Buy It Now for only: US $12.51
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 (6),  gmmktime() (1),  fixing gmmktime() expects parameter 3 to be long (1),  php Warning: gmmktime() expects parameter (1),