How to fix broken Visual Composer
-
WPBakery’s Visual Composer broke after a recent WP upgrade.
We obtained it as it was bundled with the SpiceHub theme we purchased.
After a recent upgrade, some of the functionality stopped working (the Hours table, the Icon selectors)
I found the fix to be simple – this plug-in appears to be using an old or deprecated method for determining if the plugin is active. The file:
wp-content/themes/spicehub/builder/params/custom_params.phpContained the following line of code at the top, which I modified and fixed.
Old Code:
if ( in_array( 'js_composer/js_composer.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )
New Code:
if ( is_plugin_active( 'js_composer/js_composer.php' ) )
You might be able to fix other plug-ins with similar code, YMMV.
- The topic ‘How to fix broken Visual Composer’ is closed to new replies.