Title: Error &#8220;Undefined array key&#8221;
Last modified: August 7, 2025

---

# Error “Undefined array key”

 *  Resolved [jovarela](https://wordpress.org/support/users/jovarela/)
 * (@jovarela)
 * [10 months ago](https://wordpress.org/support/topic/error-undefined-array-key-3/)
 * When updating a record using “**wp_post_update**,” it shows the error “**Undefined
   array key replace_iframe_tags**” in `advanced_iframe.php` on line 1136.
 * The modification is done correctly, but I would still like it not to show the
   error.
 * I have modified the `advanced_iframe.php` file on that line, changing it from:
 * PHP
 *     ```wp-block-code
       if ($devOptions['replace_iframe_tags'] !== 'true') {
           return $content;
       }
       ```
   
 * to:
 * PHP
 *     ```wp-block-code
       if (!isset($devOptions['replace_iframe_tags']) || $devOptions['replace_iframe_tags'] !== 'true') {
           return $content;
       }
       ```
   
 * But when the plugin is updated, this change is removed.

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

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [10 months ago](https://wordpress.org/support/topic/error-undefined-array-key-3/#post-18590165)
 * Thanks for the report. Your fix fixes the message. I will fix the root cause 
   because there this setting is missing in the save part. 
   In the next update I
   will provide a fix for this.
 * Thanks a lot, Michael
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/error-undefined-array-key-3/#post-18598440)
 * Hi,
   2025.7 was release where this is fixed now.
 * Please check and confirm.
 * Best regards, Michael

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

The topic ‘Error “Undefined array key”’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

## Tags

 * [plugin](https://wordpress.org/support/topic-tag/plugin/)
 * [WordPress](https://wordpress.org/support/topic-tag/wordpress/)

 * 2 replies
 * 2 participants
 * Last reply from: [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * Last activity: [9 months, 4 weeks ago](https://wordpress.org/support/topic/error-undefined-array-key-3/#post-18598440)
 * Status: resolved