Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

332
Visualizações
Unexpected character and syntax error on wp-includes/formatting.php

I am getting an error on my WordPress website after changing the server. it's working on cPanel but not working on the AWS server.

I haven't change anything in this file.

enter image description here

This is just one screenshot. SO not allowing me to upload the code. Getting some error while uploding. enter image description here

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I don't know how I got this gray code on the formatting.php page. I found this code in more than 3 places.

I download the latest version of WordPress again and updated the formatting.php and It's starting working again.

enter image description here

over 4 years ago · Santiago Trujillo Relatório

0

Cause

If you use FileZilla like I do - that's where the problem comes from.

If you download your site contents with FileZilla, then the file contents get corrupted.

When you upload again, the 'unexpected characters' break Wordpress.

Behaviour

That explains why in my case, my DEV site was working fine.

But when I download/upload migrated the contents to a fresh QA instance then QA failed with the:

There has been a critical error on this website.

Solution

I used Nautilus to connect to my host as a Remote Server.

When I copied my formatting.php down through Nautilus, the file opened all clean.

The FileZilla FTP copy was dinged in 3 places.

WinSCP is also apparently fine with this.

Disclaimer: Not my own work

All thanks due to this comment:

https://wordpress.org/support/topic/parse-error-on-line-5925-in-formatting-php/

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda