Zen Follower
- Join Date:
- Feb 2017
- Location:
- Tokyo, Japan
- Posts:
- 334
- Plugin Contributions:
- 0
deleting categories sometimes throws error "Undefined variable $skip_sale_id"
Hi all,
While cleaning up a new shop (copy of an old shop) by deleting categories, I occasionally ran into a blank page when deleting a category, and on checking logs, noticed the following errors displayed in such cases:
[10-Jul-2025 23:42:37 Asia/Tokyo] Request URI: /<admin>/index.php?cmd=category_product_listing&action=delete_category_confirm&cPath=, IP address: 192.168.x.x, Language id 1
#0 /<path>/includes/functions/functions_categories.php(1189): zen_debug_error_handler()
#1 /<path>/<admin>/category_product_listing.php(174): zen_remove_category()
#2 /<path>/<admin>/index.php(16): require('...')
--> PHP Warning: Undefined variable $skip_sale_id in /<path>/includes/functions/functions_categories.php on line 1189.
[10-Jul-2025 23:42:37 Asia/Tokyo] Request URI: /<admin>/index.php?cmd=category_product_listing&action=delete_category_confirm&cPath=, IP address: 192.168.x.x, Language id 1
#0 /<path>/includes/functions/functions_categories.php(1189): zen_debug_error_handler()
#1 /<path>/<admin>/category_product_listing.php(174): zen_remove_category()
#2 /<path>/<admin>/index.php(16): require('...')
--> PHP Warning: Undefined variable $skip_sale_id in /<path>/includes/functions/functions_categories.php on line 1189.
```Retrying after a while did manage to delete the category in question, so this is not any kind of blocker.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0