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ể.
Related Articles Bài viết liên quan
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL vấn SQL Error in WPDB Class
- How to Customize, Modify or Change WordPress Database Connection Error Page Làm thế nào để Customize, Chỉnh sửa hoặc thay đổi kết nối WordPress Cơ sở dữ liệu Lỗi Trang
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Khắc phục lỗi Fatal Gọi đến Chức năng get_link () trên Non-Object trong WordPress 2,8 Bảng điều khiển với Technorati Incoming Links RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating hoặc Split WordPress Đăng hoặc Trang với NextPage trong WordPress Không phải làm việc
- PHP Parse Error: syntax error, unexpected $end PHP Parse Error: lỗi cú pháp, bất ngờ $ kết thúc
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Làm thế nào để thay đổi các tần số hoặc Interval WordPress Auto Tiết kiệm An Post Chỉnh sửa hoặc Trang
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 Cột Relaxation WordPress Chủ đề ý kiến-paged.php cho paged-Bình luận WordPress Plugin
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress Charset Encoding Problem Sau khi Nâng cấp lên Phiên bản 2,2
- Enable Gzip Compress on Wordpress with WP-Cache 2.x Kích hoạt Gzip Nén trên Wordpress với WP-Cache 2.x
- WordPress Permalinks Does Not Work in xampp Setup WordPress Permalinks Does Không phải làm việc trong xampp Setup










































December 18th, 2008 05:43 Tháng 12 18, 2008 05:43
Words perfectly for me, thx Nói cách hoàn hảo cho tôi, thx
May 13th, 2008 23:54 Ngày 13 Tháng Năm 2008 23:54
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
June 17th, 2007 05:48 Ngày 17 tháng 6 2007 05:48
Great tips! Great mẹo! Thank you very much! Cảm ơn bạn rất nhiều!
May 21st, 2007 06:22 Tháng 5 21, 2007 06:22
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!
May 22nd, 2006 02:17 Ngày 22 Tháng Năm 2006 02:17
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.
April 27th, 2006 03:37 Ngày 27 Tháng Tư 2006 03:37
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ó.