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 Philipp,
There’s no
define( 'DM_DASH_PATH',
in the wp-config file of the childtheme. But today we also received a similar error from another domain. Both domains are running the WP Cerber 9.1 plugin. Maybe there is a conflict with that. To me it looks similar, but no dev here…
Error details =========== Een fout van het type E_ERROR werd veroorzaakt op regelnummer 207 van het bestand /var/www/vhosts/domain2.com/httpdocs/wp-content/themes/Divi/functions.php. Foutmelding: Uncaught Error: Call to undefined function et_builder_get_fonts() in /var/www/vhosts/domain2.com/httpdocs/wp-content/themes/Divi/functions.php:207 Stack trace: #0 /var/www/vhosts/domain2.com/httpdocs/wp-content/themes/Divi/functions.php(229): et_divi_fonts_url() #1 /var/www/vhosts/domain2.com/httpdocs/wp-includes/class-wp-hook.php(307): et_divi_load_fonts() #2 /var/www/vhosts/domain2.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /var/www/vhosts/domain2.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /var/www/vhosts/domain2.com/httpdocs/wp-includes/script-loader.php(2156): do_action() #5 /var/www/vhosts/domain2.com/httpdocs/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /var/www/vhosts/domain2.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /var/www/vhosts/domain2.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /var/www/vho
I’ll disable the plugin on one site and see if the error is still generated tomorrow…
Thanks for your support
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 🙂
Thanks for the addition.
In your other website’s log entries, the relevant message is, “Call to undefined function et_builder_get_fonts()” which indicates that a DIVI theme file is not loaded.
I’m not sure how this can happen – both your error messages refer to the fact, that a core function of “Divi”, or “Popups for Divi” is missing. This can usually only happen, when a file is edited. You’re possibly able to solve those issues by deleting the relevant plugin or the Divi theme and installing them again.
But the fact, that files were edited or deleted is very suspicious, and you should check the logs of WP Cerber to find out if your site was compromised or why those files were modified. Those details are possibly documented in the “Site Integrity” section of WP Cerber