Skip to content Skip to sidebar

This topic contains 0 reply, has 1 voice.

Last updated by rhettY 6 months, 3 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
September 4, 2025 at 5:09 am #17373083

rhettY

Background of the issue:
I am trying to resolve an issue with the WPML plugin on my site hidden link. I've set up the path for opcache.restrict_api as "opcache.restrict_api="/home/admin/domains/antzracing.com/public_html/". I checked the path using the command: [root@server ~]# ls -l /home/admin/domains/antzracing.com/ and verified it with realpath.

Symptoms:
I notice a PHP Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /home/admin/domains/antzracing.com/public_html/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringGettext/Command/CreatePhpFileCommand.php on line 26.

Questions:
How can I resolve the Zend OPcache API restriction issue with WPML?
Is there a specific configuration needed for opcache.restrict_api with WPML?

The topic ‘[Closed] restrict_api issue’ is closed to new replies.