Oxygen builder doesnt let me save my edits when building the website.

This is the error i received before the site went into recovery mode… 

Error Details
=============
An error of type E_ERROR was caused in line 449 of the file /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-controller-analysis.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-controller-analysis.php:449
Stack trace:
#0 /var/web/site/public_html/wp-includes/class-wp-hook.php(307): Smartcrawl_Controller_Analysis->add_seo_analysis_metabox_content(Object(WP_Post))
#1 /var/web/site/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#2 /var/web/site/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/admin/templates/metabox/metabox-seo-analysis-container.php(61): do_action(‘wds-editor-meta…’, Object(WP_Post))
#4 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(57): include(‘/var/web/site/p…’)
#5 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(15): Smartcrawl_Renderable->_load(‘metabox/metabox…’, Array)
#6 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/admin/templates/metabox/metabox-tab-seo.php(10): Smartcrawl_Renderable->_render(‘metabox/metabox…’, Array)
#7 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(57): include(‘/var/web/site/p…’)
#8 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(15): Smartcrawl_Renderable->_load(‘metabox/metabox…’, Array)
#9 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/admin/templates/metabox/horizontal-tab.php(9): Smartcrawl_Renderable->_render(‘metabox/metabox…’, Array)
#10 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(57): include(‘/var/web/site/p…’)
#11 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(15): Smartcrawl_Renderable->_load(‘metabox/horizon…’, Array)
#12 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/admin/templates/metabox/metabox-main.php(33): Smartcrawl_Renderable->_render(‘metabox/horizon…’, Array)
#13 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(57): include(‘/var/web/site/p…’)
#14 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-renderable.php(15): Smartcrawl_Renderable->_load(‘metabox/metabox…’, Array)
#15 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/core/class-wds-simple-renderer.php(19): Smartcrawl_Renderable->_render(‘metabox/metabox…’, Array)
#16 /var/web/site/public_html/wp-content/plugins/wpmu-dev-seo/includes/admin/metabox.php(293): Smartcrawl_Simple_Renderer::render(‘metabox/metabox…’, Array)
#17 /var/web/site/public_html/wp-admin/includes/template.php(1401): Smartcrawl_Metabox->smartcrawl_meta_boxes(Object(WP_Post), Array)
#18 /var/web/site/public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
#19 /var/web/site/public_html/wp-admin/post.php(206): require(‘/var/web/site/p…’)
#20 {main}
  thrown

  • Marcel Oudejans
    • Ex Staff

    Hello Kyle

    I trust this reply finds you in good health.

    The issue that you are describing, being unable to save edits with Oxygen Builder, is an issue particularly related to how Oxygen Builder works (compared to other page builders). The method by which it saves changes closely mimics some malware behaviours (detected as a “PHP injection attack”), and so the server’s Web Application Firewall (WAF) takes protective action and blocks the change.

    [attachments are only viewable by logged-in members]

    Ordinarily, you would be able to exclude a Rule from the WAF when this kind of behaviour takes place. However, our experience with dealing with this issue has shown that you would need to continuously add new Rules as the ‘trigger’ changes. It’s also not possible to exclude the URL from the WAF because this would make the WAF ineffective at protecting your site.

    The solution that has provided the best results is to add your IP (and/or the IP of anyone making the edits using Oxygen Builder) to your WAF’s Allowlist. You can do this in Hub > site > Hosting > Tools > Web Application Firewall > On (more info in our documentation).

    [attachments are only viewable by logged-in members]

    You can either use the WAF Log to see which IPs to allow, or use a service like https://whatismyipaddress.com/ to see your IP address and then add it to the Allowlist.

    By doing so, saving in Oxygen Builder using the device/s with the Allowed IP/s will no longer trigger the WAF’s protective action.

    Should you have more questions about this, you are welcome to reply here.

    Kind regards,
    Marcel