Перейти к содержимому Перейти к боковой панели
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Часовой пояс службы поддержки: Europe/Zagreb (GMT+02:00)

Эта тема содержит 0 ответ, имеет 1 голос.

Последнее обновление: johnM-92 10 месяцев, 3 недели назад.

При содействии: Dražen.

Автор Сообщения
28.05.2025 в 11:32 #17083074

johnM-92

Background of the issue:
I was trying to display all pages in languages other than English, which is the default language. However, I encountered a syntax error in the file /wp-content/languages/wpml/queue/default_pending.php on line 249. I resolved the issue by editing the file and removing the offending line. I've uploaded two screenshots. One showing the error on the frontend and the other showing the file I had to edit and the incorrect syntax that I had to remove.

Symptoms:
Parse error: syntax error, unexpected token "=>", expecting end of file in /wp-content/languages/wpml/queue/default_pending.php on line 249. Instead of loading, all pages in languages other than English displayed this error message.

Questions:
Is it OK to manually edit the default_pending.php WPML file?
Will I run into an issue because of manually editing this WPML file?

Тема '[Закрытые] Parse error: syntax error, unexpected token' закрыта для новых ответов.