gmmktime Error in WordPress and MagpieRSS gmmktime Помилка в WordPress та 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: Якщо ви використовуєте PHP 5.1 з вашого веб-сервера, ви можете зіткнутися з наступною помилкою в вашому веб-сервері Apache лог-файл помилки (тобто HTTPD-error.log), коли є запити на канал RSS і Apache необхідно проаналізувати RSS в PHP:
For Magpie RSS: За сорок RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 Warning: gmmktime () очікує параметр 3 в довжину, рядки наведені в ... .. / сорок / rss_utils.inc у рядку 35
For WordPress 2: Для 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 Warning: gmmktime () очікує параметр 3 в довжину, рядки наведені в / usr/local/www/apache22/data/wordpress-mydigitallife/wp-includes/rss-functions.php по рядку 788
The error usually only occurs if you are using or upgrading to PHP 5.1. Ця помилка зазвичай виникає, якщо ви використовуєте або оновлення до PHP 5.1.
The resolution is to edit rss_utils.inc in MagpieRSS or rss-functions.php in WordPress and changes the line below: У цій резолюції полягає у редагуванні rss_utils.inc в MagpieRSS або RSS-functions.php У WordPress та зміни рядки нижче:
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ Епоху gmmktime = ($ години, хвилини $, $ секунд, $ на місяць, $ день, $ на рік);
to the following line by adding +0 after the third variables ($seconds): на наступний рядок, додавши 0 після третього змінних ($ секунд):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ Епоху gmmktime = ($ години, хвилини $, $ 0 секунд, $ на місяць, $ день, $ на рік);
IMPORTANT : The page is machine translated and provided "as is" without warranty. ВАЖЛИВО: Сторінка машина переведена і надаються "як є" без гарантії. Machine translation may be difficult to understand. Машинний переклад може бути важким для розуміння. Please refer to Будь ласка, зверніться до original English article оригінальний англійська статтю whenever possible. коли це можливо.
Related Articles Статті за Темі
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL Query Помилка в Неактивен клас
- How to Customize, Modify or Change WordPress Database Connection Error Page Які існують параметри, змінити або модифіковані WordPress Database Connection Error сторінку
- WordPress Call To Undefined Function get_currentuserinfo() PHP Error WordPress виклику невизначеною функції get_currentuserinfo () PHP помилки
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Fix Fatal Error Заклик до функцій get_link () на Non-об'єкта в WordPress 2.8 Dashboard з Technorati вхідні посилання RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Посторінковий або Спліт WordPress Розміщувати або сторінка з СледующаяСтраніца У WordPress не працює
- PHP Parse Error: syntax error, unexpected $end PHP Parse Error: синтаксис помилка, несподіваний $ кінець
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Як змінити частоту або інтервал WordPress Auto Зберігає Редагування Поштові або сторінку
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 колонки Відпочинок WordPress тема коментарів-paged.php для сторінкових коментарів WordPress-плагін
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress Charset Encoding проблема після оновлення до версії 2.2
- Enable Gzip Compress on Wordpress with WP-Cache 2.x Увімкніть Gzip компрес на Wordpress з WP-Cache 2.x










































December 18th, 2008 05:43 18 грудня 2008 05:43
Words perfectly for me, thx Слова абсолютно для мене, THX
May 13th, 2008 23:54 13 травня 2008 23:54
thank you so much! Дякую вам так багато! saved me alot of time заощадило мені багато часу
June 17th, 2007 05:48 17 червня 2007 05:48
Great tips! Великий поради! Thank you very much! Большое спасибо!
May 21st, 2007 06:22 21 травня 2007 06:22
Glad I found this! Радий, що знайшов це! I'm surprised they haven't incorporated this into the version in Sourceforge! Я здивований, вони не включені в цю версію в Sourceforge!
May 22nd, 2006 02:17 22 травня 2006 02:17
The first Google result my own website showing the error. Google першим результатом мого власного веб-сайту показані помилки. Your's was #3 or so. Ваша був # 3 або близько того. I can't thank you enough for publishing this simple fix. Я не можу тебе віддячити за публікацію цього проста виправити.
April 27th, 2006 03:37 27 квітня 2006 03:37
Thanks very much for documenting this! Велике спасибі за це документально! You saved me a bunch of time and I really appreciate it. Ви врятували мене купа часу, і я дійсно ціную це.