• 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

    (@strackerphil-1)

    Hi @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.