Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
dsc7050
***we some issue with this plug.
ZC200
MySQL 8.0.32
PHP Version 8.3
**it's give us php warning.
(--> PHP Warning: Constant BOX_CONFIGURATION_TY_PACKAGE_TRACKER already defined in /homepages/29/xxxxx/htdocs/xxxx/myAdmin/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 31.)
Use your admin's Tools :: Developers Tool Kit and search for BOX_CONFIGURATION_TY_PACKAGE_TRACKER in the bottom search form, in "All Files Admin". The only file that defines that constant should be the one you identified (admin/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php).
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Some odd behaviors in Ty 4.1.0 with ZC 2.0.1/PHP8.2:
- The admin/includes/init_includes/init_typt_config.php keeps reporting successful installation on every page load.
- In admin/includes/classes/observers/TyPackageTrackerAdminObserver.php, when the constructor fires, TY_TRACKER_VERSION is not yet defined, so the fields weren't appearing.
I dug in and found that TY_TRACKER_VERSION was created in the database with a trailing space ("TY_TRACKER_VERSION "). Once I fixed that, all was well.
If you have an old database, this might have happened to you too.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
v5.0.0 of Ty Package Tracker is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
This version requires Zen Cart 2.1.0 or later for proper operation. For integration with Edit Orders, v5.0.0 or later of EO is required.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Congratulations on shipping a new version of this very important plugin! Great news.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Upgrading 1.5.7d to 2.1.0 using PHP8.3
Older ZC had TY version 4.0.0 and was not encapsulated.
Database update completed.
When I try to use the plugin manager to install the TY 5.0.0, I get the following error at the top of the page.
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 5.
I missed it at first as the error was scrolled off the top of the page.
I did not see any specific steps suggested in the 5.0.0 readme about removing 4.0.0 but I did notice and earlier thread that mentioned removing old DB tables/fields.
Some testing suggested there might be a stray ',' in four places. The firs of which is line 33 of the ScriptedInstaller.php
Code:
('Package Tracking - Carrier 1 Status', 'CARRIER_STATUS_1', 'True', 'Enable Tracking for Carrier 1<br><br>Set to false if you do NOT want Carrier 1 to be displayed on Admin and Customer page.', $cgi, 90, now(), NULL, 'zen_cfg_select_option([\'True\', \'False\'],'),
When I tried deleting that, I got the same error so, obviously, I am lost once again.
I'm not receiving any display logs and the only log file is from the zcinstall which was just saying it was unable to drop tables that were not there.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
dbltoe
Upgrading 1.5.7d to 2.1.0 using PHP8.3
Older ZC had TY version 4.0.0 and was not encapsulated.
Database update completed.
When I try to use the plugin manager to install the TY 5.0.0, I get the following error at the top of the page.
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 5.
I missed it at first as the error was scrolled off the top of the page.
I did not see any specific steps suggested in the 5.0.0 readme about removing 4.0.0 but I did notice and earlier thread that mentioned removing old DB tables/fields.
Some testing suggested there might be a stray ',' in four places. The firs of which is line 33 of the ScriptedInstaller.php
Code:
('Package Tracking - Carrier 1 Status', 'CARRIER_STATUS_1', 'True', 'Enable Tracking for Carrier 1<br><br>Set to false if you do NOT want Carrier 1 to be displayed on Admin and Customer page.', $cgi, 90, now(), NULL, 'zen_cfg_select_option([\'True\', \'False\'],'),
When I tried deleting that, I got the same error so, obviously, I am lost once again.
I'm not receiving any display logs and the only log file is from the zcinstall which was just saying it was unable to drop tables that were not there.
Try making the following change:
https://github.com/lat9/zen_TyPackag...5f1aabadafd97f
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Worked perfect.:flex:
THANX. I normally look for GitHub changes on mods when doing major upgrades but didn't this time.
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
v5.0.1 of Ty Package Tracker is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
This release corrects these GitHub issues:
#16: Install crashes when upgrading from a previous version.
#19: Update configuration description typos.