I am a developer helping a customer to fix an error on his Open Cart website.
The customers version of Open Cart is 2.0.1.1, and using Ajax Quick Checkout Version 6.4.1. Using PHP 7.2 on the webhost.
The error is that whenever a customer clicks the confirm button when in checkout, nothing happen for the customer. But when using inspect on webpage, there are a HTTP 500 error in the console.
Looking more into the error logs of the webpage in the FTP(specificly in the twe.php file) a error text reads as following "Use of undefined constant positions - assumed 'positions'". Then following this error leads me to this line of php code:
Code: Select all
foreach (unserialize(positions) as $key => $position){$data[$key] = $this->load->controller('common/positions', $key);}
Also this piece of code is used in many files.
Hope that anyone has a guess or even encountered this error before and maybe solved it, any hints or educated guess is welcome. Also if there is a soloution, please share.
Kind regards
Jesper Engdahl