gmmktime Error in WordPress and MagpieRSS gmmktime Erro em WordPress e 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: Se você estiver executando o PHP 5.1 com o servidor web, você pode encontrar o seguinte erro em seu servidor Web Apache arquivo de log de erro (ou seja, httpd-error.log) onde quer que haja pedidos para o RSS feed do Apache e necessidade de analisar o RSS em PHP:
For Magpie RSS: Para Magpie RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 PHP Warning: gmmktime () espera parâmetro 3 a ser longo, dada na corda ... .. / pega / rss_utils.inc on line 35
For WordPress 2: Para 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 () espera parâmetro 3 a ser longo, na seqüência dada / 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. O erro geralmente ocorre apenas se estiver a utilizar ou fazer o upgrade para PHP 5.1.
The resolution is to edit rss_utils.inc in MagpieRSS or rss-functions.php in WordPress and changes the line below: A resolução é a de editar rss_utils.inc em MagpieRSS ou rss-functions.php em WordPress e muda a linha abaixo:
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ época gmmktime = ($ horas, $ minutos, $ segundos, $ mês, $ dia, $ ano);
to the following line by adding +0 after the third variables ($seconds): para a linha seguinte, acrescentando 0 depois do terceiro variáveis ($ segundos):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ época gmmktime = ($ horas, $ minutos, $ segundo +0, $ mês, $ dia, $ ano);
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma máquina página traduzida que é fornecido "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de entender. Please refer to Por favor referir-se original English article artigo original Inglês whenever possible. quando possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter assistência técnica e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos Relacionados
- How to Customize, Modify or Change WordPress Database Connection Error Page Como personalizar, modificar ou alterar WordPress conexão de dados da página de erro
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL Query SQL erro na classe WPDB
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 WordPress Charset codificação problema após actualizar para a versão 2.2
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support Download WordPress 2.3 Release Candidate 1 (RC1) com Tags Support
- Download Previous or Old Version of WordPress Download anterior ou antiga versão do WordPress
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2 WordPress 2.1.1 Critical Security Alert - Download Upgrade para 2.1.2
- Integrate WordPress including Comments with bbPress Forum using bbSync Integre WordPress incluindo Comentários com bbPress Fórum usando bbSync
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Como alterar a frequência ou intervalo WordPress Auto poupa uma edição ou pós página
- Disable WordPress 2.3 Core and Plugins Update Check and Notification Desativar WordPress 2.3 Core e Plugins Update Verifique e notificação
- Must Have WordPress Plugins Deve ter WordPress Plugins

































April 27th, 2006 03:37 27 de abril de 2006 03:37
Thanks very much for documenting this! Muito obrigado por esta documentando! You saved me a bunch of time and I really appreciate it. Você salvou-me um monte de tempo e eu realmente aprecio isso.
May 22nd, 2006 02:17 22 de maio de 2006 02:17
The first Google result my own website showing the error. O primeiro resultado do Google o meu próprio site mostrando o erro. Your’s was #3 or so. Sua's era # 3 ou assim. I can’t thank you enough for publishing this simple fix. Não posso lhe agradecer o suficiente para publicar esta simples correção.
May 21st, 2007 06:22 21 de maio de 2007 06:22
Glad I found this! Ainda bem que encontrei isto! I’m surprised they haven’t incorporated this into the version in Sourceforge! Estou surpreso que não tenham incorporado esta em sua versão em Sourceforge!
June 17th, 2007 05:48 17 de junho de 2007 05:48
Great tips! Grandes dicas! Thank you very much! Muito obrigado!
May 13th, 2008 23:54 13 de maio de 2008 23:54
thank you so much! muito obrigado! saved me alot of time salvou-me de muito tempo