Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Hi Lat9
I made the changes per GitHub
I am getting a "This Page Isn't Working Right Now" and the below error in my log file when I go to LogIn:
'PHP Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home2/wildstee/public_html/Zcf294AkrVd6csa550FeF/includes/init_includes/init_typt_config.php on line 95'
I looked at the file but I am no coder so I do not know how to fix it.
Attachment 19623
Okay I figured it out, good old Google.
I added the dollar sign before the word sniffer
if (!$sniffer->field_exists(TABLE_ORDERS_STATUS_HISTORY, 'track_id1')) {
Now everything comes up and I get the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." at the top of the page.
Still testing everything else though
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay I figured it out, good old Google.
I added the dollar sign before the word sniffer
if (!$sniffer->field_exists(TABLE_ORDERS_STATUS_HISTORY, 'track_id1')) {
Now everything comes up and I get the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." at the top of the page.
Still testing everything else though
Currently the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." keeps showing up at the top of every page and none of the tracking info is showing up on the order pages or when I enter edit orders and I am no longer getting any DeBug files in my logs folder
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Currently the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." keeps showing up at the top of every page and none of the tracking info is showing up on the order pages or when I enter edit orders and I am no longer getting any DeBug files in my logs folder
This is what I keep seeing now
Attachment 19624
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay, I forgot to turn the TyP "Ty Package Tracker Module Switch" on
That is now set to True and I am now seeing the tracking info in "Edit Order" but not in the regular "Order" screen
I am continuing to see the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." header at the top of every page
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay, I forgot to turn the TyP "Ty Package Tracker Module Switch" on
That is now set to True and I am now seeing the tracking info in "Edit Order" but not in the regular "Order" screen
I am continuing to see the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." header at the top of every page
In addition to the above, when I click on a link in the Edit Order window it is adding the word "TARGET" to the end of the tracking number when it takes me to the link. In this case it is the USPS page. Of course that then causes USPS to state that no such tracking number exists.
Attachment 19625
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
In addition to the above, when I click on a link in the Edit Order window it is adding the word "TARGET" to the end of the tracking number when it takes me to the link. In this case it is the USPS page. Of course that then causes USPS to state that no such tracking number exists.
Attachment 19625
What version of EO is in use? Note that current (i.e. < v4.6.0) versions of EO still include the TyPT processing.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
In addition to the above, when I click on a link in the Edit Order window it is adding the word "TARGET" to the end of the tracking number when it takes me to the link. In this case it is the USPS page. Of course that then causes USPS to state that no such tracking number exists.
Attachment 19625
Found it (arggh). In /admin/includes/classes/observers/TyPackageAdminObserver.php, towards the end of the file, find
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . ' target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');
and add the missing closing double-quote:
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');
See also this (https://github.com/lat9/zen_TyPackageTracker/issues/7) GitHub issue for tracking.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Noting, too, that there's a fair amount of cleanup needed when upgrading from a previous version. See this (https://github.com/lat9/zen_TyPackag...ding_to_400.md) documentation for additional information.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
I did all of the cleanup as stated in the link previously so that shouldn't be an issue
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
What version of EO is in use? Note that current (i.e. < v4.6.0) versions of EO still include the TyPT processing.
I have the most recent 4.5.7 available in the plugin section.
Where do I get 4.6.0?