Fatal Error On Update Settings
-
We’re getting a fatal PHP error when clicking Update Settings:
An error of type E_ERROR was caused in line 3030 of the file /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php. Error message: Uncaught Error: Call to undefined function opcache_get_status() in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php:3030
The code needs to be fixed, “Zend OPcache” should be changed to the module name “opcache”, and add a function_exists check as well for good measure:
function purge_opcache() {
// if ( ! extension_loaded( 'Zend OPcache' ) ) {
if ( ! extension_loaded( 'opcache' ) ) {
return false;
}
// Add this function check just in case
if ( ! function_exists( 'opcache_get_status' ) ) {
return false;
}
$opcache_status = opcache_get_status();I’m seeing a lot of unanswered support topics… is this plugin still being actively updated and supported?
If not I’ll be looking into forking the plugin and offering it to my clients directly instead.
Thanks,
Rob
- You must be logged in to reply to this topic.