Support

Home Forums Event Espresso Premium Unable to process Stripe payment in checkout

Unable to process Stripe payment in checkout

Posted: September 21, 2019 at 3:32 am

Viewing 11 reply threads


lechatpito

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
at a.fn.init.rules (jquery.validate.min.js?ver=1.15.0:4)
at Object.<anonymous> (form_section_validation.js?ver=4.10.0.p:249)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at Object.add_rules (form_section_validation.js?ver=4.10.0.p:243)
at Object.<anonymous> (form_section_validation.js?ver=4.10.0.p:222)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at Object.setup_validation_rules (form_section_validation.js?ver=4.10.0.p:196)
at Object.initialize (form_section_validation.js?ver=4.10.0.p:63)
at Object.initialize_form_validation (single_page_checkout.js?ver=4.10.0.p:245)
at Object.initialize (single_page_checkout.js?ver=4.10.0.p:169)


Josh

  • Support Staff

September 23, 2019 at 7:32 am

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?


lechatpito

September 23, 2019 at 7:54 am

This reply has been marked as private.


Josh

  • Support Staff

September 23, 2019 at 9:04 am

Hi,

Thanks.

Here’s the code snippet:

add_action(
    'wp_enqueue_scripts',
    'remove_evont_scripts_reg_checkout_page',
    11
);
function remove_evont_scripts_reg_checkout_page() {
    if(is_page('registration-checkout')) {
        wp_dequeue_script('evont-theme');
        wp_dequeue_script('form-validator');
    }
}

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/


lechatpito

September 23, 2019 at 9:23 am

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.

http://www.knowledgegraph.tech/events_expresso/kgc-2020/


Josh

  • Support Staff

September 23, 2019 at 9:40 am

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.


lechatpito

September 24, 2019 at 5:55 am

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
[24-Sep-2019 11:46:23] WARNING: [pool www] child 1284, script ‘/srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-admin/admin-ajax.php’ (request: “POST /wp-admin/admin-ajax.php”) execution timed out (208.515885 sec), terminating
[24-Sep-2019 11:46:23] WARNING: [pool www] child 1284 exited on signal 15 (SIGTERM) after 431.522978 seconds from start
[24-Sep-2019 11:46:23] WARNING: [pool www] child 1292 exited on signal 15 (SIGTERM) after 369.700788 seconds from start

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
Stack trace:
#0 /srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(2842): Registrations_Admin_Page->_delete_registration(NULL)
#1 /srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1010): Registrations_Admin_Page->_delete_registrations()
#2 /srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-content/plugins/event-espresso-core-reg/core/admin/ 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 2869

Please advise on next steps.


Josh

  • Support Staff

September 24, 2019 at 7:12 am

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.


lechatpito

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
[25-Sep-2019 04:13:51] WARNING: [pool www] child 4520, script ‘/srv/data/web/vhosts/www.knowledgegraph.tech/htdocs/wp-admin/admin-ajax.php’ (request: “POST /wp-admin/admin-ajax.php”) execution timed out (199.761579 sec), terminating
[25-Sep-2019 04:13:51] WARNING: [pool www] child 4520 exited on signal 15 (SIGTERM) after 273.521897 seconds from start
[25-Sep-2019 04:13:51] WARNING: [pool www] child 4524 exited on signal 15 (SIGTERM) after 269.222063 seconds from start


lechatpito

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
[25-Sep-2019 04:09:25] WARNING: [pool www] server reached max_children setting (2), consider raising it


lechatpito

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.


Josh

  • Support Staff

September 25, 2019 at 12:37 pm

Hi,

May I ask which setting did you change that made the difference?

Viewing 11 reply threads

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.

Event Espresso