Forum

Thread tagged as: Problem, Error, Hosting

PHP notice: "Zend OPcache can't be temporary enabled (it may be only disabled ti...

On about every 5th request (so, randomly) I get a notice from PHP: "Zend OPcache can't be temporary enabled (it may be only disabled till the end of request)"

Some googling lead me to believe that it's an issue with PHP trying to enable OPCache twice, but the only references in Perch that I could find did not seem to be causing this.

Any ideas?

Perch: 2.8.34, PHP: 7.2.0, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Linux, fpm-fcgi
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /includes/php/perch
PERCH_PATH: /srv/www/vhosts/REDACTED/httpdocs/includes/php/perch
PERCH_CORE: /srv/www/vhosts/REDACTED/httpdocs/includes/php/perch/core
PERCH_RESFILEPATH: /srv/www/vhosts/REDACTED/httpdocs/includes/php/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 64M, Max POST 64M, Memory: 128M, Total max file upload: 64M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
SCRIPT_NAME: /includes/php/perch/core/settings/diagnostics/index.php
REQUEST_URI: /includes/php/perch/core/settings/diagnostics/
DOCUMENT_ROOT: /srv/www/vhosts/REDACTED/httpdocs
HTTP_HOST: REDACTED.10-10-57-12.srv57.webpreview.ch
Louis Bataillard

Louis Bataillard 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you asked your host?

I have an open ticket with them but not heard back. Thought maybe this is an issue that you're familiar with. I will see if my host can help and report back with their findings.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, it's not something I've ever seen.

Hey Louis, Did you solve this? I get it too. Started happening on the sites I moved to a virtual host. -- Monty

Hello Monty. My host was able to solve the issue on their end, but they have not disclosed what exactly they have changed.

cool. I'll get in touch with mine then. Thanks!