gmmktime Error in WordPress and MagpieRSS gmmktime Erreur dans WordPress et 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 vous utilisez PHP 5.1 avec votre serveur Web, vous mai rencontre l'erreur suivante dans votre serveur web Apache erreur de fichier journal (c.-à-d httpd-error.log) chaque fois qu'il ya de la demande de la RSS et de la nécessité d'analyser Apache RSS en PHP:
For Magpie RSS: Pour Magpie RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 PHP Warning: gmmktime () attend le paramètre de 3 à être long, dans la chaîne de caractères ... .. / pie / rss_utils.inc on line 35
For WordPress 2: Pour 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 () attend le paramètre de 3 à être long, 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'erreur ne se produit généralement si vous utilisez ou la mise à jour vers 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 résolution est de modifier ou rss_utils.inc dans MagpieRSS rss-functions.php dans WordPress et change la ligne ci-dessous:
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ epoch = gmmktime ($ heure, $ minutes, $ secondes, $ month, $ day, $ year);
to the following line by adding +0 after the third variables ($seconds): à la ligne suivante en ajoutant 0, après le troisième des variables ($ secondes):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ epoch = gmmktime ($ heure, $ minutes, $ seconds 0, $ month, $ day, $ year);
IMPORTANT : The page is machine translated and provided "as is" without warranty. IMPORTANT: La page de traduction et de la machine est fourni "tel quel" sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S'il vous plaît se référer à original English article article original en anglais whenever possible. chaque fois que possible.
Related Articles Related Articles
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL Query Error in Class WPDB
- How to Customize, Modify or Change WordPress Database Connection Error Page Comment faire pour personnaliser, modifier ou changer 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 Fatal Error Correction appel à la fonction get_link () sur la non-objet dans WordPress 2.8 avec Dashboard Technorati Incoming Links RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Numérotation ou Split WordPress Poste ou avec Nextpage dans WordPress ne fonctionne pas
- PHP Parse Error: syntax error, unexpected $end PHP Parse error: syntax error, unexpected $ end
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Comment faire pour modifier la fréquence ou l'intervalle de WordPress Auto Saves An Editing Post ou
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 colonnes Relaxation WordPress Theme comments-paged.php pour Paginé-Comments WordPress Plugin
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress Charset Encoding Problem Après la mise à niveau vers la version 2.2
- WordPress Permalinks Does Not Work in xampp Setup WordPress Permalinks ne fonctionne pas dans le programme d'installation xampp
- Enable Gzip Compress on Wordpress with WP-Cache 2.x Activer Gzip Compress sur Wordpress avec WP-Cache 2.x










































December 18th, 2008 05:43 Décembre 18th, 2008 05:43
Words perfectly for me, thx Mots parfaitement, pour moi, merci
May 13th, 2008 23:54 13 mai 2008 23:54
thank you so much! thank you so much! saved me alot of time m'a sauvé beaucoup de temps
June 17th, 2007 05:48 17 juin 2007 05:48
Great tips! Grande conseils! Thank you very much! Merci beaucoup!
May 21st, 2007 06:22 21 mai 2007 06:22
Glad I found this! Je suis heureux d'avoir trouvé cela! I'm surprised they haven't incorporated this into the version in Sourceforge! Je suis surpris qu'ils ne l'ont pas intégré dans la version présente dans Sourceforge!
May 22nd, 2006 02:17 22 mai 2006 02:17
The first Google result my own website showing the error. Le premier résultat de Google mon propre site web montrant l'erreur. Your's was #3 or so. Votre fut # 3 ou plus. I can't thank you enough for publishing this simple fix. Je ne peux pas vous remercier assez pour cette édition simple correctif.
April 27th, 2006 03:37 27 avril 2006 03:37
Thanks very much for documenting this! Merci beaucoup pour cette documentation! You saved me a bunch of time and I really appreciate it. Vous avez sauvé moi un tas de temps et j'ai vraiment l'apprécier.