• Resolved John Russell

    (@laubsterboy)


    I’m using the Beaver Builder Page Builder (front end visual editor) and Gravity Forms on my site and ran into a problem where the WP-Spamshield javascript causes the visual editor to break.

    When using Beaver Builder and editing a page the page has been fully loaded and editing page content uses AJAX to load changes rather than a full page refresh. When updated content is loaded in, including the javascript from the WP-Spamshield rs_wpss_gf_form_append function, the screen is emptied and is just white. This is caused by the document.write call in the rs_wpss_gf_form_append javascript, since the page has already fully loaded document.write clears everything in the body and only writes what was included in the call. This isn’t normally a problem, but since the content is being updated dynamically rather than via page refresh document.write doesn’t work.

    Is there any way the echoed javascript code could be changed to not use document.write? Possibly adding an id to the <script> tag and then targeting it to use insertBefore to add the <input> tags?

    https://www.ads-software.com/plugins/wp-spamshield/

Viewing 1 replies (of 1 total)
  • Plugin Contributor redsand

    (@redsand)

    Hi laubsterboy,

    I’m sorry to hear about the issue you’re having, and I’ll be happy to help.

    The plugin is coded so that its spam protection code will not show up while you are in the admin. Some visual editors don’t work as if they are in the admin, which causes problems for some other plugins to detect.

    The document.write unfortunately needs to stay in there because it aids with compatibility issues that occur on certain sites using Gravity Forms. It was a specific fix we added.

    There are some workarounds though. You can disable Gravity Forms anti-spam, and that should take care of it for you. There also are hooks in the plugin that can be used to extend the functionality and help with this. Since this is a new feature we don’t have documentation yet, but we’ll be happy to help you create a custom implementation and show you how to use them.

    The white screen might not be from JavaScript at all…it could be from a PHP error in your site.

    We’ll help you fix all that though.

    If you would take a moment to head over to the WP-SpamShield Support Form (our main support channel) and fill out a request, we’ll look into this for you and help get things fixed up for you. If we need to build a compatibility bridge, we will do so.

    – Scott

Viewing 1 replies (of 1 total)
  • The topic ‘Compatibility issues with dynamic page builders’ is closed to new replies.