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. коли це можливо.


6 Responses to “gmmktime Error in WordPress and MagpieRSS” 6 Відповідь до "gmmktime Помилка в WordPress та MagpieRSS"

  1. Sura Сури
    December 18th, 2008 05:43 18 грудня 2008 05:43
    6 6

    Words perfectly for me, thx Слова абсолютно для мене, THX

  2. neil epstein Neil Епштейн
    May 13th, 2008 23:54 13 травня 2008 23:54
    5 5

    thank you so much! Дякую вам так багато! saved me alot of time заощадило мені багато часу

  3. Frank Франк
    June 17th, 2007 05:48 17 червня 2007 05:48
    4 4

    Great tips! Великий поради! Thank you very much! Большое спасибо!

  4. Douglas Karr Дуглас Карр
    May 21st, 2007 06:22 21 травня 2007 06:22
    3 3

    Glad I found this! Радий, що знайшов це! I'm surprised they haven't incorporated this into the version in Sourceforge! Я здивований, вони не включені в цю версію в Sourceforge!

  5. Andrew Андрій
    May 22nd, 2006 02:17 22 травня 2006 02:17
    2 2

    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. Я не можу тебе віддячити за публікацію цього проста виправити.

  6. Sarah Сара
    April 27th, 2006 03:37 27 квітня 2006 03:37
    1 1

    Thanks very much for documenting this! Велике спасибі за це документально! You saved me a bunch of time and I really appreciate it. Ви врятували мене купа часу, і я дійсно ціную це.

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> Ви можете використовувати ці теги: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <справі DateTime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Підписатися на коментарі функція була відключена. To receive notification of latest comments posted, subscribe to Щоб отримувати повідомлення про останні коментарях, підписатися My Digital Life Comments RSS feed Моя Цифрова життя Коментарі RSS Feed or або register to receive Увійдіть, щоб отримувати new comments in daily email digest. нові коментарі в щоденній електронній пошті.
Custom Search

New Articles Нові статті

Incoming Search Terms for the Article Вхідні терміни пошуку для статті

gmmktime() expects parameter gmmktime () очікує параметр - --