Posted: September 21, 2019 at 3:32 am
|
We are trying to use Event Espresso for selling tickets on our website. We are using stripe plugin as the payment gateway. If you follow the checkout process on this page: http://www.knowledgegraph.tech/events_expresso/kgc-2020/ we are unabe to pay through stripe as it gets stuck when you finally click on pay. a little debugging shows the following error in event espresso core plugin javascript. Uncaught TypeError: Cannot read property ‘settings’ of undefined |
Hi, I checked and found that the active WP theme is loading its own form validation jQuery plugin, on every page, which appears to be conflicting with the form validation plugin that Event Espresso uses. What we could do is give you a code snippet that will remove the theme’s form validation plugin on the page that Event Espresso uses to handle the registration form and payment. Would it be possible to share a copy of the WordPress theme so we can find the code that adds the form validation script? |
|
|
This reply has been marked as private. |
Hi, Thanks. Here’s the code snippet:
You’ll add the above to a site specific plugin. You can add a site specific plugin to your site by following this guide: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
Based on your script I was able to click on Pay Now and pay through a test card, which I was not able to do before. So thank you for this solution. But after stripe shows payment ok, it is still stuck with a spinner showing loading. Can you please check to see why it is stuck. |
In this case, whatever’s happening to cause the payment response from Stripe to not work, is happening on the server side (no JavaScript errors on the front end). Two places to check for errors: 1) The server’s PHP error log. If that’s not something you have access to, you can turn on WP_DEBUG mode and set it to log errors. https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug 2) The responses from Stripe are viewable in Event Espresso > Payment Methods > Logs. You can check there for error messages. |
|
|
Error log on php [24-Sep-2019 11:46:23] WARNING: [pool www] child 1292, script ‘/srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/index.php’ (request: “GET /index.php?ee=msg_cron_trigger&type=generate&key=ee_trans_generate5d8a0140cd33a”) execution timed out (207.068101 sec), terminating Other Error log PHP Fatal error: Uncaught TypeError: Argument 1 passed to Registrations_Admin_Page::_delete_registration() must be an instance of EE_Registration, null given, called in /srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php on line 2842 and defined in /srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php:2869 Please advise on next steps. |
The next steps will be go to Event Espresso > Messages and delete any failed messages listed there. Since you’re testing, you could just delete all of them there, then test payments again. |
|
|
September 24, 2019 at 10:38 pm I am still getting: [25-Sep-2019 04:13:51] WARNING: [pool www] child 4524, script ‘/srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/index.php’ (request: “GET /index.php?ee=msg_cron_trigger&type=generate&key=ee_trans_generate5d8ae8b99084e”) execution timed out (198.302670 sec), terminating |
|
September 24, 2019 at 10:46 pm Do you think it might have anything to do with following log: [24-Sep-2019 13:12:20] WARNING: [pool www] server reached max_children setting (2), consider raising it |
|
September 24, 2019 at 11:29 pm Ok, SO I was able to use the request thread to send messages by updating the messages settings and it is working now. |
September 25, 2019 at 12:37 pm Hi, May I ask which setting did you change that made the difference? |
|
The support post ‘Unable to process Stripe payment in checkout’ 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.