Page 1 of 1

Order page on admin giving out errors when view.

Posted: Mon Mar 26, 2012 2:48 pm
by rukhairy
Opencart 1.5.2.1
Theme Shoppica 1.0.12

The error log is there but no known problem has been surfaced up till now.
I have try to disabled vQmod and the only difference is that the error is generated on the vqmod cache instead of the actual files.

Code: Select all

Notice: Undefined index: reward in /home/discom/public_html/shop/admin/model/sale/order.php on line 258
Notice: Undefined index: reward in /home/discom/public_html/shop/admin/model/sale/order.php on line 258
Notice: Undefined index: reward in /home/discom/public_html/shop/admin/model/sale/order.php on line 258
Notice: Undefined index: reward in /home/discom/public_html/shop/admin/model/sale/order.php on line 258
Notice: Undefined index: reward in /home/discom/public_html/shop/admin/model/sale/order.php on line 258
Notice: Undefined index: shipping_code in /home/discom/public_html/shop/admin/model/sale/order.php on line 360
Notice: Undefined index: payment_code in /home/discom/public_html/shop/admin/model/sale/order.php on line 377
Notice: Undefined index: forwarded_ip in /home/discom/public_html/shop/admin/model/sale/order.php on line 394
Notice: Undefined index: user_agent in /home/discom/public_html/shop/admin/model/sale/order.php on line 395
Notice: Undefined index: accept_language in /home/discom/public_html/shop/admin/model/sale/order.php on line 396
Here is the affected lines (although the file is originally from the 1.5.2.1, i just simple adding it here for reference purposes):

Code: Select all

Line 258: $reward += $product['reward'];
Line 360: 'shipping_code'           => $order_query->row['shipping_code'],
Line 377: 'payment_code'            => $order_query->row['payment_code'],
Line 394: 'forwarded_ip'            => $order_query->row['forwarded_ip'],
Line 395: 'user_agent'              => $order_query->row['user_agent'],
Line 396: 'accept_language'         => $order_query->row['accept_language'],
Have tried Google and look around the forum, I do find some related topics which most of them were related to custom template.

Re: Order page on admin giving out errors when view.

Posted: Sun Apr 15, 2012 11:10 am
by mbi0
I got same error even after clean install Help us plz

Code: Select all

2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  shipping_code in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 360
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  payment_code in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 377
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  forwarded_ip in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 394
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  user_agent in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 395
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  accept_language in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 396
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089

Re: Order page on admin giving out errors when view.

Posted: Sun Apr 15, 2012 1:37 pm
by Avvici
mbi0 wrote:I got same error even after clean install Help us plz

Code: Select all

2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 258
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  shipping_code in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 360
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  payment_code in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 377
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  forwarded_ip in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 394
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  user_agent in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 395
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  accept_language in /home/u331672358/public_html/tiend/store/admin/model/sale/order.php on line 396
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
2012-04-15 3:07:09 - PHP Notice:  Undefined index:  reward in /home/u331672358/public_html/tiend/store/admin/controller/sale/order.php on line 1089
If you indeed have a clean install, new database and no edits afterwards these errors are highly unlikely. I don't doubt that you are getting them but they do not make sense. How about open up your database in PHP my Admin and click on the "order" table. Is there a field there called "reward" ??

Re: Order page on admin giving out errors when view.

Posted: Fri Jun 01, 2012 2:48 pm
by kaliyas
How did you solved this problem? i am also having the same issue in with 1.5.2.1
thanks