Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,360
    Plugin Contributions
    23

    Default [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

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: editing products in admin warnings

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

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,304
    Plugin Contributions
    125

    Default Re: 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.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: editing products in admin warnings

    Quote Originally Posted by swguy View Post
    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,304
    Plugin Contributions
    125

    Default 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).
    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.

  6. #6
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,360
    Plugin Contributions
    23

    Default Re: editing products in admin warnings

    Quote Originally Posted by lat9 View Post
    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

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: editing products in admin warnings

    Quote Originally Posted by delia View Post
    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.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,304
    Plugin Contributions
    125

    Default 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"?
    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.

  9. #9
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,360
    Plugin Contributions
    23

    Default 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!
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

 

 

Similar Threads

  1. v155 [Not a bug] best viewed products bug
    By mespe in forum Bug Reports
    Replies: 3
    Last Post: 12 Oct 2016, 01:29 AM
  2. Replies: 5
    Last Post: 17 Apr 2014, 12:10 AM
  3. Getting security warnings when editing in admin area
    By Janastrn in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Jul 2009, 07:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR