Title: Warnings generated when using PHP 8.
Last modified: May 18, 2021

---

# Warnings generated when using PHP 8.

 *  [Zebulan Stanphill](https://wordpress.org/support/users/zebulan/)
 * (@zebulan)
 * [5 years ago](https://wordpress.org/support/topic/warnings-generated-when-using-php-8/)
 * When using the plugin with PHP 8, the following warning is generated multiple
   times in the site’s PHP error log:
 * `PHP Warning: Undefined array key "admin_label" in /home/SITE_ROOT/public_html/
   wp-content/plugins/popups-for-divi/includes/core/class-pfd-editor.php on line
   540`
 * The relevant line of code has a conditional that looks like this:
 * `... $attrs['admin_label'] && ...`
 * I think the issue can be fixed by just doing something like:
 * `... isset($attrs['admin_label']) && ...`

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Philipp Stracker](https://wordpress.org/support/users/strackerphil-1/)
 * (@strackerphil-1)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warnings-generated-when-using-php-8/#post-14601113)
 * Hi [@zebulan](https://wordpress.org/support/users/zebulan/)
 * Thanks for reporting that issue and for debugging the warning.
 * I have to admit that we did not test our plugin in PHP 8 yet – we tested PHP 
   8 about 3 months ago and found some plugins/themes (like Divi) that threw errors,
   warnings, and notices. Even today, Divi does not seem 100% compatible with PHP
   8.
 * But I get your point. We’ll test our plugin and fix any PHP 8 issues that show
   up. That warning will be solved in the next release.
 * Thanks, and happy Popup-ing 🙂 Philipp

Viewing 1 replies (of 1 total)

The topic ‘Warnings generated when using PHP 8.’ is closed to new replies.

 * ![](https://ps.w.org/popups-for-divi/assets/icon-256x256.jpg?rev=2553226)
 * [Popups for Divi](https://wordpress.org/plugins/popups-for-divi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups-for-divi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups-for-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/popups-for-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups-for-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups-for-divi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Philipp Stracker](https://wordpress.org/support/users/strackerphil-1/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/warnings-generated-when-using-php-8/#post-14601113)
 * Status: not resolved