Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    104
    Plugin Contributions
    0

    Default Can't delete certain product

    I have a product which dan't be deleted.
    The main category is unchangeable set to "0".
    The product has an ID (993) but when trying to delete there's no ID shown (and no category ID, too).

    I tried to duplicate, move, link, link with the multi link manager.
    But at last nothing worked. Is there an approach how to get that fixed?

    There's a log for it:

    Code:
    27-Aug-2023 16:52:35 Europe/Berlin] Request URI: /admin/index.php?cmd=category_product_listing&cPath=0&product_type=1&pID=993&action=delete_product&page=1, IP address: 2a02:8108:94c0:27a0:ca0e:8f2c:9a91:cf08, Language id 43
    #1 require(/admin/includes/modules/delete_product.php) called at [/admin/category_product_listing.php:1102]
    #2 require(/admin/category_product_listing.php) called at [/admin/index.php:18]
    --> PHP Warning: Undefined variable $pInfo in /admin/includes/modules/delete_product.php on line 15.
    
    [27-Aug-2023 16:52:35 Europe/Berlin] Request URI: /admin/index.php?cmd=category_product_listing&cPath=0&product_type=1&pID=993&action=delete_product&page=1, IP address: 2a02:8108:94c0:27a0:ca0e:8f2c:9a91:cf08, Language id 43
    #1 require(/admin/includes/modules/delete_product.php) called at [/admin/category_product_listing.php:1102]
    #2 require(/admin/category_product_listing.php) called at [/admin/index.php:18]
    --> PHP Warning: Attempt to read property "products_id" on null in /admin/includes/modules/delete_product.php on line 15.
    HTML Code:
    [27-Aug-2023 16:46:46 Europe/Berlin] Request URI: /admin/index.php?cmd=category_product_listing&action=delete_product_confirm&product_type=1&cPath=0&page=0, IP address: 2a02:8108:94c0:27a0:ca0e:8f2c:9a91:cf08, Language id 43
    #1 zen_remove_product() called at [/admin/includes/modules/delete_product_confirm.php:50]
    #2 require(/admin/includes/modules/delete_product_confirm.php) called at [/admin/category_product_listing.php:273]
    #3 require(/admin/category_product_listing.php) called at [/admin/index.php:18]
    --> PHP Warning: Undefined array key "products_image" in /admin/includes/functions/general.php on line 1308.
    Last edited by Shop Suey; 27 Aug 2023 at 03:59 PM.

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,591
    Plugin Contributions
    30

    Default Re: Can't delete certain product

    Check in the products table that the master_categories_id is set to something non-zero.
    Check in the products_to_categories table that there is an entry for the same something non-zero, if not, add it manually.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    104
    Plugin Contributions
    0

    Default Re: Can't delete certain product

    thanks!
    works like a charm

 

 

Similar Threads

  1. Disable "DELETE" - Make certain admin users not able to delete orders
    By vetpro in forum Managing Customers and Orders
    Replies: 0
    Last Post: 12 Nov 2011, 02:01 PM
  2. Can't delete products in cart with delete button
    By DaveS in forum General Questions
    Replies: 4
    Last Post: 20 Sep 2009, 09:54 PM
  3. Can I allow certain users to have access to only certain categories?
    By bparker in forum Customization from the Admin
    Replies: 2
    Last Post: 8 Sep 2009, 08:41 PM
  4. Mass delete certain images?
    By Kenichi in forum General Questions
    Replies: 3
    Last Post: 19 Aug 2009, 12:58 AM
  5. Can I delete olf product pictures
    By MCanes in forum General Questions
    Replies: 1
    Last Post: 29 Mar 2008, 07:59 AM

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