This error occurs in case when plugin modifies the WordPress loading flow by messing with the wp hooks. This issue produce when Plugins like “All In One WP Security” “WordFence Security” plugin exist.
The plugin hooks into the wp_loaded hook and loads the custom template with wp_head() which triggers scripts loading before all the required Divi components are loaded, therefore et_fb_enabled() is undefined at this point. It’s impossible to predict the way 3rd party plugins may modify the WP hooks, so I simply added function_exists check to avoid this error, assuming that if et_fb_enabled() doesn’t exists then we definitely not inside the VB.
REFER : https://github.com/elegantthemes/Divi-Beta/issues/1102
-
This reply was modified 6 years, 5 months ago by AppCloudData.
-
This reply was modified 6 years, 5 months ago by AppCloudData.