Title: Call to undefined function opcache_reset
Last modified: February 14, 2020

---

# Call to undefined function opcache_reset

 *  Resolved [Tyrosh](https://wordpress.org/support/users/iskmogul/)
 * (@iskmogul)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/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…&#8217](https://downloa…&#8217);)#
   6 {main} thrown in /wp-content/plugins/google-site-kit/google-site-kit.php on
   line 102

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Tyrosh](https://wordpress.org/support/users/iskmogul/)
 * (@iskmogul)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12434984)
 * I’m dumb, found the solution minutes after making this. I hadn’t enabled OPCache
   in my PHP config.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12437560)
 * [@iskmogul](https://wordpress.org/support/users/iskmogul/) thanks for your report
   and follow up! Which version of the plugin were you on previously?
 *  [gabstero](https://wordpress.org/support/users/gabstero/)
 * (@gabstero)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12437615)
 * The sad thing is that my hosting company wouldn’t let me enable opcache as i 
   am in a “share hosting”.
 * Any other ideas what to do?
    Thanks!
 *  [gigi13](https://wordpress.org/support/users/gigi13/)
 * (@gigi13)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12437620)
 * I had a similar error to iskmogul when updating from version 1.2.0 to 1.3.0 today.
   I received the following error in my log:
 * ——————————————————————————–
    2020-02-14T16:39:29+00:00 CRITICAL Uncaught Error:
   Call to undefined function opcache_reset() in /home/*********/public_html/wp-
   content/plugins/google-site-kit/google-site-kit.php:102 Stack trace: #0 /home/*********/
   public_html/wp-includes/class-wp-hook.php(290): googlesitekit_opcache_reset(Object(
   Plugin_Upgrader)) #1 /home/*********/public_html/wp-includes/class-wp-hook.php(
   312): WP_Hook->apply_filters(”, Array) #2 /home/*********/public_html/wp-includes/
   plugin.php(478): WP_Hook->do_action(Array) #3 /home/*********/public_html/wp-
   admin/includes/class-plugin-upgrader.php(316): do_action(‘upgrader_proces…’, 
   Object(Plugin_Upgrader), Array) #4 /home/*********/public_html/wp-admin/update.
   php(47): Plugin_Upgrader->bulk_upgrade(Array) #5 {main} thrown in /home/*********/
   public_html/wp-content/plugins/google-site-kit/google-site-kit.php on line 102
 * 2020-02-14T16:40:39+00:00 CRITICAL Uncaught Error: Call to undefined function
   opcache_reset() in /home/*********/public_html/wp-content/plugins/google-site-
   kit/google-site-kit.php:102
    Stack trace: #0 /home/*********/public_html/wp-includes/
   class-wp-hook.php(290): googlesitekit_opcache_reset(Object(Plugin_Upgrader)) #
   1 /home/*********/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”,
   Array) #2 /home/*********/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(
   Array) #3 /home/*********/public_html/wp-admin/includes/class-plugin-upgrader.
   php(316): do_action(‘upgrader_proces…’, Object(Plugin_Upgrader), Array) #4 /home/*********/
   public_html/wp-admin/update.php(47): Plugin_Upgrader->bulk_upgrade(Array) #5 {
   main} thrown in /home/*********/public_html/wp-content/plugins/google-site-kit/
   google-site-kit.php on line 102 ——————————————————————————–
 * ********* Actual dir path changed for security.
 * Is iskmogul’s fix required? Is this Site Kit’s solution?
 * Thank You,
    gigi13
    -  This reply was modified 6 years, 4 months ago by [gigi13](https://wordpress.org/support/users/gigi13/).
 *  [gabstero](https://wordpress.org/support/users/gabstero/)
 * (@gabstero)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12437621)
 * Here’s my error:
 * Error Details
    ============= An error of type E_ERROR was caused in line 102 
   of the file /home2/etc/wp-content/plugins/google-site-kit/google-site-kit.php.
   Error message: Uncaught Error: Call to undefined function opcache_reset() in /
   home2/etc/wp-content/plugins/google-site-kit/google-site-kit.php:102
 * if it helps any.
    Thanks! Gabi
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12437826)
 * [@gabstero](https://wordpress.org/support/users/gabstero/) [@gigi13](https://wordpress.org/support/users/gigi13/)
   thanks for the feedback, we’re looking into it. In the meantime, could you open
   [a new topic](https://wordpress.org/support/plugin/google-site-kit/#new-post))
   per [forum guidelines](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too)
   with information regarding your case? Your [Site Health information](https://i.imgur.com/Rtkmsba.png)
   would be helpful as well. thanks so much

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Call to undefined function opcache_reset’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-opcache_reset/#post-12437826)
 * Status: resolved