Title: PHP Warning Undefined array key &#8220;background&#8221;
Last modified: December 8, 2022

---

# PHP Warning Undefined array key “background”

 *  Resolved [zudie](https://wordpress.org/support/users/zudie/)
 * (@zudie)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/)
 * PHP Warning: Undefined array key “background” in …./wp-content/plugins/enable-
   media-replace/classes/emr-plugin.php on line 75
 * PHP 8.0, WP 6.1.1, plugin version 4.0.1

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

 *  Plugin Support [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16278320)
 * Hi zudie,
 * Thank you for your message!
 * In order to better assist you, we would appreciate it if you could provide us
   with the following information:
    - An explanation of when exactly this issue happens: doing what action, clicking
      on what button, on what screen, etc…
    - Your site information. For this, please go to Tools > Site Health > Info, 
      click on the “Copy site info to clipboard” button and paste the information
      here.
    - Finally, is the issue occurring in more than one web browser (Chrome, Firefox,
      Edge, Safari, etc.)?
    - Thank you,
 *  Thread Starter [zudie](https://wordpress.org/support/users/zudie/)
 * (@zudie)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16323974)
 * I just got this warning on another site that I updated as well.
 * It shows up in the debug.log as soon as I visit the frontend of the website. 
   As far as I see it happens on every single page, just as the page has loaded.
   No other actions.
 * I am not sending private info about our site to a public forum. If you give me
   an email address I’ll happily forward the Site Info to you.
 *  Plugin Support [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16333035)
 * Hi [@zudie](https://wordpress.org/support/users/zudie/),
 * Feel free to redact the private data from the site info. That’s what many of 
   our users do 🙂
 * Thank you!
 *  Plugin Author [Pedro](https://wordpress.org/support/users/petredobrescu/)
 * (@petredobrescu)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16371613)
 * Hello [@zudie](https://wordpress.org/support/users/zudie/), the warning that 
   you reported should be fixed in version 4.0.2 that was just released.
 * Can you please check and confirm? Thanks
 *  Thread Starter [zudie](https://wordpress.org/support/users/zudie/)
 * (@zudie)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16386403)
 * Warnings have gone with version 4.0.2. Thanks!
 *  Plugin Author [Pedro](https://wordpress.org/support/users/petredobrescu/)
 * (@petredobrescu)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16388437)
 * Thanks for the confirmation, [@zudie](https://wordpress.org/support/users/zudie/)!

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

The topic ‘PHP Warning Undefined array key “background”’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 6 replies
 * 3 participants
 * Last reply from: [Pedro](https://wordpress.org/support/users/petredobrescu/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-background/#post-16388437)
 * Status: resolved