AshbridgeWS Posted November 25, 2015 Share Posted November 25, 2015 Hello all, I am new to Prestashop and need to develop several websites. Does anyone have any idea why my website is causing a 500 error when you click "Proceed to Checkout >" which takes you too order?step=1? I have @ini_set('display_errors', 'on'); set in defines.inc.php (line 34). The only error message I see is: Server Error 500 The website encountered an error while retrieving http://domain.co.uk/login?back=http%3A%2F%2Fdomain.co.uk%2Forder%3Fstep%3D1&display_guest_checkout=1. It may be down for maintenance or configured incorrectly. Link to comment Share on other sites More sharing options...
razaro Posted November 25, 2015 Share Posted November 25, 2015 Turn debug mode on https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ and there should be some errors. Also check maybe in your root folder if there is file error.log. Link to comment Share on other sites More sharing options...
AshbridgeWS Posted November 25, 2015 Author Share Posted November 25, 2015 Turn debug mode on https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ and there should be some errors. Also check maybe in your root folder if there is file error.log. I tried steps 1 and 2 of that document... I retried my page and got this: Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/sites/domain.co.uk/public_html/controllers/front/AuthController.php on line 364 Ideas? Link to comment Share on other sites More sharing options...
razaro Posted November 25, 2015 Share Posted November 25, 2015 That is bit strange, cold you paste few lines around 364 of that AuthController.php ? Error is connected with unexpected double colon :: I guess. Link to comment Share on other sites More sharing options...
AshbridgeWS Posted November 25, 2015 Author Share Posted November 25, 2015 That is bit strange, cold you paste few lines around 364 of that AuthController.php ? Error is connected with unexpected double colon :: I guess. Sure. I did try and replace a few :: to -> round lines 364 but I had no luck. protected function processCustomerNewsletter(&$customer) { $blocknewsletter = Module::isInstalled('blocknewsletter') && $module_newsletter = Module::getInstanceByName('blocknewsletter'); if ($blocknewsletter && $module_newsletter->active && !Tools::getValue('newsletter')) { if (is_callable(array($module_newsletter, 'isNewsletterRegistered')) && $module_newsletter->isNewsletterRegistered(Tools::getValue('email')) == $module_newsletter::GUEST_REGISTERED) { /* Force newsletter registration as customer as already registred as guest */ $_POST['newsletter'] = true; } } if (Tools::getValue('newsletter')) { $customer->newsletter = true; $customer->ip_registration_newsletter = pSQL(Tools::getRemoteAddr()); $customer->newsletter_date_add = pSQL(date('Y-m-d H:i:s')); /** @var Blocknewsletter $module_newsletter */ if ($blocknewsletter && $module_newsletter->active) { $module_newsletter->confirmSubscription(Tools::getValue('email')); } } } Link to comment Share on other sites More sharing options...
razaro Posted November 25, 2015 Share Posted November 25, 2015 Not sure why that is causing an issue but try to change $module_newsletter::GUEST_REGISTERED to 1 . As that is an value of constant . Link to comment Share on other sites More sharing options...
AshbridgeWS Posted November 25, 2015 Author Share Posted November 25, 2015 Not sure why that is causing an issue but try to change $module_newsletter::GUEST_REGISTERED to 1 . As that is an value of constant . That seems to have allowed me to proceed to step 2. Can I ask why that is and what that has done? Has it effected security perhaps? Link to comment Share on other sites More sharing options...
razaro Posted November 25, 2015 Share Posted November 25, 2015 Well not sure, maybe a bug you can maybe add bug report at http://forge.prestashop.com/ so developers can check. Maybe some conflict with PHP version. And it should have no influence on security it is just and constant https://github.com/PrestaShop/blocknewsletter/blob/86a86ae6f861037d0a447cfe9b897a9421377dfd/blocknewsletter.php Link to comment Share on other sites More sharing options...
Hobbesgrrrr Posted December 28, 2015 Share Posted December 28, 2015 Hello there, I had exactly the same issue as you, if you want to correct that properly without hacking the core file Just change your php version in your .htaccess with SetEnv PHP_VER 5_4 (mine used to be set on 5_5 and it didn't work, 5_2 causes trouble too) I hope it helps Bye! 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