Bug #80862 [Fbk->Asn]: "Class not found" using Opcache & Xenforo
| From: | alex at ndros dot com | Date: | Mon, 15 Mar 2021 14:01:51 +0000 |
| Subject: | Bug #80862 [Fbk->Asn]: "Class not found" using Opcache & Xenforo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232732@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80862&edit=1
ID: 80862
User updated by: alex at ndros dot com
Reported by: alex at ndros dot com
Summary: "Class not found" using Opcache & Xenforo
-Status: Feedback
+Status: Assigned
Type: Bug
Package: opcache
Operating System: Windows Server 2019
PHP Version: 7.4.16
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Hi,
No, there's no modification on the files. This appears to happen randomly.
---Are there other PHP processes running for the same user with the
same cache_id?
I'm not sure about that. We do use 2 worker processes for the IIS application pool. We did try
to use just 1, but the error happens with this configuration as well.
----Are there any relevant warnings in the OPcache error log?
No, the OPcache error log only contains entries like:
Message Cached script
Message Added key
Debug Loading blacklist file:
Previous Comments:
------------------------------------------------------------------------
[2021-03-15 09:17:01] cmb@php.net
Does this happen after you modified some of the PHP files?
Are there other PHP processes running for the same user with the
same cache_id?
Are there any relevant warnings in the OPcache error log?
------------------------------------------------------------------------
[2021-03-14 11:57:55] alex at ndros dot com
Typo: we may get the same OR another class not found error.
------------------------------------------------------------------------
[2021-03-14 11:55:21] alex at ndros dot com
Description:
------------
Hi,
We're using PHP 7.4.16 NTS with Opcache.
We randomly get "class not found" errors with the software that we run (Xenforo 2.2).
For example:
Class 'XF\Mvc\Entity\Repository' not found
This is solved after an IIS reset, but after a few minutes, we may get the same on another class not
found error.
Our Opcache config is:
[OPCACHE]
zend_extension = "php_opcache.dll"
opcache.memory_consumption=256
opcache.cache_id=node1
opcache.error_log="D:\temp\php\opcache.log"
opcache.validate_timestamps=1
opcache.revalidate_freq=30
opcache.interned_strings_buffer=32
opcache.save_comments=0
opcache.max_file_size=0
opcache.file_update_protection=2
;opcache.file_cache_consistency_checks=0 // not used
;opcache.file_cache="D:\temp\php\opcache_filecache" // not used
opcache.max_accelerated_files=10000
opcache.log_verbosity_level=4
opcache.blacklist_filename=
"D:\inetpub\wwwroot\******.com\conf\opcache\opcache-blacklist.txt"
opcache.enable_cli=1
opcache.max_wasted_percentage=10
Thank you
Alex
Test script:
---------------
We haven't found a specific way to reproduce the issue.
Expected result:
----------------
We haven't found a specific way to reproduce the issue.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80862&edit=1