Error:
Unable to query OPcache status: array_key_exists(): Argument #2 ($array) must be of type array, false given.
Resolution:
Make sure opcache.enable_cli=1 is enabled in the cli php.ini at /etc/php/8.3/cli/php.ini (on Debian)
To find the php.ini and PHP version
# See version
php -v
# view php.ini
php -i | grep "Loaded Configuration File"
Loaded Configuration File => /etc/php/8.3/cli/php.ini
# edit /etc/php/8.3/cli/php.ini
vim /etc/php/8.3/cli/php.ini
# or
nano /etc/php/8.5/cli/php.ini
# set to 1
opcache.enable_cli=1

0 Comments