Post by davidbfranks » Fri Nov 14, 2014 11:06 pm

Hi,

I keep getting repeated errors due to your extension:

2014-11-14 11:49:37 - PHP Notice: Uninitialized string offset: 0 in
/home/montanai/public_html/kickgame.co.uk/vqmod/vqcache/vq2-admin_model_sale_order.php
on line 1008
2014-11-14 11:55:06 - PHP Notice: Uninitialized string offset: 0 in
/home/montanai/public_html/kickgame.co.uk/vqmod/vqcache/vq2-admin_model_sale_order.php
on line 1008
2014-11-14 13:08:45 - PHP Notice: Uninitialized string offset: 0 in
/home/montanai/public_html/kickgame.co.uk/vqmod/vqcache/vq2-admin_model_sale_order.php
on line 1008

On line 1008 is this code:

Code: Select all

$emt_tracking_links[] =
$this->model_module_package_tracking->getLinkWithShortCodesReplaced($emt_tracker_carrier_link,
array('tracking_number' => trim($emt_tracking_numbers[$k]),
'shipping_postcode' => $emt_shipping_postcode));
Something must not be right?

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by gob33 » Fri Nov 14, 2014 11:41 pm

In last version, your links should have {tracking_number} instead of %s.
If you dont have that, you didnt update correctly.
Now try Uninstall + Install for the installer to update links.

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by davidbfranks » Fri Nov 14, 2014 11:46 pm

gob33 wrote:In last version, your links should have {tracking_number} instead of %s.
If you dont have that, you didnt update correctly.
Now try Uninstall + Install for the installer to update links.
I didn't have a last version this is a clean install!

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by davidbfranks » Fri Nov 14, 2014 11:50 pm

And it does have {tracking_number} yet I'm still getting these errors?

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by gob33 » Sat Nov 15, 2014 12:23 am

What is your OC version, Professionnal HTML version ?
When did you buy the module ?

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by davidbfranks » Sat Nov 15, 2014 12:33 am

OC - 1.5.6.4

Professional HTML - 4.5.3.3 (latest version)

Bought the module a while ago (15/11/2013), but just did clean install of OC

Thanks

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by gob33 » Sat Nov 15, 2014 12:53 am

I have no idea.
Has been tested with Pro Email Template 4.5.1.32 not 4.5.3.3.
Last edited by gob33 on Sat Nov 15, 2014 6:41 pm, edited 1 time in total.

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by davidbfranks » Sat Nov 15, 2014 1:02 am

Tried your private email it bounced back please PM an email that works

Thanks

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by gob33 » Sat Nov 15, 2014 1:14 am

Try on extension "about" page. Or pass with forum PM.

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by gob33 » Sat Nov 15, 2014 6:46 pm

Tested localy with Professional HTML - 4.5.3.3. All is good, no errors on my machine.
Think the problem comes from your other extension "adv_profit" which close vq2-admin_view_template_sale_order_info.tpl with a double <?php } ?> and prevent my code executing after.

Code: Select all

..............
function close_extra_cost(id) {
	$('.ajax-edit2 input').blur();
	$('#extra_cost-'+id).siblings().show();
	$('#extra_cost-'+id).hide();
}
</script> 
<?php } ?>
<?php } ?>

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by davidbfranks » Tue Nov 18, 2014 5:39 pm

gob33 wrote:Tested localy with Professional HTML - 4.5.3.3. All is good, no errors on my machine.
Think the problem comes from your other extension "adv_profit" which close vq2-admin_view_template_sale_order_info.tpl with a double <?php } ?> and prevent my code executing after.

Code: Select all

..............
function close_extra_cost(id) {
	$('.ajax-edit2 input').blur();
	$('#extra_cost-'+id).siblings().show();
	$('#extra_cost-'+id).hide();
}
</script> 
<?php } ?>
<?php } ?>

The developer of the extension fixed the double <?php } ?> and the error still repeatedly occurs, he has said it is due to your extension!

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by gob33 » Tue Nov 18, 2014 6:02 pm

Your cache is the same with double <?php } ?>. Clear your cache, im unable to do it (goes to a random page) probably because "Journal" has modified something on cache management.

[Solved: "adv_profit" had the bug]
Last edited by gob33 on Sat Nov 22, 2014 6:21 pm, edited 3 times in total.

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by szilard.kun » Fri Nov 21, 2014 8:40 pm

Hello, I sent you an e-mail but I get back a Delivery Failded message. So, my problem:
I use your extension together with adikon's Order Status E-mail extension. All works fine, but after 20140803 latest upgrade, the "carrier_href" values on e-mail don't work. It put the correct url, but the end of url not put the tracking number, just put the "{tracking_number}" as a simple text, so, just write the name of variable.

The all other variables (like tracking_number and carrier variables) work good on e-mail, just the carrier_href not work. What is the problem?

Of course, under opencart order history the full tracking url work good.

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by TexasPrairieGal » Mon Dec 08, 2014 12:47 pm

