Hi, WordPress (6.0.2) detected a problem with Popups for Divi (3.0.5) running on PHP 7.4.30.
Will there be a fix, or can we do something ourselves?
An error of the type E_ERROR is caused on rule number 26 of the file /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/popups-for-divi/includes/assets/functions.php. Error: Uncaught Error: Call to undefined function dm_get_const() in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/popups-for-divi/includes/assets/functions.php:26 Stack trace: #0 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(307): pfd_assets_enqueue_js_library() #1 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #2 /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #3 /var/www/vhosts/domain.com/httpdocs/wp-includes/script-loader.php(2156): do_action() #4 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #5 /var/www/vhosts/domain.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #6 /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #7 /var/www/vhosts/domain.com/httpdocs/wp-includes/general-template.php(3042): do_action() #8 /var/www/vhosts/domain.
Hi Jeroen,
Thanks for bringing that issue to our attention. I have checked our plugin on different sites – also with WP 6.0.2 – and could not replicate that issue.
Your log files mention the problem Call to undefined function dm_get_const()
which could happen in various cases, such as a plugin file getting corrupted or modified, or because you use an older version of Divi Areas Pro together with the Popups for Divi plugin on your website, or you have some custom PHP code/config in place that tries to initialize our plugin too early.
Can you try the following options and report back how that went?
- Disable, delete and reinstall Popups for Divi. You will not lose any data, just your Popups will stop working until you’ve reinstalled the plugin.
- Ensure you do not have an older version of Divi Areas Pro on that website. If you have, please update (or uninstall) the old version of Divi Areas Pro while you’re using Popups for Divi
- Did you make any changes to your wp-config file? If you did, check if you can find a line like
define( 'DM_DASH_PATH', ... );
and remove it.
Please let me know how that worked. Thanks, Philipp 🙂