Repairs OpenCart category hierarchical path mappings. Scans every row in
oc_category, validates oc_category_path depth and ancestry,
rebuilds corrupt chains from the oc_category_path2 backup when paths exceed
twelve levels, and inserts missing terminal self-referencing path rows when the deepest
path_id does not match the category's own category_id.
category_id = 0 rows from oc_category, oc_category_description, oc_category_path, oc_category_to_layout, and oc_category_to_store before scanning begins.oc_category_path2.path_id does not equal the owning category_id.