This attachment is hidden for guests.
Please log in or register to see it.
This attachment is hidden for guests.
Please log in or register to see it.
Database error after category CSV import (6.6.0) + product import by namekey
Hello,
We updated to HikaShop 6.6.0 and used the new Products → Categories → Import, then Products → Import. The category tree and products appeared, but the shop now reports a database problem when working with products.
What we imported
Categories: CSV, UTF-8 with BOM, comma-separated, quoted fields:
category_name,category_namekey,category_parent_id
category_name — display name (may repeat, e.g. two “Hamsa”, two “Keychains”).
category_namekey — our stable keys, hlb_{id}.
category_parent_id — parent namekey (empty for top-level).
Products: our usual product CSV (semicolon, UTF-8 BOM). Column categories contains the namekey (hlb_12), not the display name. “Create missing categories” was off. Update by product_code was on.
We had previously imported the same catalog with the old product importer (duplicate leaf names all landed under Judaica). Those products and that tree were deleted before this 6.6.0 import.
Possible clue from our side
One earlier category export mistakenly had the literal string None in category_namekey / category_parent_id for several rows (Judaica, Christianity, Magnets, and children pointing at parent None). If that file was imported even once, several rows would share the same namekey None, which should violate uniqueness on #__hikashop_category.category_namekey.
The file that was meant to be used after that had real keys only (hlb_6, hlb_15, …), no None.
What we need
The exact error message, and if possible the SQL / stack trace (PHP error, SQLSTATE).
Whether #__hikashop_category has duplicate category_namekey values, or broken nested-set columns (category_left / category_right).
Whether this is a known issue in 6.6.0 after Categories → Import followed by a product import that assigns categories by namekey.
We can send both CSV files if useful.
Thank you,