Post by Opendennis » Thu Jun 16, 2016 3:07 pm

We have an opencart 1.5.6.4 configuration with VQmod installed.
When a customer selects klarna invoice as payment method, the module does not contact klarna, and the following errors appear in the error log of opencart:

2016-06-14 15:39:20 - PHP Notice: Undefined index: phone_no in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 269
2016-06-14 15:39:20 - PHP Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: hr line 1 and center in Entity, line: 1 in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 416
2016-06-14 15:39:20 - PHP Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: p line 1 and body in Entity, line: 1 in *****public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 416
2016-06-14 15:39:20 - PHP Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: center line 1 and html in Entity, line: 1 in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 416
2016-06-14 15:39:20 - PHP Warning: DOMDocument::loadXML(): Premature end of data in tag body line 1 in Entity, line: 1 in *****public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 416
2016-06-14 15:39:20 - PHP Warning: DOMDocument::loadXML(): Premature end of data in tag html line 1 in Entity, line: 1 in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 416
2016-06-14 15:39:20 - PHP Notice: Trying to get property of non-object in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 418
2016-06-14 15:39:20 - PHP Notice: Trying to get property of non-object in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 419

How to begin to tackle this problem???

THX in advance!!!! O0

User avatar
Newbie

Posts

Joined
Thu Jun 16, 2016 2:58 pm

Post by Opendennis » Fri Jun 17, 2016 3:49 pm

Here a update....
found the problem for the first error ->PHP Notice: Undefined index: phone_no in *****/public_html/vqmod/vqcache/vq2-catalog_controller_payment_klarna_invoice.php on line 269

in the \catalog\controller\payment\klarna_invoice.php file on line 267:
'telno' => $this->request->post['phone_no'], and changed it to

'telno' => '', //commentetout $this->request->post['phone_no'],

So telno stays empty.....

refreshed vqmod files and......no errors when the .xml file is being parsed and send....

But it would be nice to get a phone nubber into telno....

Any suggestions?? ???

User avatar
Newbie

Posts

Joined
Thu Jun 16, 2016 2:58 pm
Who is online

Users browsing this forum: No registered users and 4 guests