REST API error 500 with PHP 8, WP 5.7
-
Hi,
Using WP 5.7 on PHP 7.4 for my site mmwb.nl
On switching over to PHP 8 the frontend of the site seems to work fine. Site diagnosis reports: “REST API results in unexpected result: (500)”
Even in “problem solving” mode – whit all plugins deactivated and theme 20/20 – WP Site Diagnoses reports: “REST API results in unexpected result: (500)”So backend / admin / editor will not work correctly.
From debug log:
[30-Mar-2021 11:07:15 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be a valid callback, function “_return_false” not found or invalid function name in /wp-includes/class-wp-hook.php:292
Stack trace:
#0 /wp-includes/plugin.php(255): WP_Hook->apply_filters()
#1 /wp-includes/plugin.php(640): apply_filters_ref_array()
#2 /wp-includes/rest-api/class-wp-rest-server.php(354): apply_filters_deprecated()
#3 /wp-includes/rest-api.php(354): WP_REST_Server->serve_request()
#4 /wp-includes/class-wp-hook.php(292): rest_api_loaded()
#5 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(551): WP_Hook->do_action()
#7 /wp-includes/class-wp.php(388): do_action_ref_array()
#8 /wp-includes/class-wp.php(750): WP->parse_request()
#9 /wp-includes/functions.php(1291): WP->main()
#10 /wp-blog-header.php(16): wp()
#11 /index.php(17): require(‘/home/mmwbnl/pu…’)
#12 {main}
thrown in /wp-includes/class-wp-hook.php on line 292`Hope someone can shed some light on this issue
The page I need help with: [log in to see the link]
- The topic ‘REST API error 500 with PHP 8, WP 5.7’ is closed to new replies.