PHP 8 causes Error 500 with call_user_func_array() and wpb_hook_javascript
-
Hello,
so, i searched for a solution (e.g. increased memory) but could not find anything that worked unfortunately.
My WordPress 6.1.1 + Elementor page works good with PHP 7.4 (no errors in log) but causes an WSOD Error 500 as soon as i switch to PHP 8.0 or higher. I deactivated ALL plugins and used the twenty-twenty-three theme. Also cleared/deleted old tables with a plugin. WP and plugins are up to date. I put define(‘WP_MEMORY_LIMIT’, ‘256M’); in my wp-config as well. Error Log gives me one line :“PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wpb_hook_javascript’ not found or invalid function name in “[…]/wp-includes/class-wp-hook.php on line 308”
Line 308 says:
$value = call_user_func_array( $the_[‘function’], $args );Since i deactivated everything i have no idea what to do. It seems like an internal WordPress problem with PHP 8, like some code that became invalid with the new version? Also wpb_hook_javascript seems quite generic, so i cant deduce who calls it. I am not a programmer though.
Maybe someone can tell me what to look for. Thank you!
- The topic ‘PHP 8 causes Error 500 with call_user_func_array() and wpb_hook_javascript’ is closed to new replies.