Title: WordPress error when update to php 8.0
Last modified: January 18, 2022

---

# WordPress error when update to php 8.0

 *  Resolved [webexs](https://wordpress.org/support/users/webexs/)
 * (@webexs)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-error-when-update-to-php-8-0/)
 * I get an error when i updates to php 8.0.
 * Error : `Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1(
   $callback) must be a valid callback, non-static method WPAlchemy_MetaBox::_global_head()
   cannot be called statically in /public_html/wp-includes/class-wp-hook.php:303
   Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(
   NULL, Array) #1 /public_html/wp-includes/plugin.php(470): WP_Hook->do_action(
   Array) #2 /public_html/wp-admin/admin-header.php(147): do_action('admin_head')#
   3 /public_html/wp-admin/plugins.php(603): require_once('/www/webvol3/05...') #
   4 {main} thrown in /public_html/wp-includes/class-wp-hook.php on line 303`
 * I have wordpress 5.8.3.
    I have tried three different webpages and its the same
   on all.
 * Wordpress dont like php 8.0 ? They have a problem?

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

 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-error-when-update-to-php-8-0/#post-15263632)
 * There shoudln’t be any fatal errors beetween PHP 8.0 and WordPress 5.8.3. Does
   this happen if you disable all plugins and activate a WordPress theme (e.g. Twenty-
   Twenty-One) first?
 *  Thread Starter [webexs](https://wordpress.org/support/users/webexs/)
 * (@webexs)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-error-when-update-to-php-8-0/#post-15264232)
 * It does work if i deavctive the theme but when i activate it again its gets the
   error.
 * Do you know what i can do or whats wrong? Its seems to be in somethins in wp-
   includes [@pidengmor](https://wordpress.org/support/users/pidengmor/)
    -  This reply was modified 4 years, 4 months ago by [webexs](https://wordpress.org/support/users/webexs/).
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-error-when-update-to-php-8-0/#post-15264300)
 * Your choices are:
    – contact the theme authors to inform them that the theme 
   is not compatible with PHP 8.0 (show them the error message). Then, wait for 
   them to fix the issue and declare it fixed in the changelog of the theme update.
   Update the theme and then update PHP. – change the theme to one that is compatible
   with PHP 8.0. – dig into the theme code and try and fix the issue independently.

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

The topic ‘WordPress error when update to php 8.0’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [barnez](https://wordpress.org/support/users/pidengmor/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-error-when-update-to-php-8-0/#post-15264300)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
