• Resolved Northern Beaches Websites

    (@northernbeacheswebsites)


    Hi there, in the pro version of your plugin there’s the use of an undefined constant in this file: /plugins/wp-fusion/includes/integrations/class-wpbakery.php on line 271

    This should be changed from: WPB_PLUGIN_DIR to WP_PLUGIN_DIR

    If that ins’t fixed in the future, that will trigger a fatal error in newer versions of PHP.

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author verygoodplugins

    (@verygoodplugins)

    Hey @northernbeacheswebsites , thanks for the report!

    WPB_PLUGIN_DIR is defined in js_composer.php of the WPBakery plugin. That is still there for me in the latest WPBakery 6.11.0: https://pastebin.com/7g2tDWx3

    Can you let me know which version of WPBakery / Visual Composer you’re running so we can try and reproduce the warning?

    Thanks again!

    Jack

    Thread Starter Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi Jack,

    Ahh yes, that might be the issue, I didn’t consider that WPBakery might have their own constant, I thought it was a just a typo. My clients site is on version 5.7 of WP Bakery so it’s a bit older and that version doesn’t have that constant. But there’s some technical reasons why they can’t update the plugin ??

    Could you maybe do something like this:

    if( !defined(‘WPB_PLUGIN_DIR’) ){

    $dir = WP_PLUGIN_DIR . ‘/js_composer/js_composer.php’;

    define( ‘WPB_PLUGIN_DIR’, $dir );

    }

    So check if the constant exists, if not create it and point to the WP Bakery plugin?

    Thanks,

    Plugin Author verygoodplugins

    (@verygoodplugins)

    Gotcha. Yup, that makes sense! We’ll make that change for next week’s update. Thanks! ??

    Thread Starter Northern Beaches Websites

    (@northernbeacheswebsites)

    Awesome, thanks so much, I appreciate it ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined constant’ is closed to new replies.