gmmktime Error in WordPress and MagpieRSS gmmktime Kļūda WordPress un 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: Ja jūs PHP 5,1 jūsu tīmekļa servera, Jums var rasties šādas kļūdas jūsu Apache tīmekļa servera kļūdu log failu (ti httpd-error.log) gadījumā, ja ir prasība RSS barībā, un Apache nepieciešams izanalizēt RSS in PHP:
For Magpie RSS: Par žagata RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 PHP Warning: gmmktime () sagaida parametrs 3 ir garās, stīgu dots ... .. / žagata / rss_utils.inc on line 35
For WordPress 2: Par 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 () sagaida parametrs 3 ir garās, stīgu dots / 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. Kļūda parasti parādās tikai tad, ja Jūs lietojat vai modernizācija, lai PHP 5.1.
The resolution is to edit rss_utils.inc in MagpieRSS or rss-functions.php in WordPress and changes the line below: Šajā rezolūcijā ir rediģēt rss_utils.inc in MagpieRSS vai rss-functions.php in WordPress un izmaiņas līniju zemāk:
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ laikmets = gmmktime ($ laiks, $ minūtēm, $ seconds, $ month, $ diena, $ gads);
to the following line by adding +0 after the third variables ($seconds): uz šādu līniju, pievienojot 0 pēc trešā mainīgie ($ s):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ laikmets = gmmktime ($ laiks, $ minūtēm, $ sekundes 0, $ month, $ diena, $ gads);
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL vaicājumu Kļūda WPDB klase
- How to Customize, Modify or Change WordPress Database Connection Error Page Kā Pielāgot, grozīt vai mainīt WordPress Database Connection Error Page
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Fix Fatāla kļūdu aicinājums Amats get_link () Nepārtikas objektu WordPress 2,8 Dashboard ar Technorati Incoming Links RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating vai sadalīt WordPress Post vai ar Nextpage in WordPress Not Working
- PHP Parse Error: syntax error, unexpected $end PHP parsēt Kļūda: syntax error, negaidītu $ end
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Kā nomainīt biežumu vai Interval WordPress Auto Ietaupa An Editing Post vai
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 Column Atpūta WordPress Theme komentārus-paged.php par Paged-Komentāri WordPress Plugin
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress charset Encoding Problem Pēc Upgrading to Versija 2,2
- Enable Gzip Compress on Wordpress with WP-Cache 2.x Enable Gzip komprese uz WordPress ar WP-Cache 2.x
- WordPress Permalinks Does Not Work in xampp Setup WordPress Permalinks nedarbojas xampp Setup










































December 18th, 2008 05:43 Decembris 18, 2008 05:43
Words perfectly for me, thx Words pilnīgi man, thx
May 13th, 2008 23:54 Maijs 13, 2008 23:54
thank you so much! thank you so much! saved me alot of time saglabāti man daudz laika
June 17th, 2007 05:48 Jūnijs 17, 2007 05:48
Great tips! Lielo padomi! Thank you very much! Liels paldies!
May 21st, 2007 06:22 Maijs 21, 2007 06:22
Glad I found this! Glad I uzskatīja, ka šis! I'm surprised they haven't incorporated this into the version in Sourceforge! Es esmu pārsteigts, tie nav iekļāvusi šo iekļaušanu versija SourceForge!
May 22nd, 2006 02:17 Maijs 22, 2006 02:17
The first Google result my own website showing the error. Pirmais Google rezultātā mana mājas lapā, norādot kļūda. Your's was #3 or so. Jūsu tika # 3, vai arī tā. I can't thank you enough for publishing this simple fix. Es nevaru paldies pietiekami publicēšanai šo vienkāršo noteikt.
April 27th, 2006 03:37 April 27th, 2006 03:37
Thanks very much for documenting this! Thanks very much par dokumentējot to! You saved me a bunch of time and I really appreciate it. Jūs saglabāti man ķekars laika un I really appreciate it.