help-scout-widget
help-scout-widget copied to clipboard
Error 500 from proxy.php once form is sent
Hi,
Great widget, it's working correctly on my test site, but when the form is sent, the proxy returns a 500 error code. The form is really sent (help scout receives the complete message), but the "Success" isn't shown at the widget.
I'm using the PHP proxy, with the corresponding API key & mailbox id at the config.php and the javascript configuration at the html file where the widget is displayed.
Looking at the apache error log, I can only find:
[Mon Jun 15 18:31:57.362094 2015] [proxy_fcgi:error] pid 9374:tid 140545414326016Invalid argument: [client HERE IS THE SERVER IP] AH01075: Error dispatching request to : , referer: https://www.EXAMPLE.com/
Any thoughts on why it may be happening?
I'm using jQuery v1.11.2 & PHP 5.6
Kind regards
@mileurista First, I'm glad to hear that the widget is working correctly for you. Unfortunately, I don't have a strong suggestion for the issue. The proxy scripts were only tested with Apache mod_php. I suspect that there may be an issue with either your php-fpm configuration, or there is some incompatibility with the proxy script and fastcgi.
If you can capture the full output of the script including headers, that would be helpful to see. Also, in your log file that you included, is the referer
the url of your website?
Hi @craig-davis,
Sorry for the delay, I've tested it today and the problem seems to be in line 51 of the proxy.php file:
header('Proxy response', true, $statusCode);"
I've commented it out and now it seems to work.
Kind regards,