Title: parseerror in forms when migrating site
Last modified: February 19, 2021

---

# parseerror in forms when migrating site

 *  Resolved [vganti](https://wordpress.org/support/users/vganti/)
 * (@vganti)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parseerror-in-forms-when-migrating-site/)
 * Sorry I can’t share the link to the site yet. Was trying to submit a ticket to
   Elementor, but the page is just hanging (on three different browsers). So I am
   posting here for the community’s help.
 * I am having a hard time debugging a problem with pop-up windows that are being
   used for redirection. I have a site in UAT [https://uat2.xyz.com](https://uat2.xyz.com)(
   the XYZ is a placeholder), that is built in WordPress and Elementor PRO on IIS
   and PHP 8. The site is on an EC2 machine behind an AWS ALB and Imperva (a cloud
   Firewall).
 * The problem I am facing is with pop-ups and redirection. I have several pop-ups
   in the site that perform redirection to other sites (being used as speedbumps).
   Since I need to open the links in new tabs, I have been forced to use the following
   example script that I obtained from help forums:
 *     ```
       <script>
           jQuery( document ).ready(function( $ ){
           $( '#leaving-ymcacambridge-form' ).on('submit_success', function(){
               // form has been submitted
               window.open('https://cambridgeymca.org/', '_blank');
           });
       });
       </script>
       ```
   
 * This window contains a form with just one button labelled “I Accept”. I attached
   a “Popup” action to the button with the “Close Popup” directive. The script is
   placed in an html widget in the popup window (and not inside the form). I ensured
   that the only form field is hidden and has a unique ID as recommended by Elementor.
 * The popup windows work as long as I am on the original site [http://uat2.xyz.com](http://uat2.xyz.com).
 * Then I migrate to [https://www.xyz.com](https://www.xyz.com) and follow all the
   migration steps (i.e. edit the bindings in IIS to [http://www.xyz.com](http://www.xyz.com),
   use the Replace URLS tool in Elementor, Regenerate the CSS files, change the 
   SITE URL and HOME URL entries in wp-config.php etc.). I am still on the same 
   EC2 instance and connected to the same AWS ALB and still behind the Imperva firewall.
 * The pop-ups seem to work for a few minutes. After that they start failing – the
   popup window becomes taller and a message is printed on the window in invisible
   text. I cut and pasted the text and it says “parse error”. Inspecting the element
   shows an elementor-danger-message class appearing. The problem appears on all
   desktop and mobile browsers.
 * I moved back the site to [https://uat2.xyz.com](https://uat2.xyz.com) and everything
   works fine again!!
 * This problem has delayed our go-live by two weeks! All help from the experts 
   will be highly appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparseerror-in-forms-when-migrating-site%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * (@saidaboukhadra)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parseerror-in-forms-when-migrating-site/#post-14090688)
 * Hello,
 * After trying several times, your website is throwing some errors from Cloudflare.
   
   Please check with them regarding this issue, I was able to view your web intermittently.
 * Afterwards, if you are using the pro version, please send an email to “support@elementor.
   com” and it will open a ticket in the relevant support department.
 * Regards,
    Said
 *  Thread Starter [vganti](https://wordpress.org/support/users/vganti/)
 * (@vganti)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/parseerror-in-forms-when-migrating-site/#post-14097669)
 * [@saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * Thank you very much for doing the testing. I got the issue resolved by not using
   Elementor pop-ups and switching to html confirm-links class in css. I will look
   into the cloudflare issues as I was not aware of those.
 * As of now, the issues is resolved for me.
 * Thanks Again,
    -Vishy

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘parseerror in forms when migrating site’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vganti](https://wordpress.org/support/users/vganti/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/parseerror-in-forms-when-migrating-site/#post-14097669)
 * Status: resolved