code-interactive Posted September 2, 2015 Share Posted September 2, 2015 I'm on 1.6.0.9 shared hosting on Hostgator. I've been getting long load times followed by a 500 error page. The host says it's Premature end of script headers: index.php but that doesn't really tell me anything. I've deleted the smarty cache, commented out "SetEnv HTTP_MOD_REWRITE On" in the .htaccess and changed my PHP version to all available and I still get the problem. The real trouble is that once this happens, I can't access the site at all on that browser until I delete the cookies. Any suggestions? Link to comment Share on other sites More sharing options...
Simonas Invertus Posted September 3, 2015 Share Posted September 3, 2015 500 error does not say anything about the problem. I am not sure if you can get detailed log files on shared hosting, but the real problem is written to the log file. I think if you could find problem description in the log file, you could easily find a solution too. Link to comment Share on other sites More sharing options...
code-interactive Posted September 3, 2015 Author Share Posted September 3, 2015 Correct- here's the error from the log: [Wed Sep 02 15:31:24 2015] [error] [client x.x.x.x] Premature end of script headers: index.php, referer: x.com/store That still doesn't tell me much. Thanks in advance for your suggestions! Link to comment Share on other sites More sharing options...
Simonas Invertus Posted September 4, 2015 Share Posted September 4, 2015 I do not know the answer. The best I could find is http://www.liquidweb.com/kb/apache-error-premature-end-of-script-headers/ Link to comment Share on other sites More sharing options...
code-interactive Posted September 5, 2015 Author Share Posted September 5, 2015 Thanks- anyone else? The curious thing is that the site is fine when I delete the cookie for the site. Link to comment Share on other sites More sharing options...
code-interactive Posted September 12, 2015 Author Share Posted September 12, 2015 Ugh this is annoying. I think the 500 error is just timing out. There's an issue with the shipping module I'm using and for some reason it's causing Presta to break. Link to comment Share on other sites More sharing options...
tuk66 Posted September 14, 2015 Share Posted September 14, 2015 You cannot fix it without debugging right on the server. The most important thing is to locate the problem - in a module, core PrestaShop code, some situations only. I already fixed similar problems, PM. 1 Link to comment Share on other sites More sharing options...
code-interactive Posted September 14, 2015 Author Share Posted September 14, 2015 Yeah, it's really annoying because the error log on the server doesn't track all the errors and it's very inconsistent. After some thorough troubleshooting, I was able to resolve that this type of error could be any number of different errors. For me it was running a function on the cart in the UPS shipping module. I guess the server couldn't handle that code and timed out or something. Here's what I did to resolve it: http://thestateofart.com/get-order-total-in-ups-shipping-module-for-prestashop/ But this probably won't help others with server errors. I recommend switching out code that has been changed from the approved modules until it works and narrowing down the troubleshooting that way. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now