Incompatible with JetEngine’s Gutenberg blocks
-
Hi Jeff,
When BBQ Firewall is active, I can’t use some of the JetEngine blocks in the Gutenberg editor, e.g. “dynamic field” or “dynamic terms”.
When adding such a block, the following error is shown: “The response is not a valid JSON response”.
The reason appears to be a 403 forbidden response, so I tried disabling the BBQ Firewall and then it works fine.I also tested with the 7G Firewall and the same issue occurs.
After some testing I could nail it down to the following rule:RewriteCond %{QUERY_STRING} (((/|%2f){3,3})|((\.|%2e){3,3})|((\.|%2e){2,2})(/|%2f|%u2215)) [NC,OR]Commenting out that rule in htaccess solves the issue.
Since BBQ firewall is based on 7G Firewall I guess BBQ applies this very same rule?
Here is an example request used by the JetEngine plugin:
https://mywebsite.com/wp-json/wp/v2/block-renderer/jet-engine/dynamic-field?context=edit&attributes[dynamic_field_source]=object&attributes[dynamic_field_post_object]=name&attributes[dynamic_field_relation_type]=grandparents&attributes[dynamic_field_relation_post_type]=&attributes[dynamic_field_wp_excerpt]=false&attributes[dynamic_excerpt_more]=...&attributes[dynamic_excerpt_length]=&attributes[selected_field_icon_url]=&attributes[field_tag]=div&attributes[hide_if_empty]=false&attributes[dynamic_field_filter]=false&attributes[date_format]=F-j-Y&attributes[num_dec_point]=.&attributes[num_thousands_sep]=,&attributes[num_decimals]=2&attributes[related_list_is_single]=false&attributes[related_list_is_linked]=true&attributes[related_list_tag]=ul&attributes[multiselect_delimiter]=,&attributes[labels_by_glossary]=,&attributes[dynamic_field_custom]=false&attributes[dynamic_field_format]=%s&attributes[checklist_cols_num]=1&attributes[checklist_divider]=false&attributes[zeroise_threshold]=0&attributes[child_path]=&attributes[field_display]=inline&post_id=86&object=6&listing[listing_source]=terms&listing[listing_post_type]=post&listing[listing_tax]=themas&listing[repeater_source]=jet_engine&listing[repeater_field]=&listing[repeater_option]=&_locale=userThanks,
Guy
The topic ‘Incompatible with JetEngine’s Gutenberg blocks’ is closed to new replies.