If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [NOT A BUG] editing products in admin warnings

[NOT A BUG] editing products in admin warnings

Locked

Started by delia on 22 Jul 2024, 9:21 PM · Views: 1,202

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
22 Jul 2024, 9:21 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

[NOT A BUG] editing products in admin warnings

v.2.0.1 php 8.2.2, no admin mods. editing a product only. I haven't added one yet.

22-Jul-2024 21:01:40 UTC] Request URI: /zenmin/index.php?cmd=product&cPath=783&pID=11184&action=update_product, IP address: 74.75.98.105, Language id 1
#0 /zenmin/includes/modules/update_product.php(51): zen_debug_error_handler()
#1 /zenmin/product.php(38): require('/home/xxxxx/...')
#2 /zenmin/index.php(16): require('/home/xxxxx/...')
--> PHP Warning: Undefined array key "products_weight" in /zenmin/includes/modules/update_product.php on line 51.

[22-Jul-2024 21:01:40 UTC] Request URI: /zenmin/index.php?cmd=product&cPath=783&pID=11184&action=update_product, IP address: 74.75.98.105, Language id 1
#0 /zenmin/includes/modules/update_product.php(52): zen_debug_error_handler()
#1 /zenmin/product.php(38): require('/home/xxxxxx/...')
#2 /zenmin/index.php(16): require('/home/xxxxx/...')
--> PHP Warning: Undefined array key "products_length" in /zenmin/includes/modules/update_product.php on line 52.

[22-Jul-2024 21:01:40 UTC] Request URI: /zenmin/index.php?cmd=product&cPath=783&pID=11184&action=update_product, IP address: 74.75.98.105, Language id 1
#0 /zenmin/includes/modules/update_product.php(53): zen_debug_error_handler()
#1 /zenmin/product.php(38): require('/home/xxxxxx/...')
#2 /zenmin/index.php(16): require('/home/xxxxxx/...')
--> PHP Warning: Undefined array key "products_width" in /zenmin/includes/modules/update_product.php on line 53.

[22-Jul-2024 21:01:40 UTC] Request URI: /zenmin/index.php?cmd=product&cPath=783&pID=11184&action=update_product, IP address: 74.75.98.105, Language id 1
#0 /zenmin/includes/modules/update_product.php(54): zen_debug_error_handler()
#1 /zenmin/product.php(38): require('/home/xxxxxx/...')
#2 /zenmin/index.php(16): require('/home/xxxxx/...')
--> PHP Warning: Undefined array key "products_height" in /zenmin/includes/modules/update_product.php on line 54.

[22-Jul-2024 21:01:40 UTC] Request URI: /zenmin/index.php?cmd=product&cPath=783&pID=11184&action=update_product, IP address: 74.75.98.105, Language id 1
#0 /zenmin/includes/modules/update_product.php(70): zen_debug_error_handler()
#1 /zenmin/product.php(38): require('/home/xxxxxx/...')
#2 /zenmin/index.php(16): require('/home/xxxxxx/...')
--> PHP Warning: Undefined array key "products_sort_order" in /zenmin/includes/modules/update_product.php on line 70.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

22 Jul 2024, 9:52 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: [NOT A BUG] editing products in admin warnings

Could you supply a screenshot of the (presumed upgraded) site's database's products-table schema?

23 Jul 2024, 10:49 AM
#3
swguy avatar

swguy

Administrator

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

Re: [NOT A BUG] editing products in admin warnings

Fixed by @lat9 in https://github.com/zencart/zencart/pull/6612.

Thanks for reporting.

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.

23 Jul 2024, 11:39 AM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: [NOT A BUG] editing products in admin warnings

swguy:

Fixed by @lat9 in https://github.com/zencart/zencart/pull/6612.

Thanks for reporting.
Actually, that PR corrects the *addition *of a product, not an update. I was unable to reproduce @delia's issue when *updating *a product; thus my question to her.

23 Jul 2024, 11:47 AM
#5
swguy avatar

swguy

Administrator

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

Re: [NOT A BUG] editing products in admin warnings

I misread

... editing a product only. I haven't added one yet.

as meaning editing a new product up to the preview stage. Looking at the URL again, your interpretation was correct.

I can't repro an update issue in 2.0.1 (or in master).

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.

23 Jul 2024, 2:38 PM
#6
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [NOT A BUG] editing products in admin warnings

lat9:

Could you supply a screenshot of the (presumed upgraded) site's database's products-table schema?

ick, well I did look and compare and the only real difference between the default database and this upgraded one was the utf8mb4_general_ci vs utf8mb3 on a few rows.

Uh, and that fix? I don't even see a file named Product.php - looked at the original download package for 2.0.1. Wut?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

23 Jul 2024, 4:14 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: [NOT A BUG] editing products in admin warnings

delia:

ick, well I did look and compare and the only real difference between the default database and this upgraded one was the utf8mb4_general_ci vs utf8mb3 on a few rows.

Uh, and that fix? I don't even see a file named Product.php - looked at the original download package for 2.0.1. Wut?
/includes/classes/Product.php is added for zc210.

23 Jul 2024, 5:25 PM
#8
swguy avatar

swguy

Administrator

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

Re: [NOT A BUG] editing products in admin warnings

Uh, and that fix? I don't even see a file named Product.php - looked at the original download package for 2.0.1. Wut?

The fix is for 2.1.0. I can't repro anything like the issue you are reporting in 2.0.1.

Possible root cause: you should not have a copy of admin/includes/modules/product/collect_info.php - did you copy an old customized one in there?
Or are you using a different product type than "1"?

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.

25 Jul 2024, 2:24 PM
#9
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [NOT A BUG] editing products in admin warnings

I started a new admin folder to make sure I did not bring issues with the upgrade. All issues went away! Thanks everyone!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo