gmmktime錯誤在WordPress和MagpieRSS

如果您跑PHP 5.1以您的網絡服務器,您在您的Apache Web Server錯誤日誌文件可以遇到以下錯誤(即。 httpd-error.log),每當有請求到RSS飼料和亞帕基印第安人需要解析RSS在PHP :

為鵲RSS :

PHP警告: gmmktime ()在線35盼望參量3是長的,在..... /magpie/rss_utils.inc給的串

為WordPress 2 :

PHP警告: gmmktime ()在線788盼望參量3是長的,在/usr/local/www/apache22/data/wordpress-mydigitallife/wp-includes/rss-functions.php給的串

如果您是使用或升級到PHP 5.1,錯誤通常只生成。

決議是編輯rss_utils.inc在MagpieRSS或rss-functions.php在WordPress并且改變線如下:

$epoch = gmmktime ($hours、$minutes、$seconds、$month、$day, $year);

對以下線通過加+0在第三可變物($seconds)以後:

$epoch = gmmktime ($hours、$minutes、$seconds+0、$month、$day, $year);

重要: 這是現狀提供,不用保單的機器翻譯的頁。 計算機翻譯也許是難瞭解。 參見 原始的英國文章 每當可能。

分享并且貢獻或者得到技術支持并且幫助在 我的數字式生活論壇.



5 Responses to “gmmktime Error in WordPress and MagpieRSS”

  1. Sarah
    April 27th, 2006 03:37
    1

    Thanks very much for documenting this! You saved me a bunch of time and I really appreciate it.

  2. Andrew
    May 22nd, 2006 02:17
    2

    The first Google result my own website showing the error. Your’s was #3 or so. I can’t thank you enough for publishing this simple fix.

  3. Douglas Karr
    May 21st, 2007 06:22
    3

    Glad I found this! I’m surprised they haven’t incorporated this into the version in Sourceforge!

  4. Frank
    June 17th, 2007 05:48
    4

    Great tips! Thank you very much!

  5. neil epstein
    May 13th, 2008 23:54
    5

    thank you so much! saved me alot of time

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

$epoch = gmmktime wordpress - google magpierss wordpress - magpierss wordpress - reblog Warning: gmmktime() expects parameter 3 to be long - gmmktime() expects parameter 4 to be long, string given - magpie rss wordpress - Warning: gmmktime() expects parameter 3 to be long - wordpress magpie rss - gmmktime() expects parameter 3 to be long - gmmktime in javascript -