Hi guys, l need assistance with the error below m getting. I have updated my theme Enfold 5.4.1 latest one and l am on PHP 8.0. I keep getting the error below. WordPress is on latest 6.1.1 and all plugins are up to date. Theme was purchased 29 November 2022
[30-Nov-2022 16:56:20 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method wf_mm::init() cannot be called statically in /usr/www/users/vidaeadpzw/wp-includes/class-wp-hook.php:308
Stack trace:
#0 /usr/www/users/vidaeadpzw/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#1 /usr/www/users/vidaeadpzw/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#2 /usr/www/users/vidaeadpzw/wp-settings.php(617): do_action(‘init’)
#3 /usr/www/users/vidaeadpzw/wp-config.php(33): require_once(‘/usr/www/users/…’)
#4 /usr/www/users/vidaeadpzw/wp-load.php(50): require_once(‘/usr/www/users/…’)
#5 /usr/www/users/vidaeadpzw/wp-admin/admin-ajax.php(22): require_once(‘/usr/www/users/…’)
#6 {main}
thrown in /usr/www/users/vidaeadpzw/wp-includes/class-wp-hook.php on line 308
Hey bernadinea,
Thank you for the inquiry.
Where do you see the error? The method or function wf_mm::init() is not from the theme, so it is probably called by a third-party plugin or is generated from a custom script. Please try to deactivate the plugins temporarily.
Best regards,
Ismael