Jump to content
aurora4pps

500 internal server error check-out process PS 1.7.2.x

Recommended Posts

Please help me guys. Im new to prestashop. I have prestashop online store and when I checkout my order, Im getting 5oo internal server. Here is the server details. 
 

Information about your server Linux info 3.0 # 1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU / Linux Linux info 3.0 # 1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU / Linux Linux info 3.0 # 1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU / Linux

Server software version: Apache

PHP Version: 7.1.15

Memory Limit: 256M

Maximum execution time: 50000

Max size for sending files: 64M

MySQL Version: 5.5.59-0 + deb7u1-log

Here is the error log.

 

Captfddfdure.PNG

Share this post


Link to post
Share on other sites

Did you make any changes on the address fields for a country ?

In PS 1.7.2.x series there is a known bug on address fields. You can debug it by this way:

 

Make following change in classes\form\CustomerAddressPersister.php - Add the line below after about line 67.

public function save(Address $address, $token)
{
    if (!$this->authorizeChange($address, $token)) {
        return false;
    }

    $address->id_customer = $this->customer->id;
    $address->save();    // <-- Add this

    if ($address->isUsed()) {
        $old_address = new Address($address->id);
        $address->id = $address->id_address = null;

        return $address->save() && $old_address->delete();
    }

    return $address->save();
}
 

Share this post


Link to post
Share on other sites
12 hours ago, selectshop.at said:

Did you make any changes on the address fields for a country ?

In PS 1.7.2.x series there is a known bug on address fields. You can debug it by this way:

 

Make following change in classes\form\CustomerAddressPersister.php - Add the line below after about line 67.


public function save(Address $address, $token)
{
    if (!$this->authorizeChange($address, $token)) {
        return false;
    }

    $address->id_customer = $this->customer->id;
    $address->save();    // <-- Add this

    if ($address->isUsed()) {
        $old_address = new Address($address->id);
        $address->id = $address->id_address = null;

        return $address->save() && $old_address->delete();
    }

    return $address->save();
}
I fixed the error. Thanks for your help. I changed Location settings as default. It fixed the error. 

 

Share this post


Link to post
Share on other sites

I have same issue on ps 1.7.2

> When upgrade ps latest version then ok for some times. after that getting same issue.

I am looking for great solution.

BR

Share this post


Link to post
Share on other sites
Guest

Woocommerce hahahahaha :)

Maybe add the id_country manually to the sp_country database, then delete the country from your back office.

Share this post


Link to post
Share on other sites
21 hours ago, PrestaRalph said:

Woocommerce hahahahaha :)

Maybe add the id_country manually to the sp_country database, then delete the country from your back office.

Not Clear, please mention your comment.

Share this post


Link to post
Share on other sites
Guest

Basically restoring the country table? Is that the answer you were looking for?

If, not please tell us more about your case.

Share this post


Link to post
Share on other sites

Finally resolved this issue.
tcpdf.php.suspected rename to tcpdf.php
/vendor/tecnickcom/tcpdf on located.
Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More