If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading to 2.x.x / Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

Started by mshultise1 on 21 Nov 2024, 10:44 AM · Views: 1,619

Results 1 to 5 of 5
21 Nov 2024, 10:44 AM
#1
mshultise1 avatar

mshultise1

New Zenner

Join Date:
Oct 2023
Location:
Captain Cook, Hawaii
Posts:
7
Plugin Contributions:
0

Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

Updated to Ver 2.0.1 a while back and now on PHP 8.3. Store owner reported that all of a sudden the site is not charging shipping. I saw there were old UPS and USPS modules and a forum post that they should be deleted, which I did. The Admin shipping page now shows options for the entries. So that is not the issue.

The site owner uses Zones for shipping and those are configured correctly. However when I go into the product configuration, there is no weight shown. I viewed the database entry for these General products and the entries are in the database with a weight. The Admin product config page just won't show it.

I downloaded a fresh copy of 2.0.1 tonight and installed it over the existing site. I still don't see the weight.

21 Nov 2024, 12:07 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

The Admin product config page just won't show it.

Check to see if you have some debug logs in your logs/ folder.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

21 Nov 2024, 4:53 PM
#3
mshultise1 avatar

mshultise1

New Zenner

Join Date:
Oct 2023
Location:
Captain Cook, Hawaii
Posts:
7
Plugin Contributions:
0

Re: Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

I had errors from an old version of Sales Report, so I deleted that version and that reduced the errors to this (which is more readable).

My IP address and Admin directory name have been removed. I changed to a supplied theme. I then clicked EDIT for a product.


[21-Nov-2024 16:56:11 UTC] Request URI: /store/ADMIN/index.php?cmd=product&cPath=1&product_type=1&pID=4&action=new_product, IP address: MY-IP, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /home/www/paradisefoundhawaii.com/store/includes/functions/functions_strings.php(335): preg_replace()
#2 /home/www/paradisefoundhawaii.com/store/ADMIN/includes/functions/html_output.php(138): zen_clean_html()
#3 /home/www/paradisefoundhawaii.com/store/ADMIN/includes/functions/general.php(23): zen_image()
#4 /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php(357): zen_info_image()
#5 /home/www/paradisefoundhawaii.com/store/ADMIN/product.php(111): require('...')
#6 /home/www/paradisefoundhawaii.com/store/ADMIN/index.php(16): require('...')
--> PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/paradisefoundhawaii.com/store/includes/functions/functions_strings.php on line 335.

[21-Nov-2024 16:56:11 UTC] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_IMAGE_DIR" in /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php:383
Stack trace:
#0 /home/www/paradisefoundhawaii.com/store/ADMIN/product.php(111): require()
#1 /home/www/paradisefoundhawaii.com/store/ADMIN/index.php(16): require('...')
#2 {main}
thrown in /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php on line 383

[21-Nov-2024 16:56:11 UTC] Request URI: /store/ADMIN/index.php?cmd=product&cPath=1&product_type=1&pID=4&action=new_product, IP address: MY-IP
--> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_IMAGE_DIR" in /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php:383
Stack trace:
#0 /home/www/paradisefoundhawaii.com/store/ADMIN/product.php(111): require()
#1 /home/www/paradisefoundhawaii.com/store/ADMIN/index.php(16): require('...')
#2 {main}
thrown in /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php on line 383.

[21-Nov-2024 16:56:11 UTC] Request URI: /store/ADMIN/index.php?cmd=product&cPath=1&product_type=1&pID=4&action=new_product, IP address: MY-IP
--> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_PRODUCTS_IMAGE_DIR" in /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php:383
Stack trace:
#0 /home/www/paradisefoundhawaii.com/store/ADMIN/product.php(111): require()
#1 /home/www/paradisefoundhawaii.com/store/ADMIN/index.php(16): require('...')
#2 {main}
thrown in /home/www/paradisefoundhawaii.com/store/ADMIN/includes/modules/product/collect_info.php on line 383.

21 Nov 2024, 5:20 PM
#4
mshultise1 avatar

mshultise1

New Zenner

Join Date:
Oct 2023
Location:
Captain Cook, Hawaii
Posts:
7
Plugin Contributions:
0

Re: Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

Hmmm, I just read about the overrides in the Admin area having to do with products, etc. When I renamed the PRODUCTS/COLLECT_INFO.PHP and the system then got to the new file, I see the additional PACKING SHIPPING DETAILS information in the product information.

I do now see the weight showing up, so I'll go see if I need to remove the old files or make other changes.

22 Nov 2024, 12:08 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Upgraded tp 2.0.1 from 1.5. something a while back, store now does not show weight

If you still had the file includes/modules/product/collect_info.php, that means you installed 2.0.1 on top of your old installation instead of starting fresh.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.