Call to undefined function opcache_reset
-
So I just installed Google Site Kit to handle Analytics/GTM after another plugin that was doing the job was ruined by an update. No problems getting it set up aside from a small hiccup with GTM that was easily resolved.
The real issue become apparent when I went to update other plugins. Anytime I install a new plugin, or update an existing one, I get an “Update Failed!” message and am redirected to the plugin update page that displays an error referencing this plugin.
PHP version: Litespeed 7.3.14
LiteSpeed Cache plugin is also installed, but Google Site Kit’s files should be exempted from caching. I already tried resetting Google Site Kit, no change. Also exempted the plugin files in Cloudflare, no apparent change there either.
Here’s the text of the error in question as it appears on the plugin update page. (with identifying domain info removed for security)
Fatal error: Uncaught Error: Call to undefined function opcache_reset() in /wp-content/plugins/google-site-kit/google-site-kit.php:102 Stack trace: #0 /wp-includes/class-wp-hook.php(290): googlesitekit_opcache_reset(Object(Plugin_Upgrader)) #1 /wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /wp-admin/includes/class-wp-upgrader.php(836): do_action(‘upgrader_proces…’, Object(Plugin_Upgrader), Array) #4 /wp-admin/includes/class-plugin-upgrader.php(108): WP_Upgrader->run(Array) #5 /wp-admin/update.php(138): Plugin_Upgrader->install(‘https://downloa…’) #6 {main} thrown in /wp-content/plugins/google-site-kit/google-site-kit.php on line 102
- The topic ‘Call to undefined function opcache_reset’ is closed to new replies.