Pular para o conteúdo Pular para a barra lateral
Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Fuso horário do suporte: Asia/Kathmandu (GMT+05:45)

Marcado: 

Este tópico contém 0, tem 1 voices.

Última atualização: stinP 1 semana, 1 dia atrás.

Assistido por: Shekhar Bhandari.

Autor Posts
novembro 19, 2025 às 12:21 pm #17591574

stinP

Background of the issue:
I was trying to fix an issue where a post on a website we support didn't show the post content, although it appeared correctly in the editor. After researching, I found that a link had a hyperlink to "link oculto;. The last (wrong) character was breaking the preg_replace function at /sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php, line 450, causing the text to be set as null.

Symptoms:
The post content was not displaying on the website, despite appearing correctly in the editor. The issue was traced to a hyperlink with an incorrect character that broke the preg_replace function.

Questions:
How can such crashes be handled more gracefully in the future?

O tópico '[Fechado] preg_replace breaks page content when links have wrong characters' está fechado para novas respostas.