[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.
Re: editing products in admin warnings
Could you supply a screenshot of the (presumed upgraded) site's database's products-table schema?
Re: editing products in admin warnings
Re: editing products in admin warnings
Quote:
Originally Posted by
swguy
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.
Re: 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).
Re: editing products in admin warnings
Quote:
Originally Posted by
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?
Re: editing products in admin warnings
Quote:
Originally Posted by
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.
Re: 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"?
Re: 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!