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);
重要: 這是現狀提供,不用保單的機器翻譯的頁。 計算機翻譯也許是難瞭解。 參見 原始的英國文章 每當可能。
分享并且貢獻或者得到技術支持并且幫助在 我的數字式生活論壇.
相關文章
- 如何定做,修改或改變WordPress數據庫連接錯誤頁
- WordPress MySQL SQL詢問錯誤在WPDB類
- WordPress Charset內碼問題在升級到版本2.2以後
- 下載WordPress 2.3發行候選人1 (RC1)與標記支持
- WordPress的下載早先或老版本
- WordPress 2.1.1重要安全性預警-下載升級到2.1.2
- 使用bbSync集成WordPress包括評論與bbPress論壇
- 如何更換頻率或間隔時間WordPress汽車保存編輯崗位或頁
- 功能失效WordPress 2.3核心和插入更新檢查和通知
- 必須有WordPress插入

































April 27th, 2006 03:37
Thanks very much for documenting this! You saved me a bunch of time and I really appreciate it.
May 22nd, 2006 02:17
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.
May 21st, 2007 06:22
Glad I found this! I’m surprised they haven’t incorporated this into the version in Sourceforge!
June 17th, 2007 05:48
Great tips! Thank you very much!
May 13th, 2008 23:54
thank you so much! saved me alot of time