Title: PHP error with latest version
Last modified: August 17, 2017

---

# PHP error with latest version

 *  Resolved [dmpinder](https://wordpress.org/support/users/dmpinder/)
 * (@dmpinder)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-error-with-latest-version/)
 * Hi there,
 * I’ve got about 29 sites running the latest WP and Yoast plugin, but all are showing
   this error in admin:
 * `Fatal error: Uncaught Error: Call to undefined method WPSEO_Utils::is_yoast_seo_premium()
   in /home/forge/xxx/production/public/wp-content/plugins/wordpress-seo/admin/class-
   admin.php:171 Stack trace: #0 /home/forge/xxx/production/public/wp-includes/class-
   wp-hook.php(298): WPSEO_Admin->register_settings_page('') #1 /home/forge/xxx/
   production/public/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('',
   Array) #2 /home/forge/xxx/production/public/wp-includes/plugin.php(453): WP_Hook-
   >do_action(Array) #3 /home/forge/xxx/production/public/wp-admin/includes/menu.
   php(149): do_action('admin_menu', '') #4 /home/forge/xxx/production/public/wp-
   admin/menu.php(283): require_once('/home/forge/bla...') #5 /home/forge/xxx/production/
   public/wp-admin/admin.php(138): require('/home/forge/bla...') #6 /home/forge/
   xxx/production/public/wp-admin/plugins.php(10): require_o in /home/forge/xxx/
   production/public/wp-content/plugins/wordpress-seo/admin/class-admin.php on line
   171`
 * The only way to get access to the admin is to disable the plugin. I’ve removed
   the plugin and re-installed from wp.org, but I get the same error.
 * Any idea how to fix it?
 * Thanks,
 * Darren

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

 *  Thread Starter [dmpinder](https://wordpress.org/support/users/dmpinder/)
 * (@dmpinder)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-error-with-latest-version/#post-9417098)
 * Nevermind, fixed the issue, it was opcache needed clearing. Can you build a way
   to automatically clear opcache on future plugin updates?
 * Thanks!
 *  [ngrudev](https://wordpress.org/support/users/ngrudev/)
 * (@ngrudev)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-latest-version/#post-9424121)
 * how to clear opcache? i have the same error. It is good solution Yoast to integrate
   autamatic opcache clreaner with the updates versions.

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

The topic ‘PHP error with latest version’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ngrudev](https://wordpress.org/support/users/ngrudev/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-with-latest-version/#post-9424121)
 * Status: resolved