• Resolved geea

    (@geea)


    Hi 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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Nick Diego

    (@ndiego)

    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

    Thread Starter geea

    (@geea)

    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 3 years, 9 months ago by geea.
    Plugin Author Nick Diego

    (@ndiego)

    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

    Thread Starter geea

    (@geea)

    That’s great, thank you, looking forward to the update.

    Cheers!

    Thread Starter geea

    (@geea)

    PS: Correction (although you probably noticed it out already) – you’ll need to add to line 70 instead of changing it.

    Plugin Author Nick Diego

    (@ndiego)

    Just pushed version 1.9.8 which should fix the issue. Let me know if you run into anything else.

    Best,
    Nick

    Thread Starter geea

    (@geea)

    Awesome, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue with Beaver Builder’ is closed to new replies.