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 Feed של אפאצ 'י צריך לנתח את ה-RSS ב-PHP:
For Magpie RSS: עבור Magpie RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 PHP 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 PHP Warning: gmmktime () מצפה פרמטר 3 להיות ארוך, מחרוזת שניתן / 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. השגיאה בדרך כלל קורה רק אם אתה משתמש או לשדרג ל-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 ב-RSS או MagpieRSS 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 שגיאה WPDB Class
- How to Customize, Modify or Change 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 תיקון שגיאה חמורה הסב get_link function () על אובייקט שאינו ב-WordPress 2.8 עם לוח המחוונים Technorati Incoming Links RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating או פיצול וורדפרס פוסט או עמוד עם NextPage ב-WordPress לא תקין
- PHP Parse Error: syntax error, unexpected $end PHP Parse שגיאה: שגיאת תחביר, לא צפוי סוף $
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page כיצד לשנות את תדירות או מרווח וורדפרס אוטומטי חוסך עריכת פוסט או עמוד
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 טור הרפיית WordPress נושאים הערות עבור-paged.php תגובות מעומד-WordPress Plugin
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress Charset קידוד בעיה אחרי שדרוג לגרסה 2.2
- Enable Gzip Compress on Wordpress with WP-Cache 2.x מאפשרים דחיסת GZIP על וורדפרס עם WP-cache 2.x
- WordPress Permalinks Does Not Work in xampp Setup וורדפרס Permalinks לא עובד ההתקנה xampp










































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. התוצאה הראשונה של גוגל באתר שלי מראה את השגיאה. 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. הצלת אותי חבורה של זמן ואני ממש מעריך את זה.