Jonh Carter Posted September 1, 2022 Share Posted September 1, 2022 Hello, When I try to download a invoice in admin area or client area I get this error given below: This site can’t be reached The webpage at https://www.domain.com/clients/dl.php?type=i&id=1225 might be temporarily down or it may have moved permanently to a new web address. ERR_INVALID_RESPONSE Please help to fix the issue. Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted September 1, 2022 Share Posted September 1, 2022 Heya John, Did you take a look at your WHMCS logs and your php error_log to see if anything is recorded? 0 Quote Link to comment Share on other sites More sharing options...
Jonh Carter Posted September 5, 2022 Author Share Posted September 5, 2022 Here is the Access log: 125.52.45.2 - - [05/Sep/2022:07:58:34 +0000] "GET /xxxx/dl.php?type=i&id=1234 HTTP/2.0" 500 41327 "https://www.domain.com/xxxx/xxxxx/invoices.php?action=edit&id=1234" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" Header status code: 500 status : (failed)net::ERR_INVALID_RESPONSE No php error. the website is working fine. only invoice download url is not working. 0 Quote Link to comment Share on other sites More sharing options...
Jonh Carter Posted September 5, 2022 Author Share Posted September 5, 2022 (edited) I can print it but can't download it. when I try to download it gives 500 Internal Server Error in headers. else everything is working fine. Edited September 5, 2022 by Jonh Carter 0 Quote Link to comment Share on other sites More sharing options...
Jonh Carter Posted September 5, 2022 Author Share Posted September 5, 2022 i think it is due to non secure content. when i visit to invoice download url : https://www.domain.com/xxxx/dl.php?type=i&id=1234 the padlock disappear from the url bar. this is the message when in click on the icon in address bar: Your connection to this site is not secure. the url starts with https & ssl is installed. it seems the dl.php file include any http link that's why it giving me not secure error. i also replaces the file with the new one but giving the same error. 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted September 6, 2022 Share Posted September 6, 2022 Error 500 means there is something wrong in your server. The PHP file or code is basically crashing. A web server will reply with error 500 when it does not know how to handle the request. With PHP this usually means something in your code is broken or causing issues. Try enabling debugging in your WHMCS installation. 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted September 6, 2022 Share Posted September 6, 2022 Try disabling all hooks and addons also temporarily to see if any of them are causing it. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Anwar Posted September 7, 2022 WHMCS Technical Analyst Share Posted September 7, 2022 Hi there, Please note that a 500 Internal Server Error is a generic error message produced by the server, often due to a misconfiguration. There are potentially a wider number of causes for such a problem, here is a brief overview of them and potential fixes: File Permissions are incorrectly set. Should be (depending on server but general rule of thumb) 644 for files and 755 for folders/directories. PHP Memory & Process limitations - Try increasing to 128MB PHP Process Limitations - Check with server admin/hosting provider Corrupt PHP Modules, Extensions, Builds - Check with server admin/hosting provider The obscure - If points 1-4 don't produce a fix typically the best course of action is to check the Apache Error Logs Although this is not a definitive list, it should provide you with a good starting point for the purposes of troubleshooting. 0 Quote Link to comment Share on other sites More sharing options...
Elyesa Bazna Posted May 20, 2023 Share Posted May 20, 2023 On 9/5/2022 at 2:32 PM, Jonh Carter said: i think it is due to non secure content. when i visit to invoice download url : https://www.domain.com/xxxx/dl.php?type=i&id=1234 the padlock disappear from the url bar. this is the message when in click on the icon in address bar: Your connection to this site is not secure. the url starts with https & ssl is installed. it seems the dl.php file include any http link that's why it giving me not secure error. i also replaces the file with the new one but giving the same error. Did you solve the problem? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.