Support

Home Forums Event Espresso Premium EE4 Stripe Add On Time out

EE4 Stripe Add On Time out

Posted: May 5, 2016 at 8:02 am


Lucy K

May 5, 2016 at 8:02 am

Hi EE4 Support team,

I have downloaded and installed the stripe plugin but when I try to activate it it times out.

any ideas?

I have deleted the plugin and reenabled it.

Im on Version 4.8.38.p .

Thanks Lucy

Here is the php fpm slow query log:

`[05-May-2016 14:58:25] [pool www] pid 2098
script_filename = /usr/share/nginx/webroot/wordpress/wp-admin/admin.php
[0x00007fc13c9c0848] curl_exec() /usr/share/nginx/wordpress/wp-includes/class-wp-http-curl.php:239
[0x00007fc13c9c06a0] request() /usr/share/nginx/wordpress/wp-includes/class-http.php:367
[0x00007fc13c9c04b8] _dispatch_request() /usr/share/nginx/wordpress/wp-includes/class-http.php:277
[0x00007fc13c9c0350] request() /usr/share/nginx/wordpress/wp-includes/http.php:153
[0x00007fc13c9c0208] wp_remote_request() /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_URL.helper.php:64
[0x00007fc13c9c0078] remote_file_exists() /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Payment_Method.model.php:275
[0x00007fc13c9bfec0] verify_button_urls() /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/admin_pages/payments/Payments_Admin_Page.core.php:247
[0x00007ffeb30b9d60] _payment_methods_list() unknown:0
[0x00007fc13c9bfcc0] call_user_func_array() /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:899
[0x00007fc13c9bfba8] _route_admin_request() /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:729
[0x00007fc13c9bfae0] route_admin_request() /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php:224
[0x00007ffeb30ba3a0] initialize_admin_page() unknown:0
[0x00007fc13c9bf948] call_user_func_array() /usr/share/nginx/wordpress/wp-includes/plugin.php:525
[0x00007fc13c9bf760] do_action() /usr/share/nginx/wordpress/wp-admin/admin.php:236


Lucy K

May 5, 2016 at 8:05 am

Addtional Logs:

2016/05/05 14:58:45 [error] 1996#0: *218 readv() failed (104: Connection reset by peer) while reading upstream, client: 86.187.161.165, request: “GET /wordpress/wp-admin/admin.php?page=espresso_payment_settings&action=default&payment_method=stripe_onsite&_wpnonce=de37bdf089&default_nonce=de37bdf089&return=activate_payment_method HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm-pool1.sock:”, referrer: “/wordpress/wp-admin/admin.php?page=espresso_payment_settings”


Lucy K

May 5, 2016 at 8:17 am

Just in case I’m using Striple Plugin Version 1.0.12.p with Version 4.8.38.p of espresso.

thank you again Lucy


Lucy K

May 5, 2016 at 8:21 am

Sorry I was not clear when I used the term activate, it seems to activate fine in the plugins section but when I activate it in the payments section it times out.


Lucy K

May 5, 2016 at 8:55 am

This works fine on my test server but on my production server it times out.

The code base it exactly the same, so im thinking its a data issue.

So I tried compeltely unistalling the stripe plugin yet I still see an entry in the database.

Is it safe to manually delete this entry?

SELECT * FROM wp_esp_payment_method;

# PMD_ID, PMD_type, PMD_name, PMD_desc, PMD_admin_name, PMD_admin_desc, PMD_slug, PMD_order, PMD_debug_mode, PMD_wp_user, PMD_open_by_default, PMD_button_url, PMD_scope
'11', 'Stripe_Onsite', 'Stripe', 'Click the \"Pay Now\" button to proceed with payment.', 'Stripe', NULL, 'stripe_onsite', '20', '0', '2', '0', 'http://www.mydomain.com/wordpress/wp-content/plugins/eea-stripe-gateway/payment_methods/Stripe_Onsite/lib/stripe-cc-logo.png', 'a:0:{}'

thank you Lucy


Lucy K

May 5, 2016 at 9:27 am

Hi guys, I think I found what the issue is.

Why are you making a curl call to find the payment logo on my server.

Its looking for https which my srver is not.

[05-May-2016 15:23:46 UTC] https://www.mydomain.com/wordpress/wp-content/plugins/event-espresso-core-reg/payment_methods/Paypal_Standard/lib/paypal-logo.png
[05-May-2016 15:23:46 UTC] #0 /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Payment_Method.model.php(275): EEH_URL::remote_file_exists('https://www.ind...')
#1 /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/admin_pages/payments/Payments_Admin_Page.core.php(247): EEM_Payment_Method->verify_button_urls()
#2 [internal function]: Payments_Admin_Page->_payment_methods_list()
#3 /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(899): call_user_func_array(Array, Array)
#4 /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(729): EE_Admin_Page->_route_admin_request()
#5 /usr/share/nginx/wordpress/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(224): EE_Admin_Page->route_admin_request()
#6 [internal function]: EE_Admin_Page_Init->initialize_admin_page('')
#7 /usr/share/nginx/wordpress/wp-includes/plugin.php(525): call_user_func_array(Array, Array)
#8 /usr/share/nginx/wordpress/wp-admin/admin.php(236): do_action('event-espresso_...')
#9 {main}


Lorenzo Orlando Caum

  • Support Staff

May 5, 2016 at 10:05 am

Hi Lucy,

Event Espresso will check to see if your website is using HTTPS and if it is, then it will use HTTPS for the button URLs so that you don’t get insecure content issues during registration checkout.

It sounds like that isn’t working on your live/production server and there is a filter to deactivate it.

Could you try dropping this into your child theme or a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/)?

https://gist.github.com/anonymous/5dd0693b8b60156298fb276b32513c77

One other note is that Stripe does recommend (https://support.stripe.com/questions/should-i-serve-my-payment-pages-over-ssl) an SSL certificate for payment processing so I would pick one up from your web host or a service like NameCheap.


Lorenzo


Lucy K

May 5, 2016 at 10:14 am

Thank you Lorenzo for looking into this for me.

Agreed on SSL certificate but at the moment I dont have the time to implement it.

I’ll try your temporary fix until I set SSL up.
Lucy


Lucy K

May 6, 2016 at 3:20 am

Thanks Lorenzo, your fix works. You can close this ticket.

The support post ‘EE4 Stripe Add On Time out’ 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