gmmktime Error in WordPress and MagpieRSS ¿öµå¿Í MagpieRSS¿¡ gmmktime ¿À·ù
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À» ½ÇÇàÇϰí, ³ÊÈñ´Â (httpd´Â Áï - error.log) ¶§¸¶´Ù RSS Çǵ带 ¿äûÇÏ´Â ¾ÆÆÄÄ¡ ¾ÆÆÄÄ¡ À¥ ¼¹ö ¿À·ù ·Î±× ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ¿À·ù°¡ ¹ß»ýÇÒ ¼öÀÖ´Â 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 PHP´Â °æ°í : gmmktime () º¯¼ö 3 ±ä ¹®ÀÚ¿À» ... ... / ±îÄ¡ / rss_utils.inc¿¡¼ ¶óÀÎ 35¿¡ ÁÖ¾îÁø µÉ °ÍÀ¸·Î ±â´ëÇϰí
For WordPress 2: ¿öµå 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´Â °æ°í : 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: ÇØ»óµµ MagpieRSS ¶Ç´Â RSS¿¡ rss_utils.inc - ¿öµå ¹× º¯°æ¿¡ functions.php ¾Æ·¡ ¶óÀÎÀ» ¼öÁ¤ÇÏ´Â °ÍÀÔ´Ï´Ù :
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ ȹ±â = gmmktime ($ ½Ã°£, $ ºÐ, $ ÃÊ, $ ´Þ, $ ÇÏ·ç¿¡ $ 1 ³â);
to the following line by adding +0 after the third variables ($seconds): ´ÙÀ½ ¶óÀÎÀº ¼¼ ¹øÂ° º¯¼ö ($ ÃÊ) ÈÄ Ãß°¡ +0 :ÇÏ¿©
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ ȹ±â = gmmktime ($ ½Ã°£, $ ºÐ, $ ÃÊ +0, $ ´Þ, $ ÇÏ·ç¿¡ $ 1 ³â);
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. Áß¿ä :ÀÌ ±â°è´Â "º¸Áõµµ¾øÀÌÀÖ´Â ±×´ë·Î"Á¦°øµË´Ï´Ù ÆäÀÌÁö¸¦ ¹ø¿ªÇß´Ù. Machine translation may be difficult to understand. ±â°è ¹ø¿ªÀ» ÀÌÇØÇϱ⠾î·Á¿ï ¼öÀÖ½À´Ï´Ù. Please refer to À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù original English article ¿ø·¡ ¿µ¾î ¹®¼ whenever possible. ¾ðÁ¦µç °¡´ÉÇÕ´Ï´Ù.
Share and contribute or get technical support and help at °øÀ¯¿Í ±â¿©Çϰųª ±â¼ú Áö¿ø°ú¿¡ µµ¿òÀÌ My Digital Life Forums ³» µðÁöÅÐ »ýȰ Æ÷·³ .
Related Articles °ü·Ã ±â»ç
- WordPress MySQL SQL Query Error in WPDB Class WordPressÀÇ MySQLÀº SQL Äõ¸® ¿À·ù WPDB¿¡¼ ¼ö¾÷
- How to Customize, Modify or Change WordPress Database Connection Error Page »ç¿ëÀÚ ÁöÁ¤ÇÏ´Â ¹æ¹ý, ¼öÁ¤ ¶Ç´Â º¯°æ WordPress µ¥ÀÌŸº£À̽º ¿¬°á ¿À·ù ÆäÀÌÁö·Î
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working WordPressÀÇ Paginating ¶Ç´Â ½ºÇø´ Æ÷½ºÆ® ¶Ç´Â ÆäÀÌÁö Nextpage ÇÔ²² ¿öµå¿¡ ¾È µÊ
- Internal Error 2739 Error in Vista (32 or 64-bit) When Install Adobe Photoshop CS3 and Reflector Related Programs Vista¿¡¼ ³»ºÎ ¿À·ù 2739 ¿À·ù (32 ¶Ç´Â 64 - ºñÆ®)À» ¼³Ä¡ÇÏ¸é ¾îµµºñ´Â Æ÷Åä¼¥ CS3 ¹× ¹Ý»ç °ü·Ã ÇÁ·Î±×·¥
- PHP Parse Error: syntax error, unexpected $end PHP´Â ±¸¹® ºÐ¼® ¿À·ù : ±¸¹® ¿À·ù, ¿¹±âÄ¡ ¾ÊÀº $ ³¡
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 ¿ - ÆäÀÌ¡À»À§ÇÑ ÈÞ½Ä WordPressÀÇ Å׸¶ ÀÇ°ß paged.php - ´ñ±Û ¿öµå Ç÷¯±×ÀÎ
- Must Have WordPress Plugins À» °®°í ÀÖ¾î¾ß WordPressÀÇ Ç÷¯±×ÀÎ
- Download Previous or Old Version of WordPress ÀÌÀü ¹öÀüÀ» ´Ù¿î·ÎµåÇϰųª ¿öµåÀÇ ÀÌÀü
- WordPress 2.2 Released for Free Download WordPressÀÇ 2.2 ¹«·á ´Ù¿î·Îµå¿¡ ´ëÇÑ Ãâ½Ã
- WordPress 2.3 Final Free Download WordPressÀÇ 2.3 ÃÖÁ¾ ¹«·á ´Ù¿î·Îµå

































April 27th, 2006 03:37 4 ¿ù 27 ÀÏ 2006 3½Ã 37ºÐ
Thanks very much for documenting this! ÀÌ ¹®¼È¸¦À§ÇÑ ´ë´ÜÈ÷ °¨»çÇÕ´Ï´Ù! You saved me a bunch of time and I really appreciate it. ´ç½ÅÀº ¿ì¸® µÑ¸¸ÀÇ ½Ã°£À» Àܶà ÀúÀåÇÑ Á¤¸» °¨»çÇÕ´Ï´Ù.
May 22nd, 2006 02:17 2006³â 5¿ù 22ÀÏ 2½Ã 17ºÐ
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. ÃâÆÇÀÌ ´Ü¼øÇÑ ÃæºÐÈ÷ °íÄ¥ ¼ö ¾ø´Ù¼Å¼ °¨»çÇÕ´Ï´Ù.
May 21st, 2007 06:22 2007³â 5¿ù 21ÀÏ 6½Ã 22ºÐ
Glad I found this! ÀÌ°É ¹ß°ß ´ÙÇà! I¡¯m surprised they haven¡¯t incorporated this into the version in Sourceforge! ³ª´Â ±×µéÀÌ ÅëÇÕÇÏÁö ¾ÊÀº ¹öÀüÀ¸·Î Sourceforge¿¡ ³î¶ú¾î¿ä!
June 17th, 2007 05:48 6 ¿ù 17 ÀÏ 2007 5½Ã 48ºÐ
Great tips! ÁÁÀº ÆÁ! Thank you very much! Áø½ÉÀ¸·Î °¨»çÇÕ´Ï´Ù!
May 13th, 2008 23:54 2008³â 5¿ù 13ÀÏ 23½Ã 54ºÐ
thank you so much! Á¤¸» °í¸¶¿ö¿ä! saved me alot of time µÑ¸¸ÀÇ ½Ã°£À» ¸¹ÀÌ ±¸ÇØ