• Resolved jdy98p

    (@jdy98p)


    Plugin used to work, but now I’m getting the below message:

    Bad Request
    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    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://www.ads-software.com/support/article/debugging-in-wordpress/

    Thread Starter jdy98p

    (@jdy98p)

    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.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    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

    • This reply was modified 5 years, 1 month ago by iamthewebb.
    • This reply was modified 5 years, 1 month ago by iamthewebb.
    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    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)

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    @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…

    Thread Starter jdy98p

    (@jdy98p)

    @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 ??

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    @jdy98p, You’re welcome!

    I don’t know what changed

    I do! LOL. The form now sends through Ajax.

    Also sending emails to Attendees was added (if you have that option enabled in EM Pro)

    @iamthewebb, there are more occurrences of the count() function in EM. You can solve them all with my workaround ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bad Request’ is closed to new replies.