Conversation
supportHi there, In Beaver Builder, the custom image upload button is not working, the console displays ReferenceError: fpa_imageUpload is not defined I checked and it seems the plugin is only enqueuing the scripts on the admin pages, while Beaver Builder is a frontend builder. So enqueueing the scripts when BB is active fixes the problem. I thought you might want to know this, maybe you can include the fix in the next version. Thanks for your work!
Thanks for the heads up @geea . Are you able to share the fix you implemented for Beaver Builder? If not, no worries. It would give me a bit of a jump start on fixing the issue as I am not very familiar with that plugin 😉 Thanks, Nick
Hey Nick! Actually, it would be more relevant to tell you what to change in the plugin file than I what I did from outside the plugin. In inc/widget-class.php 1. change line 70 from: add_action( 'admin_enqueue_scripts', array( $this, 'fpa_admin_scripts_enqueue' ) ); to: add_action( 'wp_enqueue_scripts', array( $this, 'fpa_admin_scripts_enqueue' ) ); 2. change line 589 from: if ( 'widgets.php' == $hook || 'customize.php' == $hook || defined( 'SITEORIGIN_PANELS_VERSION' ) ) { to: if ( 'widgets.php' == $hook || 'customize.php' == $hook || defined( 'SITEORIGIN_PANELS_VERSION' ) || FLBuilderModel::is_builder_active() ) { Hope this helps! This reply was modified 5 years, 3 months ago by geea .
This is awesome, thanks @geea . I will push an update tonight or by tomorrow at the latest. I’ll followup when it is up. Best, Nick
That’s great, thank you, looking forward to the update. Cheers!
PS: Correction (although you probably noticed it out already) – you’ll need to add to line 70 instead of changing it.
Just pushed version 1.9.8 which should fix the issue. Let me know if you run into anything else. Best, Nick
Awesome, thank you!
Thanks for the heads up @geea . Are you able to share the fix you implemented for Beaver Builder? If not, no worries. It would give me a bit of a jump start on fixing the issue as I am not very familiar with that plugin 😉 Thanks, Nick
Hey Nick! Actually, it would be more relevant to tell you what to change in the plugin file than I what I did from outside the plugin. In inc/widget-class.php 1. change line 70 from: add_action( 'admin_enqueue_scripts', array( $this, 'fpa_admin_scripts_enqueue' ) ); to: add_action( 'wp_enqueue_scripts', array( $this, 'fpa_admin_scripts_enqueue' ) ); 2. change line 589 from: if ( 'widgets.php' == $hook || 'customize.php' == $hook || defined( 'SITEORIGIN_PANELS_VERSION' ) ) { to: if ( 'widgets.php' == $hook || 'customize.php' == $hook || defined( 'SITEORIGIN_PANELS_VERSION' ) || FLBuilderModel::is_builder_active() ) { Hope this helps! This reply was modified 5 years, 3 months ago by geea .
This is awesome, thanks @geea . I will push an update tonight or by tomorrow at the latest. I’ll followup when it is up. Best, Nick
That’s great, thank you, looking forward to the update. Cheers!
PS: Correction (although you probably noticed it out already) – you’ll need to add to line 70 instead of changing it.
Just pushed version 1.9.8 which should fix the issue. Let me know if you run into anything else. Best, Nick
Awesome, thank you!