Plugin used to work, but now I’m getting the below message:
Your browser sent a request that this server could not understand.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.
Could you please be a bit more clear? When does the error occur exactly? And which version are you using?
Any 4XX error is caused on the client side (as 5XX are server errors). Have you tried cleaning your browser cache and cookies?
What does your debug.log say? If you do not have WP debugging enabled, please do, so the source of the error can be found easier. https://wordpress.org/support/article/debugging-in-wordpress/
The error occurs when I try to send an email to all Approved bookings in the WP admin backend. The booking confirmation emails are being sent correctly through EM, so I assume the issue is related to this plugin.
I have cleared my cache and still gives the above error. I’ll try and get the debug.log for you.
so I assume the issue is related to this plugin.
It does sound like that, doesn’t it? 😉
Would be great to see the actual logged error, so I can help you further.
Same for me, this is displayed after clicking send, will see if I can find any extra errors and edit them in to this message.
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[Sat Jan 11 14:34:59 2020] [error] [client MY_IP:0] AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/sites/5b/1/1c3983d8ec/public_html/wp-content/plugins/events-manager-pro/add-ons/gateways/gateways.transactions.php on line 308’
Not sure if this is related but the time stamps seem to match for each attempt made. My key expired a long time ago so still have 2.5.1 installed
*Fixed* not sure how the settings ended up changed but SSL was enabled but the port I was using wasn’t correct for ssl, once changed it all worked again. Hopefully it’s just an incorrect setting for the other user as well
SMTP connect() failed.
That says it all. Not the same error, but wrong SMTP settings. 😉
The count() warning is an Events Manager issue. That warning was added in PHP 7.2. the ccount() function now needs to be told what is coming up.
count( (array) $variable )
So, either manually edit that line, or downgrade back to PHP 7.1. (I would suggest the firs, hehehe)
@jdy98p, I am unable to reproduce the error, but an update is coming up (sending emails to Attendees), so I have rewritten part of the send_email() function. That might solve it for you too, I hope…
@duisterdenhaag I just updated the plugin and things are working again. I don’t know what changed, but thanks!
Thank for the tip regarding count Patrick, as always you go above and beyond with support 😀
- The topic ‘Bad Request’ is closed to new replies.