can’t edit component
-
Hello!
Your plugin works great, but it’s impossible to edit you shortcode – only to delete and create a new one.
-
Hi @yurann2000
Could you please elaborate on what happens when you try to edit the block with some screenshots?
Hi, for me it′s the same.
If I add the content block I can edit it. When I save it and want to edit it, then the circle keeps turning as shown above…
DavidHi, I have the same problem. Any help? Thanks!
Did anyone find a solution? )
Same issue here. In the JavaScript console I can see the following error message:
Uncaught Error: Syntax error, unrecognized expression: selected='selected'<script>window.vc_presets_show=true;</script><script>window.vc_settings_show=true;</script><div class=" wpb_edit_form_elements vc_edit_form_elements" data-title="Edit Reusable Block">…
This occurs in jquery.min.js:2:13639
Complete stack trace:
jQuery 9 buildParamsContent https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 jQuery 7 render https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 editElement https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 editElement self-hosted:1183 jQuery 9 Backbone 6 getView https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 appendShortcode https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 Underscore 2 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 Underscore 2 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 Underscore 2 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10 Underscore 2
The error is triggered by a POST to
admin-ajax.php
with the following payload:action "vc_edit_form" tag "rcblock" parent_tag "vc_column_inner" post_id "74571" params[data_source] "reusable_block" params[id] "82268" params[othe_id] "" _vcnonce "1688427dfd"
And the returned response was (snipped a bunch of similar lines for the sake of brevity)
selected='selected'<script>window.vc_presets_show=true;</script><script>window.vc_settings_show=true;</script><div class=" wpb_edit_form_elements vc_edit_form_elements" data-title="Edit Reusable Block"><div class="vc_edit-form-tab vc_row vc_ui-flex-row vc_active" data-vc-ui-element="panel-edit-element-tab"><div class="vc_col-xs-12 wpb_el_type_dropdown vc_wrapper-param-type-dropdown vc_shortcode-param vc_column" data-vc-ui-element="panel-shortcode-param" data-vc-shortcode-param-name="data_source" data-param_type="dropdown" data-param_settings="{"type":"dropdown","heading":"Data source","param_name":"data_source","value":{"Reusable Block":"reusable_block","Other Post types":"db_other"},"description":"Select data source","vc_single_param_edit_holder_class":["vc_col-xs-12","wpb_el_type_dropdown","vc_wrapper-param-type-dropdown","vc_shortcode-param","vc_column"]}"><div class="wpb_element_label">Data source</div><div class="edit_form_line"><select name="data_source" class="wpb_vc_param_value wpb-input wpb-select data_source dropdown reusable_block" data-option="reusable_block"><option class="reusable_block" value="reusable_block" selected="selected">Reusable Block</option><option class="db_other" value="db_other" >Other Post types</option></select><span class="vc_description vc_clearfix">Select data source</span></div></div><div class="vc_col-xs-12 wpb_el_type_rcb_posts vc_wrapper-param-type-rcb_posts vc_shortcode-param vc_column" data-vc-ui-element="panel-shortcode-param" data-vc-shortcode-param-name="id" data-param_type="rcb_posts" data-param_settings="{"type":"rcb_posts","class":"reusecb_other_id","heading":"Content Block","param_name":"id","admin_label":true,"value":"","dependency":{"element":"data_source","value":["reusable_block"]},"description":"Select contnet block to display.","vc_single_param_edit_holder_class":["vc_col-xs-12","wpb_el_type_rcb_posts","vc_wrapper-param-type-rcb_posts","vc_shortcode-param","vc_column"]}"><div class="wpb_element_label">Content Block</div><div class="edit_form_line"><div class="data_rcb_post_block"><select name="id" class="wpb_vc_param_value wpb-input wpb-select dropdownid rcb_posts_field"><option value="83280">ROCA Ruggedised Panel</option><option value="83277">ROCA – Looking for 12 Core – Socket</option><option value="83275">ROCA – Looking for 12 Core – Plug</option><option ...snip... value="81714">Reviews Row</option><option value="72707">1.0 Need Technical Support – Blonde</option></select></div><span class="vc_description vc_clearfix">Select contnet block to display.</span></div></div><div class="vc_col-xs-12 wpb_el_type_textfield vc_wrapper-param-type-textfield vc_shortcode-param vc_column" data-vc-ui-element="panel-shortcode-param" data-vc-shortcode-param-name="othe_id" data-param_type="textfield" data-param_settings="{"type":"textfield","class":"db_other","heading":"Post ID","param_name":"othe_id","admin_label":true,"value":"","dependency":{"element":"data_source","value":["db_other"]},"description":"Enter post ID.","vc_single_param_edit_holder_class":["vc_col-xs-12","wpb_el_type_textfield","vc_wrapper-param-type-textfield","vc_shortcode-param","vc_column"]}"><div class="wpb_element_label">Post ID</div><div class="edit_form_line"><input name="othe_id" class="wpb_vc_param_value wpb-textinput othe_id textfield" type="text" value=""/><span class="vc_description vc_clearfix">Enter post ID.</span></div></div></div></div><script src="https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/edit-form.min.js"></script><script> if ( window.vc ) { window.vc.required_params_to_init = ["rcb_posts","textarea_html","exploded_textarea_safe","options","css_editor","font_container","autocomplete","params_preset","param_group","gutenberg","column_offset"]; }</script>0
Looks like the AJAX handler is returning bare HTML but the JS is expecting JSON.
WP 5.9.2
PHP 7.4.7
WPBakery 6.8.0
Reusable Content Blocks 1.1.1
Theme BeTheme 26.0.2- This reply was modified 2 years, 8 months ago by Matt Lowe. Reason: Added WP / plugin / theme versions
- The topic ‘can’t edit component’ is closed to new replies.