gmmktime Error in WordPress and MagpieRSS gmmktime Lỗi trong WordPress và magpierss

If you're running PHP 5.1 with your web server, you may encounter the following error in your Apache web server error log file (ie httpd-error.log) whenever there are requests to the RSS feed and the Apache need to parse the RSS in PHP: Nếu bạn đang chạy PHP 5,1 với máy chủ web của bạn, bạn có thể gặp phải những lỗi sau đây trong tập tin máy chủ web Apache lỗi của bạn đăng nhập (tức là httpd-error.log) bất cứ khi nào có yêu cầu đến nguồn cấp dữ liệu RSS và Apache cần phải phân tích các RSS trong PHP:

For Magpie RSS: Đối với Magpie RSS:

PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 PHP Warning: gmmktime () sẽ tham số 3 để được lâu, chuỗi được đưa ra trong .. ... / rss_utils.inc / magpie on line 35

For WordPress 2: Cho WordPress 2:

PHP Warning: gmmktime() expects parameter 3 to be long, string given in /usr/local/www/apache22/data/wordpress-mydigitallife/wp-includes/rss-functions.php on line 788 PHP Warning: gmmktime () sẽ tham số 3 để được lâu, string given in / usr/local/www/apache22/data/wordpress-mydigitallife/wp-includes/rss-functions.php on line 788

The error usually only occurs if you are using or upgrading to PHP 5.1. Lỗi này thường chỉ xảy ra nếu bạn đang sử dụng hoặc nâng cấp lên PHP 5.1.

The resolution is to edit rss_utils.inc in MagpieRSS or rss-functions.php in WordPress and changes the line below: Độ phân giải là để sửa rss_utils.inc trong magpierss hoặc rss-functions.php trong WordPress và thay đổi dòng bên dưới:

$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ thế = gmmktime ($ giờ, $ phút, $ giây, $ month, $ day, $ năm);

to the following line by adding +0 after the third variables ($seconds): vào dòng sau bằng cách thêm 0 sau khi các biến thứ ba ($ giây):

$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ thế = gmmktime ($ giờ, $ phút, giây $ 0, $ month, $ day, $ năm);

IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.


6 Responses to “gmmktime Error in WordPress and MagpieRSS” 6 hồi đáp tới Lỗi gmmktime "trong WordPress và magpierss"

  1. Sura Sura
    December 18th, 2008 05:43 Tháng 12 18, 2008 05:43
    6 6

    Words perfectly for me, thx Nói cách hoàn hảo cho tôi, thx

  2. neil epstein neil Epstein
    May 13th, 2008 23:54 Ngày 13 Tháng Năm 2008 23:54
    5 5

    thank you so much! cảm ơn bạn rất nhiều! saved me alot of time lưu lại cho tôi rất nhiều thời gian

  3. Frank Frank
    June 17th, 2007 05:48 Ngày 17 tháng 6 2007 05:48
    4 4

    Great tips! Great mẹo! Thank you very much! Cảm ơn bạn rất nhiều!

  4. Douglas Karr Douglas Karr
    May 21st, 2007 06:22 Tháng 5 21, 2007 06:22
    3 3

    Glad I found this! Tôi vui mừng thấy các mặt hàng này! I'm surprised they haven't incorporated this into the version in Sourceforge! Tôi ngạc nhiên khi họ không được kết hợp vào trong phiên bản này trong Sourceforge!

  5. Andrew Andrew
    May 22nd, 2006 02:17 Ngày 22 Tháng Năm 2006 02:17
    2 2

    The first Google result my own website showing the error. Các kết quả đầu tiên của Google trang web riêng của tôi hiển thị các lỗi. Your's was #3 or so. Thông tin của bạn đã được # 3 hoặc lâu hơn. I can't thank you enough for publishing this simple fix. Tôi không thể cảm ơn đủ cho xuất bản sửa lỗi này đơn giản.

  6. Sarah Sarah
    April 27th, 2006 03:37 Ngày 27 Tháng Tư 2006 03:37
    1 1

    Thanks very much for documenting this! Cảm ơn rất nhiều vì tài liệu này! You saved me a bunch of time and I really appreciate it. Bạn lưu tôi một bó về thời gian và tôi thực sự đánh giá cao nó.

Leave a Reply Để lại một trả lời

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> Bạn có thể sử dụng các thẻ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với My Digital Life Comments RSS feed My Digital Life kiến RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm đến các Điều khoản Điều

