Page 1 of 1

Error Code : frauds > order_info.tpl on line 31

Posted: Thu Jun 11, 2015 1:48 pm
by jurpro
Hello. Recently I update from OC 2.0.2 to OC 2.0.3.1.

I got this error code. Someone can help? Thank you.

Notice: Undefined variable: frauds in /home/xxxxxxxxx/public_html/xxxxxx.com/admin/view/template/sale/order_info.tpl on line 31
Notice: Undefined variable: frauds in /home/xxxxxxxx/public_html/xxxxxx.com/admin/view/template/sale/order_info.tpl on line 389

Re: Error Code : frauds > order_info.tpl on line 31

Posted: Fri Jun 12, 2015 3:46 am
by IP_CAM
FRAUDS is a v.2.0.3.x variable/thing, probably not included, at least not with this NAME, in your older v.2.x version.

Code: Select all

<?php if ($frauds) { ?>
          <?php foreach ($frauds as $fraud) { ?>
          <div class="tab-pane" id="tab-<?php echo $fraud['code']; ?>">
          <?php echo $fraud['content']; ?>
          </div>
          <?php } ?>
          <?php } ?>

Code: Select all

<?php foreach ($frauds as $fraud) { ?>
          <li><a href="#tab-<?php echo $fraud['code']; ?>" data-toggle="tab"><?php echo $fraud['title']; ?></a></li>
          <?php } ?>
You probably have to add some table, or Table Sub-things, into your DB, to make it work.
Or then, remove the portions (untested!), shown, above, from the file:

Code: Select all

opencart-2.0.3.1\upload\admin\view\template\sale\order_info.tpl
as strictly 'temporary' measure, if the file still functions..., afterwards... ;)
Good Luck!
Ernie
hitline.info/os/
PS: MAKE SURE, not to have ANY Mod's installed, possibly not working with OC v.2.0.3.x
Theres is a Mod, updating your DB, hopefully as well, somewhere in the Extension Section, for such.

Re: Error Code : frauds > order_info.tpl on line 31

Posted: Mon Jun 15, 2015 12:26 pm
by jurpro
Hello. Is there any simple instruction? Sorry I a little bit risky to add some table because I don't know what to do with add table. just add or spesipic table or what.
it's screenshot the error from order list.
error-fraud.jpg

error-fraud.jpg (55.88 KiB) Viewed 2155 times


Re: Error Code : frauds > order_info.tpl on line 31

Posted: Mon Jun 15, 2015 12:55 pm
by IP_CAM
I meant, adding a table to the Database, and since you seem to be active with Opencart since 2012, I figured, you would know, what I was trying to tell you! Sorry ;D
one nevers knows!
Ernie

Re: Error Code : frauds > order_info.tpl on line 31

Posted: Wed Jun 24, 2015 4:05 am
by pm-netti
IP_CAM wrote:I meant, adding a table to the Database, and since you seem to be active with Opencart since 2012, I figured, you would know, what I was trying to tell you! Sorry ;D
one nevers knows!
Ernie
One option (version 2.0.3.1 is not need table `order_fraud`):
Cut this code from admin/controller/sale/order.php line 1436:

Code: Select all

  $data['frauds'] = array();
paste this to line 920:

Code: Select all

  $data['frauds'] = array();
  $order_info = $this->model_sale_order->getOrder($order_id);

Re: Error Code : frauds > order_info.tpl on line 31

Posted: Sun Jun 28, 2015 9:47 pm
by jurpro
pm-netti wrote:
IP_CAM wrote:I meant, adding a table to the Database, and since you seem to be active with Opencart since 2012, I figured, you would know, what I was trying to tell you! Sorry ;D
one nevers knows!
Ernie
One option (version 2.0.3.1 is not need table `order_fraud`):
Cut this code from admin/controller/sale/order.php line 1436:

Code: Select all

  $data['frauds'] = array();
paste this to line 920:

Code: Select all

  $data['frauds'] = array();
  $order_info = $this->model_sale_order->getOrder($order_id);
Sorry, it still the same error. But thanks for help