Open JE4GLE opened 1 year ago
I guess my provider disabled the opcache_get_status
function, because it is a shared host. Can be detected using
$disabledList = explode(',', ini_get('disable_functions'));
$disabled = in_array('opcache_get_status', $disabledList);
I guess an error message like
It seems like OPcache is enabled in your configuration, but blocked for security reasons. OPcache stores bytecode of PHP scripts in memory and is therefore able to speed up PHP by quite a bit as it avoids loading and parsing PHP files on every request. Check the
disable_functions
php.ini setting for more information.
or something like that should be added to clarify to situation.
The following message is spammed 11 times on the diagnostics page and has something to do with the DiagnosticsExtended Plugin.
Expected Behavior
The expected behavior is to not show the error message and fix the underlying error, if there is one.
Current Behavior
The error message is spammed 11 times.
Possible Solution
I think the message could mean that opcache is disabled and a warning message can be displayed in this case. But I’m not sure. I think the
if
case can be used for this: https://github.com/Findus23/matomo-DiagnosticsExtended/blob/main/Diagnostic/OpcacheCheck.php#L44Steps to Reproduce (for Bugs)
I guess this has to do with the Opcache installation of my hosting provider. URL:
/index.php?date=last7&module=Installation&format=html&action=systemCheckPage&idSite=1&period=range&showtitle=1&random=2535&activated=
Context
I created this error based on a suggestion on this forum post: https://forum.matomo.org/t/matomo-4-3-0-spams-opcache-error-message/41895/7
Your Environment