January 8, 2018 at 3:17 pm #15827
Ive been searching around for a solution for this and I have tried your https://kb.mc4wp.com/fix-the-oops-something-went-wrong-error/ but it did not work for me:
What im seeing:
- when logged into wp I am able to subscribe via the yith newsletter popup
- when not logged in (incognito window for test) I am not able to subscribe using the popup and I see the ‘Ops! Something went wrong’
This is what the 200 request looks like when logged into wp:
jquery.js?ver=1.12.4:2 XHR finished loading: GET
When not logged in I see the error 400:
https://**.com/wp-admin/admin-ajax.php?yit_mailchimp_newsletter_form_email=patrick%40gmail.com&yit_mailchimp_newsletter_form_id=4280&action=ypop_subscribe_mailchimp_user&yit_mailchimp_newsletter_form_nonce=2e61103d88&_wp_http_referer=%2F&_=1515273908072 400 (Bad Request)
Please let me know what else to check.. It’s still not workingJanuary 8, 2018 at 5:16 pm #15828
Please follow this topic https://wordpress.org/support/topic/messaggio-0-nella-sottoscrizione/
change line 77
add_action( 'wp_ajax_ypop_nopriv_subscribe_mailchimp_user', array( $this, 'subscribe_mailchimp_user'));
add_action( 'wp_ajax_nopriv_ypop_subscribe_mailchimp_user', array( $this, 'subscribe_mailchimp_user'));
Best regardsJanuary 10, 2018 at 7:06 pm #15916
Thanks for the response,
I have modified line 77 in yith-woocommerce-popup/includes/newsletter-integration/Mailchimp.php to: add_action( ‘wp_ajax_nopriv_ypop_subscribe_mailchimp_user’, array( $this, ‘subscribe_mailchimp_user’));
I am now getting a new error “Something went wrong: Mailchimp list related error (basic action)”
I can see the above error when logged in to wpdashboard and also when not logged in.
Browser test (logged out of wp):
- Console log outgoing transmission to mailchimp: jquery.js?ver=1.12.4:2 XHR finished loading: GET “https://***.com/wp-admin/admin-ajax.php?yit_mailchimp_newsletter_form_email=patrick%40***.ca&yit_mailchimp_newsletter_form_id=4280&action=ypop_subscribe_mailchimp_user&yit_mailchimp_newsletter_form_nonce=ecfdd9800d&_wp_http_referer=%2Ftest%2F&_=1515585241357”.
- Mailchimp log:
date/time: 2018-01-10 11:52:12 GMT
result: green checkmark
source ip: 104.***.***.203
exec time: 0.048s
- cleared frontend cache
- restarted apache2 service just to make sure
Any tips?January 10, 2018 at 7:08 pm #15917
looks like the email I have been testing with may have been overused, I tried 3 more unique emails that I have not tested and they do subscribe successfully
Thanks for all the help here!
~PMJanuary 10, 2018 at 9:55 pm #15923
Did you issue solve? Please let me know.
You must be logged in to reply to this topic.