Problem with updating an older theme that uses WPBakery Visual Composer
-
A new client is using an older theme that has a built in version of WPBakery Visual Composer. After they upgraded to WordPress 5.8 they can no longer edit pages. Is it possible to delete WPBakery Visual Composer from the theme and just install the plugin instead?
I was just getting a completely blank page when I click to edit a page. After some searching I found some recommendations for this issue. One recommendation was to install the Classic Editor plugin. That helped somewhat. Now the editor loads but I get an error at the bottom of the page. I also tried deleting this from the functions.php file but that breaks everything…
if (!class_exists('WPBakeryVisualComposerAbstract')) { $dir = dirname(__FILE__) . '/wpbakery/'; $composer_settings = Array( 'APP_ROOT' => $dir . '/framework/', 'WP_ROOT' => dirname( dirname( dirname( dirname($dir ) ) ) ). '/', 'APP_DIR' => basename( $dir ) . '/js_composer/', 'CONFIG' => $dir . '/js_composer/config/', 'ASSETS_DIR' => 'assets/', 'COMPOSER' => $dir . '/js_composer/composer/', 'COMPOSER_LIB' => $dir . '/js_composer/composer/lib/', 'SHORTCODES_LIB' => $dir . '/js_composer/composer/lib/shortcodes/', 'USER_DIR_NAME' => 'shortcodes', 'default_post_types' => Array('page', 'post', 'portfolio', 'news', 'faq', 'banner_builder') ); require_once locate_template('framework/wpbakery/js_composer/js_composer.php'); $wpVC_setup->init($composer_settings);
Any help with this is greatly appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Problem with updating an older theme that uses WPBakery Visual Composer’ is closed to new replies.