Posted: August 7, 2013 at 6:52 am
I register and complete entry of card info unfortunately I get the pop up dialog to ‘stay or leave’ the page. I have to click on leave to commit registration. |
|
During this code, it fails ‘ $(‘#processing’).html(”);’ |
|
|
Hi Robert, Sorry about that, we introduced that feature to help stop people from not completing a registration and overwriting there current one. We have a fix in place for Event Espresso version 3.1.34 that will stop this from popping up when the user heads to an offsite payment gateway such as PayPal. |
Forgot to mention that I just updated to WP 3.6 and esspresso 3.1.34.P |
|
I’ve disabled other plugins and still occurs |
|
Dean, How can I retrieve this fix? Thanks |
|
|
Right I see, you are using PayPal Pro, not standard. OK, I will need to re-open the ticket to look into this, we were focusing on outbound sites for the fix not onsite. Please leave this with us. |
My client is asking how long will it take to resolve the issues. Thanks |
|
Hi Robert, I’ve triple checked and I am unable to reproduce this on my test site that’s running Event Espresso 3.1.34.P. There may be something on your site that is creating a conflict. There was a related forum post where something similar was happening and it turned out to be there were two Google Analytics plugins running and both of them were set to track outbound link clicks. This was resolved by deactivating one of them. https://eventespresso.com/topic/leave-the-current-page/#post-52134 I checked the thank you page on your site and it looks like there is some google analytics JavaScript being loaded, so you could try disabling any outbound link tracking if that’s set up. |
|
Josh, The site doesn’t contain any google plugins but that google analytics code was place there manually. It would be a shame for me to remove it because then we’d loose tracking. I will try that and see if that’s it. |
|
I do not think you need to remove Google Analytics entirely as that wasn’t the case with the other site. You might try using a plugin like Google Analyticator as that didn’t seem to create any conflicts. |
|
I removed the google tracking codes and the issue still comes up. |
|
Error is still ‘ReferenceError: EEGlobals is not defined’ |
|
Anyway to go one version back? It was working until I updated it this morning. |
|
Which version were you on previously? |
|
With the EEGlobals not defined error you’re seeing, you might try changing line 5 in /gateways/paypal_pro/paypal_pro.js to:
|
|
Shoot, cant find info. There’s no way to roll back? |
|
Did you back up the site before you updated? |
|
3.1.33.2 So no one else is running into this problem? |
|
Not with PayPal Pro in Event Espresso 3.1.34. Do you have any files copied over to /wp-content/uploads/espresso/templates or /wp-content/uploads/espresso/gateways? On line 115 of the PayPal Pro gateways paypal_pro_vars.php file there should be an “allow-leave-page” class applied to the submit button. Is that the case with your copy? |
|
I ran a test on your site and can see that the allow-leave-page class is missing: <input name="paypal_pro_submit" id="paypal_pro_submit" class="submit-payment-btn" type="submit" value="Complete Purchase"> The new version of Event Espresso (3.1.34.P) has this: <input name="paypal_pro_submit" id="paypal_pro_submit" class="submit-payment-btn allow-leave-page" type="submit" value="Complete Purchase"> If it’s loading up an older copy of the PayPal pro gateway from /wp-content/uploads/espresso/gateways that will override the current version’s updated code. |
|
So there’s a possibility that my update this morning was not complete? |
|
|
The update will not update files that are in uploads/espresso, such as uploads/espresso/templates and uploads/espresso/gateways. If you have a modified version of the gateway in uploads/espresso/gateways, then that version will continue to be used after an update. The advantage is that your customizations are safe, and will not be overwritten by an update. The disadvantage is that your customized files are not updated, so you will have to check whether the stock version of your customized file was updated with new or modified code, and you’ll have to update the code in your customized file by hand. You can either make notes of what changes you made to customize your file and remake those changes to the new stock files, or you can run a diff between the old and new stock files, and add those changes to your customized files. |
If I remove my modified versions in the uploads, would everything be ok? |
|
It’s usually a good idea to deactivate the gateway first, then remove the code from /uploads/gateways, then reactivate the gateway. By removing the older code from the /uploads directory the plugin can work as expected. |
|
Suggested steps: Is that right? Should I deactivate the plugin too after I deactivate PayPal Payments Pro? |
|
No need to deactivate Event Espresso. The files that are breaking things are likely in /wp-content/uploads/espresso/gateways/. |
|
Just executed changes and it’s working as expected. Thanks. |
|
The support post ‘Submission issue. Pay button triggers document "leave or stay dialog" box’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.