跳到内容 跳到侧边栏

本主题包含 0 則回覆 ,有 0 声音 。

最后由 sidriD 3 months, 3 weeks前 更新。

协助者:: Noman.

作者 帖子
6 5 月, 2025 于 12:13 下午

sidriD

Background of the issue:
I am trying to install languages on my site 隐藏链接 using WPML. However, I am encountering issues with the language menu constantly switching to Romanian. Additionally, I am seeing multiple error messages related to the Zend OPcache API restriction and header modification issues.

Symptoms:
Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /data/web/virtuals/370328/virtual/www/domains/hotelcaalvise.eu/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringGettext/Command/CreatePhpFileCommand.php on line 26. Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/370328/virtual/www/domains/hotelcaalvise.eu/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringGettext/Command/CreatePhpFileCommand.php:26) in /data/web/virtuals/370328/virtual/www/domains/hotelcaalvise.eu/wp-includes/functions.php on line 7168.

Questions:
How can I resolve the Zend OPcache API restriction error?
Why is the language menu switching to Romanian automatically?
How can I fix the header modification error?

6 5 月, 2025 于 1:11 下午