Title: PHP warning message breaks saving Forms
Last modified: May 22, 2020

---

# PHP warning message breaks saving Forms

 *  Resolved [chssdev](https://wordpress.org/support/users/chssdev/)
 * (@chssdev)
 * [6 years ago](https://wordpress.org/support/topic/php-warning-message-breaks-saving-forms/)
 * When full PHP warnings are enabled, saving an ACF Extended form will break when
   the page tries to render after reloading, due to the warning being interpreted
   as an HTTP header.
 * These are the errors displayed – rest of page is a white-screen-of-death:
 *     ```
       Notice: Undefined index: post in /var/www/html/wp-content/plugins/acf-extended/includes/modules/form/admin.php on line 175
   
       Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/acf-extended/includes/modules/form/admin.php:175) in /var/www/html/wp-includes/pluggable.php on line 1281
       ```
   
 * Looking at the line containing the first warning, I see:
 * `$form_id = $_REQUEST['post'];`
 * Presumably the root cause of the error is due to there being no actual post on
   the admin-side.
 * Replacing with this made the issue go away:
 * `$form_id = ! empty( $_REQUEST['post'] ) ? $_REQUEST['post'] : null;`
 * The code following the line seems to accept the null, and fail gracefully with
   no warnings or errors.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [6 years ago](https://wordpress.org/support/topic/php-warning-message-breaks-saving-forms/#post-12880695)
 * Hello,
 * Thanks for the feedback. This issue has been reported last week. It will be fixed
   in the next patch. Meanwhile, you can apply your fix, or disable the `define('
   WP_DEBUG_DISPLAY', false);` in the `wp-config.php` file.
 * Have a nice day!
 * Regards.
 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [6 years ago](https://wordpress.org/support/topic/php-warning-message-breaks-saving-forms/#post-12929892)
 * Hello,
 * Just to let you know that the latest ACF Extended 0.8.6 update fix this issue!
 * Have a nice day 🙂
 * Regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP warning message breaks saving Forms’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/php-warning-message-breaks-saving-forms/#post-12929892)
 * Status: resolved