magpie rss wordpress rss magpie wordpress - -- MagpieRSS wordpress Magpierss wordpress - -- gmmktime() expects parameter 4 to be long gmmktime () sẽ tham số 4 để được lâu - -- gmmktime() expects parameter 3 to be long gmmktime () sẽ tham số 3 để được lâu - -- Parse error: syntax error, unexpected '.' Parse error: lỗi cú pháp, bất ngờ '.' in wp-includes/user.php on line 492 trong wp-includes/user.php on line 492 - -- install wordpress parse error "492" cài đặt wordpress lỗi phân tích cú pháp "492" - -- MagpieRSS arabic Magpierss arabic - -- PHP Parse error: syntax error, unexpected '.' PHP Parse error: lỗi cú pháp, bất ngờ '.' in user.php line 492 wordpress phù user.php 492 wordpress - -- Parse error: syntax error, unexpected '.' Parse error: lỗi cú pháp, bất ngờ '.' in /user.php on line 492 trong / user.php on line 492 - -- Warning: gmmktime() expects parameter 3 to be long Cảnh báo: gmmktime () sẽ tham số 3 để được lâu - -- Warning: gmmktime() expects - -- magpierss fix magpierss sửa chữa - -- gmmktime gmmktime - -- MagpieRSS arabic encoding problem Magpierss arabic mã hóa vấn đề - -- freedownload magpieRss freedownload magpierss - -- Magpie RSS turkce Magpie RSS Türkçe - -- magpie rss korean magpie rss Tiếng Hàn Quốc - -- gmmktime error gmmktime lỗi - -- magpierss wordpress plugin magpierss wordpress plugin - -- Parse error: syntax error, unexpected '.' Parse error: lỗi cú pháp, bất ngờ '.' in 492 wordpress trong 492 wordpress - -- wordpress magpierss wordpress magpierss - -- Parse error: syntax error, wp-includes/user.php on line 492 Parse error: lỗi cú pháp, wp-includes/user.php on line 492 - -- wordpress Parse error: syntax error, unexpected wp-includes/user.php on line 492 wordpress Parse error: lỗi cú pháp, bất ngờ wp-includes/user.php on line 492 - -- wordpress Parse error: syntax error, unexpected on line 492 wordpress Parse error: lỗi cú pháp, bất ngờ trên đường dây 492 - -- MagpieRSS polish Magpierss polish - -- magpierss and wordpress link not working magpierss và wordpress liên kết không hoạt động - -- Parse error user.php on line 492 Parse error user.php on line 492 - -- magpierss chinese magpierss Tiếng Trung Quốc - -- MagpieRSS worpress Magpierss worpress - -- arabic rss encode error arabic rss mã hóa lỗi - -- wordpress MagpieRSS update wordpress magpierss cập nhật - -- Warning: gmmktime() expects parameter php Cảnh báo: gmmktime () sẽ php tham số - -- user.php on line 492 user.php on line 492 - -- wordpress error 492 wordpress lỗi 492 - -- wordpress and magpierss wordpress và magpierss - -- magpie rss & wordpress magpie rss & wordpress - -- Warning: substr() expects parameter 3 to be long oscommerce Cảnh báo: substr () sẽ tham số 3 để được lâu osCommerce - -- magpierss work after wordpress upgrade magpierss làm việc sau khi nâng cấp wordpress - -- gmmktime() expects parameter 3 to be long, string given in gmmktime () sẽ tham số 3 để được lâu, được đưa ra trong chuỗi - -- oscommerce Warning: substr() expects parameter 3 to be long osCommerce Cảnh báo: substr () sẽ tham số 3 để được lâu - -- magpierss < > & magpierss <> & - -- gmmktime() expects parameter 4 to be lon gmmktime () sẽ được tham số 4 lon - -- gmmktime() expects parameter 4 to be long, string php5.2.6 gmmktime () sẽ tham số 4 để được lâu, chuỗi php5.2.6 - -- rss.php error wordpress rss.php lỗi wordpress - -- wordpress "unexpected $end" wordpress "bất ngờ $ kết thúc" - -- all tất cả - -- expects parameter 3 to be long sẽ tham số 3 để được lâu - -- parser error wp-includes\user.php on line 492 wp lỗi parser-includes \ user.php on line 492 - -- PHP Warning: substr() expects parameter 3 to be long, string given in PHP Warning: substr () sẽ tham số 3 để được lâu, được đưa ra trong chuỗi - -- yntax error, unexpected 492 yntax lỗi, bất ngờ 492 - --