Jump to content

[SOLVED] Gives Server Error after clicking on Register button


Recommended Posts

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 !

post-601125-0-25862400-1378733818_thumb.png

post-601125-0-84557700-1378733935_thumb.png

Link to comment
Share on other sites

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

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

×
×
  • Create New...