Title: Error warning in PHP logs
Last modified: November 16, 2022

---

# Error warning in PHP logs

 *  [jperksmower](https://wordpress.org/support/users/jperksmower/)
 * (@jperksmower)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-warning-in-php-logs/)
 * 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 3 years, 6 months ago by [jperksmower](https://wordpress.org/support/users/jperksmower/).

The topic ‘Error warning in PHP logs’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jperksmower](https://wordpress.org/support/users/jperksmower/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/error-warning-in-php-logs/)
 * Status: not resolved