undefined function str_starts_with()
-
I get this below error after click submit.
I’m using PHP7.4 and WP 5.8.2`*730 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /wp-content/plugins/contact-form-7/includes/rest-api.php:331
Stack trace:
#0 /wp-includes/rest-api/class-wp-rest-server.php(1140): WPCF7_REST_Controller->create_feedback()
#1 /wp-includes/rest-api/class-wp-rest-server.php(987): WP_REST_Server->respond_to_request()
#2 /wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch()
#3 /wp-includes/rest-api.php(370): WP_REST_Server->serve_request()
#4 /wp-includes/class-wp-hook.php(303): rest_api_loaded()
#5 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(518): WP_Hook->do_action()
#7 /wp-includes/class-wp.php(388): do_action_ref_array()
- The topic ‘undefined function str_starts_with()’ is closed to new replies.