prestashop-new Posted September 9, 2013 Share Posted September 9, 2013 Good Evening ! I am new to PrestaShop and I have configured a Shop. I am getting a server error during check out process when we enter email id in order to register. As soon as I click on Register button it gives Following Server Error on Chrome Browser : The website encountered an error while retrieving http://my.website.com/login. It may be down for maintenance or configured incorrectly. Reload this webpage. Press the reload button to resubmit the data needed to load the page. Error code: 500 Attached is the screen shots. Please Guide ! Thanks ! Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 if you've got internal server error message, you should run store under "error reporting" mode. This is necessary to debug error that you've got. in this case, you have to open config/defines.inc.php find this line define('_PS_MODE_DEV_', false); change to look like this: define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
prestashop-new Posted September 10, 2013 Author Share Posted September 10, 2013 Thank You soo much @Vekia for the reply. I have followed your steps and found the error at the following Path : Parse error: syntax error, unexpected T_FUNCTION in /opt/lampp/htdocs/myPrestaShopWebsite/tools/swift/Swift/Message/Headers.php on line 424 The following code is at line number 424: if (false !== $p = strpos($encoded_value[$key], $this->LE)) { $encoded_value[$key] = preg_replace_callback("/<([^>]+)>/", function ($matches) { return str_replace("' . $this->LE . '", "", "<$matches[1]>"); }, $encoded_value[$key]); } Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 here is the solution, you need to apply this path: https://github.com/PrestaShop/PrestaShop/commit/ffdc7b51b7f07a1919cbaaafba5a5602671fb3a8 Link to comment Share on other sites More sharing options...
prestashop-new Posted September 10, 2013 Author Share Posted September 10, 2013 Thank you soo much Vekia Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2013 Share Posted September 10, 2013 you're welcome im glad that i could help you but special thanks for PS team for releasing this patch im going to mark your topic as solved best regards 1 Link to comment Share on other sites More sharing options...
Recommended Posts