aurora4pps Posted April 8, 2018 Share Posted April 8, 2018 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. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 9, 2018 Share Posted April 9, 2018 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(); } Link to comment Share on other sites More sharing options...
aurora4pps Posted April 9, 2018 Author Share Posted April 9, 2018 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. Link to comment Share on other sites More sharing options...
tuhingr Posted June 22, 2018 Share Posted June 22, 2018 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 Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2018 Share Posted August 27, 2018 Woocommerce hahahahaha Maybe add the id_country manually to the sp_country database, then delete the country from your back office. Link to comment Share on other sites More sharing options...
tuhingr Posted August 28, 2018 Share Posted August 28, 2018 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. Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2018 Share Posted August 28, 2018 Basically restoring the country table? Is that the answer you were looking for? If, not please tell us more about your case. Link to comment Share on other sites More sharing options...
tuhingr Posted September 4, 2018 Share Posted September 4, 2018 Finally resolved this issue. tcpdf.php.suspected rename to tcpdf.php /vendor/tecnickcom/tcpdf on located. Thanks 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