• Resolved webexs

    (@webexs)


    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)
  • 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

    (@webexs)

    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

    • This reply was modified 4 years, 4 months ago by webexs.

    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.