Post by spemux » Tue Jun 30, 2015 8:39 pm

1-Customer orders from OpenCart 2.0.3.1
2-I receive Order created email with perfect information, address, phone, email, products and all
3-Going to admin panel, all order fields have "1". No email, no info, absolutely no information other than "1" in all fields.

Customer name: 1
Address: 1
.
.

-and I also have this:
Commission: 1.00€
Whis is also the total sum.
Has this been addressed before? Is there a fix or am I the first experiencing it?
scr_1.png

scr_1.png (40 KiB) Viewed 1307 times

Checking my error logs, I see my usual non important theme errors and this:

Code: Select all

2015-06-30 11:33:14 - PHP Warning:  Invalid argument supplied for foreach() in /catalog/model/checkout/order.php on line 64
2015-06-30 11:33:14 - PHP Warning:  Invalid argument supplied for foreach() in /catalog/model/checkout/order.php on line 84
2015-06-30 11:33:14 - PHP Warning:  Invalid argument supplied for foreach() in /catalog/model/checkout/order.php on line 99
2015-06-30 12:11:40 - PHP Notice:  Undefined variable: totals in /catalog/view/theme/default/template/mail/order.tpl on line 106
2015-06-30 12:11:40 - PHP Warning:  Invalid argument supplied for foreach() in /catalog/view/theme/default/template/mail/order.tpl on line 106
2015-06-30 12:11:42 - PHP Notice:  Undefined variable: totals in /catalog/view/theme/default/template/mail/order.tpl on line 106
2015-06-30 12:11:42 - PHP Warning:  Invalid argument supplied for foreach() in /catalog/view/theme/default/template/mail/order.tpl on line 106
I wonder if this is related to it or something.

Any ideas?

New member

Posts

Joined
Thu May 10, 2012 8:22 pm
Location - Scandinavia

Post by spemux » Tue Jun 30, 2015 9:38 pm

Update:

Can my payment module cause this error? It's a Finnish payment module:

htmlspecialchars() expects parameter 1 to be string array given in my payment module .tpl file

Code: Select all

<form action="<?php echo $action; ?>" method="post" id="payment">
<?
$vars = get_defined_vars();
foreach ($vars as $key => $value) {

?>
  <input type="hidden" name="<?php echo htmlspecialchars($key); ?>" value="<?php echo htmlspecialchars($value); ?>" />
<?
}
?>
</form>
I don't want to blame the OpenCart, but I didn't have this error with same module in 1.5.6.4 :crazy:

New member

Posts

Joined
Thu May 10, 2012 8:22 pm
Location - Scandinavia

Post by beipink » Tue Jun 30, 2015 9:44 pm

spemux wrote:Update:
Can my payment module cause this error? It's a Finnish payment module:
It could well be it.
Cannot reproduce this issues here with OC2.0.3.1.
Test the system offline by exclusion shouldn't be hard to spot what's the root cause

Active Member

Posts

Joined
Tue Mar 20, 2012 7:43 pm

Post by dswtpl » Mon Jul 06, 2015 8:16 pm

Hello spemux,

May I know your website detail for checking this issue. It would be fine if you share website detail in private message.

Good Luck.

New member

Posts

Joined
Thu Feb 12, 2015 10:17 pm

Post by spemux » Tue Jul 07, 2015 5:02 pm

Do you mean admin access?
My problem still exists at the moment. I disabled the particular payment module. I do a test order myself, all looks good but when someone else does, it stills fills all the info as "1" O0

I am investigating further today and I will report back if I can find out the cause. Meanwhile, ideas will be appreciated.

New member

Posts

Joined
Thu May 10, 2012 8:22 pm
Location - Scandinavia
Who is online

Users browsing this forum: No registered users and 103 guests