• Hello,

    Thanks for your work on this plugin. We really appreciate it!

    We noticed the following error warnings coming up in our PHP error logs on PHP 8 running the latest WordPress (6.1.1):

    PHP message: Warning: Undefined array key "invalid_fields" in /var/www/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 541 [/wp-json/contact-form-7/v1/contact-forms/383/feedback?_locale=user] [wp-includes/class-wp-hook.php:308 {closure}(), wp-includes/plugin.php:205 WP_Hook->apply_filters(), wp-content/plugins/contact-form-7/includes/rest-api.php:359 apply_filters('wpcf7_feedback_response'), wp-includes/rest-api/class-wp-rest-server.php:1171 wpcf7_rest_create_feedback(), wp-includes/rest-api/class-wp-rest-server.php:1018 WP_REST_Server->respond_to_request(), wp-includes/rest-api/class-wp-rest-server.php:442 WP_REST_Server->dispatch(), wp-includes/rest-api.php:410 WP_REST_Server->serve_request(), wp-includes/class-wp-hook.php:308 rest_api_loaded(), wp-includes/class-wp-hook.php:332 WP_Hook->apply_filters(), wp-includes/plugin.php:565 WP_Hook->do_action(), wp-includes/class-wp.php:399 do_action_ref_array(), wp-includes/class-wp.php:780 WP->parse_request(), wp-includes/functions.php:1332 WP->main(), ...

    PHP message: Warning: foreach() argument must be of type array|object, null given in /var/www/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 541 [/wp-json/contact-form-7/v1/contact-forms/383/feedback?_locale=user] [wp-includes/class-wp-hook.php:308 {closure}(), wp-includes/plugin.php:205 WP_Hook->apply_filters(), wp-content/plugins/contact-form-7/includes/rest-api.php:359 apply_filters('wpcf7_feedback_response'), wp-includes/rest-api/class-wp-rest-server.php:1171 wpcf7_rest_create_feedback(), wp-includes/rest-api/class-wp-rest-server.php:1018 WP_REST_Server->respond_to_request(), wp-includes/rest-api/class-wp-rest-server.php:442 WP_REST_Server->dispatch(), wp-includes/rest-api.php:410 WP_REST_Server->serve_request(), wp-includes/class-wp-hook.php:308 rest_api_loaded(), wp-includes/class-wp-hook.php:332 WP_Hook->apply_filters(), wp-includes/plugin.php:565 WP_Hook->do_action(), wp-includes/class-wp.php:399 do_action_ref_array(), wp-includes/class-wp.php:780 WP->parse_request(), wp-includes/function...

    I’m not sure the exact steps to reproduce the issue, but I hope this helps!

    ~James

    • This topic was modified 2 years, 4 months ago by jperksmower.
  • The topic ‘Error warning in PHP logs’ is closed to new replies.