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
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,
Gotcha. Yup, that makes sense! We’ll make that change for next week’s update. Thanks! 🙂
Awesome, thanks so much, I appreciate it 🙂