php - Visual composer backend editor not working with U-design theme older versions

So I had this issue for quite a long time on my client's website which was running u-design theme version2.12.3
. The backend editor, screen options, or any other drop down was not working. There were multiple JS errors in the console and whole website was messed up. I have finally found a solution after a month of brain storming. Posting this as a solution to help whoever encounter this issue.
Answer
Solution:
First of all install two plugins: -Classic editor plugin -CMB2 Plugin
Now navigate to your theme folder and edit the filewp-content/themes/u-design/lib/u-design-cmb2/u-design-cmb2-functions.php
, Comment out this on line 37:
//add_action( 'cmb2_init', 'udesign_cmb2_metaboxes' );
and on line 57, set the value of propertyclosed
for$cmb = new_cmb2_box( array(
astrue
:
$cmb = new_cmb2_box( array(
'id' => 'udesign_metabox',
'title' => __( 'U-Design Options', 'udesign' ),
'object_types' => array( 'post', 'page', 'essential_grid'), // Post type
'context' => 'normal',
'priority' => 'high',
'show_names' => true, // Show field names on the left
'closed' => true, // Keep the metabox closed by default
) );
Cheers! your backend editor is now working. The fix works because there is error in theme's settings box which gets stuck on loading on the edit page, which does not allow other JS files to load and function too, blocking all editor and other wordpress scripts. So we disable the initialization of that setting box. Plus installing those plugins helps fix other errors which prevent backend editor from working especially on newer wordpress version 5.0.1 and above.
If it helps anyone in the future drop a like :)
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: the browser (or proxy) sent a request that this server could not understand.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.