As usual... I'm a lot late to this party and have just now realized that the link for tracking going out in my emails is wrong. Looks like the new code is provided above but it's not picking up the tracking number. Can anyone tell me exactly what I need to correct?

The old code (picked up tracking number, but now a bad link):
"http://trkcnfrm1.smi.usps.com/PTSIntern ... rackNum=%s"
The revised code (good link but missing tracking number?):
"https://tools.usps.com/go/TrackConfirmA ... ing_number}"

So... is there a way to modify the revised code to retain whatever part of the old code was correctly picking up the tracking number???

Thanks everybody... and HAPPY HOLIDAYS!!!

New member

Posts

Joined
Sun Aug 11, 2013 1:07 am

Post by JBGood » Mon Dec 08, 2014 12:54 pm


New member

Posts

Joined
Tue Aug 21, 2012 7:51 pm

Post by TexasPrairieGal » Mon Dec 08, 2014 1:45 pm

OMG.... it was just that simple to correct???

Thank you soooooooooooo much!!!
Thank you thank you thank you!!!

New member

Posts

Joined
Sun Aug 11, 2013 1:07 am

Post by dudumagic » Sun Feb 08, 2015 11:55 pm

how i can fixed that problem ?

double in the admin

which file i need to edit ?

Image


thank you

New member

Posts

Joined
Tue Sep 04, 2012 12:51 am

Post by gob33 » Mon Feb 09, 2015 12:56 am

"moduloom_package_tracking.xml" lines 525-540 "admin/view/template/sale/order_history.tpl"
Your column 'Track_email' from other extension has modified something.

All my extensions


Active Member

Posts

Joined
Wed Feb 10, 2010 8:43 am
Location - France

Post by dudumagic » Mon Feb 09, 2015 1:20 am

gob33 wrote:"moduloom_package_tracking.xml" lines 525-540 "admin/view/template/sale/order_history.tpl"
Your column 'Track_email' from other extension has modified something.
SO what i can do or need to do ?

Code: Select all

// MODULOOM_PACKAGE_TRACKING_MODIFICATION_END (INVOICE)
       ]]></add>
    </operation>
    <operation>
      <search position="after"><![CDATA[
        $total_data = $this->model_sale_order->getOrderTotals($order_id);
      ]]></search>
      <add><![CDATA[
// MODULOOM_PACKAGE_TRACKING_MODIFICATION_BEGIN (INVOICE)
        $history_data = array();
        if ($this->config->get('pts_history_on_invoice')) {
          $this->data['column_date_added'] = $this->language->get('column_date_added');
          $this->data['column_status'] = $this->language->get('column_status');
          $this->data['column_notify'] = $this->language->get('column_notify');
          $this->data['column_comment'] = $this->language->get('column_comment');
          $this->data['column_tracking'] = $this->language->get('column_tracking');
  
          $this->load->model('module/package_tracking');
          $this->load->model('tool/image');

New member

Posts

Joined
Tue Sep 04, 2012 12:51 am

Post by dudumagic » Mon Feb 09, 2015 1:23 am

Code: Select all

<?php if ($error) { ?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?></div>
<?php } ?>
<table class="list">
  <thead>
    <tr>
      <td class="left"><b><?php echo $column_date_added; ?></b></td>
      <td class="left"><b><?php echo $column_comment; ?></b></td>
      <td class="left"><b><?php echo $column_status; ?></b></td>
      <td class="left"><b><?php echo $column_notify; ?></b></td>
<!-- MODULOOM_PACKAGE_TRACKING_MODIFICATION_BEGIN -->
      <td class="left"><b><?php echo $column_tracking; ?></b></td>
<!-- MODULOOM_PACKAGE_TRACKING_MODIFICATION_END -->
    </tr>
  </thead>
  <tbody>
    <?php if ($histories) { ?>
    <?php foreach ($histories as $history) { ?>
    <tr>
      <td class="left"><?php echo $history['date_added']; ?></td>
      <td class="left"><?php echo $history['comment']; ?></td>
      <td class="left"><?php echo $history['status']; ?></td>
      <td class="left"><?php echo $history['notify']; ?></td>
<!-- MODULOOM_PACKAGE_TRACKING_MODIFICATION_BEGIN -->
      <td class="left"><?php echo $history['tracking']; ?></td>
<!-- MODULOOM_PACKAGE_TRACKING_MODIFICATION_END -->
    </tr>
    <?php } ?>
    <?php } else { ?>
    <tr>
      <!-- Adapt the number of columns below. 6 with CUSTOM E-MAIL TEMPLATES WITH FULL HTML EDITOR -->
<!-- MODULOOM_PACKAGE_TRACKING_MODIFICATION_BEGIN -->
      <td class="center" colspan="5"><?php echo $text_no_results; ?></td>
<!-- MODULOOM_PACKAGE_TRACKING_MODIFICATION_END -->
    </tr>
    <?php } ?>
  </tbody>
</table>
<div class="pagination"><?php echo $pagination; ?></div>

New member

Posts

Joined
Tue Sep 04, 2012 12:51 am
Who is online

Users browsing this forum: No registered users and 226 guests