Jump to content

500 Error At Order?step=1


AshbridgeWS

Recommended Posts

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

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

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

  • 1 month later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...