gmmktime Error in WordPress and MagpieRSS Error gmmktime a WordPress i 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: Si esteu executant PHP 5.1 amb el seu servidor web, pot trobar el següent error en el servidor web Apache fitxer de registre d'error (és a dir, httpd-error.log) sempre que es demana a la font RSS i l'Apache necessitat d'analitzar l'RSS en PHP:
For Magpie RSS: Per Magpie RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 Warning: gmmktime () espera paràmetre 3 a ser llarg, cadena en ... / .. rss_utils.inc garsa / en la línia 35
For WordPress 2: Per a 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 () espera paràmetre 3 a ser llarg, cadena a / 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'error en general només es produeix si està utilitzant o actualitzar a PHP 5.1.
The resolution is to edit rss_utils.inc in MagpieRSS or rss-functions.php in WordPress and changes the line below: La resolució és la d'editar rss_utils.inc a MagpieRSS o rss-functions.php a WordPress i els canvis de la línia de sota:
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); època gmmktime $ = ($ hores, minuts $, $ segon, $ month, $ day, $ year);
to the following line by adding +0 after the third variables ($seconds): a la següent línia mitjançant l'addició de 0 després de les variables de tercers ($ segons):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); època gmmktime $ = ($ hores, minuts, $ segons 0, $ month, $ day, $ year);
IMPORTANT : The page is machine translated and provided "as is" without warranty. IMPORTANT: La pàgina és una traducció automàtica i proporciona "com és" sense garantia. Machine translation may be difficult to understand. La traducció automàtica pot ser difícil d'entendre. Please refer to Si us plau, vegeu original English article article anglès original whenever possible. sempre que sigui possible.
Related Articles Articles relacionats
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL Query Error en la classe wpdb
- How to Customize, Modify or Change WordPress Database Connection Error Page Com personalitzar, modificar o canviar la connexió de base de dades de WordPress pàgina d'error
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Fix Error Fatal get_link Crida a la funció () en no-objecte en WordPress 2.8 Dashboard amb Technorati Incoming Links RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginar Split o WordPress Post o pàgina amb Nextpage a WordPress no funciona
- PHP Parse Error: syntax error, unexpected $end PHP Parse error: error de sintaxi, inesperat $ final
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Com canviar la freqüència o interval de WordPress Auto guarda una edició post o pàgina
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin Columna 3 Relaxació WordPress Tema comentaris-paged.php per paginat-Comentaris WordPress Plugin
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress Charset Encoding problema després d'actualitzar a la versió 2.2
- Enable Gzip Compress on Wordpress with WP-Cache 2.x Habilitar gzip Comprimir a Wordpress amb WP-Cache 2.x
- WordPress Permalinks Does Not Work in xampp Setup WordPress Permalinks no funciona en el programa d'instal lació de XAMPP










































December 18th, 2008 05:43 18 desembre 2008 05:43
Words perfectly for me, thx Paraules perfectament per a mi, thx
May 13th, 2008 23:54 13 maig 2008 23:54
thank you so much! thank you so much! saved me alot of time em va salvar un munt de temps
June 17th, 2007 05:48 17 juny 2007 05:48
Great tips! Gran consells! Thank you very much! Moltes gràcies!
May 21st, 2007 06:22 21 maig 2007 06:22
Glad I found this! Glad I found this! I'm surprised they haven't incorporated this into the version in Sourceforge! Em sorprèn que no han incorporat aquesta en la versió a Sourceforge!
May 22nd, 2006 02:17 22 maig 2006 02:17
The first Google result my own website showing the error. Google El primer resultat del meu propi lloc web que mostra l'error. Your's was #3 or so. La seva era # 3 o així. I can't thank you enough for publishing this simple fix. No puc agrair prou per a la publicació d'aquesta correcció simple.
April 27th, 2006 03:37 27 abril 2006 03:37
Thanks very much for documenting this! Moltes gràcies per la documentació d'aquest! You saved me a bunch of time and I really appreciate it. Vostè em va salvar un munt de temps i realment ho apreciem.