The WPBakery Frontend Editor is crashing with a fatal error when attempting to load Vc_Post_Settings.
Even when downgrading to the recommended WPBakery 8.2 version, the issue persists.
The error thrown is:
Uncaught Error: Too few arguments to function Vc_Post_Settings::__construct(), 1 passed ... and exactly 2 expected
This indicates the theme is still calling the constructor with one parameter, while current WPBakery builds expect two:
$editor
$post_id
Because of this mismatch, the frontend editor fails to initialize and halts with a fatal error.
Steps to Reproduce
Install and activate the theme.
Activate WPBakery Page Builder (tested on 8.2, 8.4, 8.5).
Open any page and click Frontend Editor.
The page fails to load and displays the fatal constructor error.
Expected Behavior
Frontend Editor should load normally without PHP fatal errors.
Actual Behavior
Frontend Editor crashes due to outdated theme code calling:
new Vc_Post_Settings( $editor );
Instead of the updated signature requiring:
new Vc_Post_Settings( $editor, $post_id );
Impact
Page content cannot be edited using the Frontend Editor.
Blocks normal workflow for editing existing or new pages.
Even using WPBakery 8.2 (as recommended for compatibility) does NOT resolve the issue.
Request
Please provide an updated patch or theme version that aligns with the current WPBakery constructor requirements and restores full Frontend Editor compatibility.
The WPBakery Frontend Editor is crashing with a fatal error when attempting to load Vc_Post_Settings.
Even when downgrading to the recommended WPBakery 8.2 version, the issue persists.
The error thrown is:
This indicates the theme is still calling the constructor with one parameter, while current WPBakery builds expect two:
$editor
$post_id
Because of this mismatch, the frontend editor fails to initialize and halts with a fatal error.
Steps to Reproduce-
-
-
-
Expected BehaviorInstall and activate the theme.
Activate WPBakery Page Builder (tested on 8.2, 8.4, 8.5).
Open any page and click Frontend Editor.
The page fails to load and displays the fatal constructor error.
Frontend Editor should load normally without PHP fatal errors.
Actual BehaviorFrontend Editor crashes due to outdated theme code calling:
Instead of the updated signature requiring:
Impact-
-
-
RequestPage content cannot be edited using the Frontend Editor.
Blocks normal workflow for editing existing or new pages.
Even using WPBakery 8.2 (as recommended for compatibility) does NOT resolve the issue.
Please provide an updated patch or theme version that aligns with the current WPBakery constructor requirements and restores full Frontend Editor compatibility.