PHP contact form returns warning in text widget [closed]
Uninitialized string offset: 0 This error is showing because there is an empty value. Try checking if the value is !empty() (not empty) first. Here’s the source code you provide in your question with my update. function cf_form_message() { global $errors; if ( is_wp_error( $errors ) && empty( $errors -> errors ) ) { ?> … Read more