Erro 500 ao tentar criar artigo no K2.

  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
12 anos 5 meses atrás #88828 por riccelly
riccelly created the topic: Erro 500 ao tentar criar artigo no K2.
ola,

qnd tento criar artigo no K2 aparece:

500 - Ocorreu um erro.

DateTime::__construct() [datetime.--construct]: Failed to parse time string (21/04/2013 20:55:15) at position 0 (2): Unexpected character

Retornar ao Painel de Controle

alguem sabe o pq?

obs: uso o template yoo enterprise e o k2 atual (Joomla 2.5)

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.


  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
12 anos 5 meses atrás #88829 por riccelly
riccelly replied the topic: [resolvido] Re: Erro 500 ao tentar criar artigo no K2.
CORREÇÃO! AXEI NA NET..

Fiz alguns testes na tradução pt-BR do k2 e, no meu caso, deu certo.

Passos:

1. Vá em: administrator->language->pt-BR.com_k2.ini

2. No arquivo pt-BR.com_k2.ini (do diretório 'administrator'), pesquise por: K2_J16_DATE_FORMAT_CALENDAR="d/m/Y H:i:s"

3. Altere para: K2_J16_DATE_FORMAT_CALENDAR="d-m-Y H:i:s"

4. Para mim funcionou dessa forma. Caso encontre algum outro erro, altere também todos os seguintes itens retirando o "%" e trocando o "M" por "i" e "S" por "s" nos seguintes itens:

K2_J16_DATE_FORMAT
K2_J16_DATE_FORMAT_CALENDAR
K2_J16_DATE_FORMAT_LC2
K2_J16_DATE_FORMAT_LC

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.