#927 VirtueMart migrator creates invalid Joomla assets

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

J2Commerce

Version
J2Commerce v6

Latest post by Adam Melcher on Thursday, 06 August 2026 00:04 UTC

Krzysztof Kuznowicz

The com_j2commercemigrator extension migrates VirtueMart products and categories, but some created records in #__content and #__categories receive:

asset_id = 0

The products are visible after migration, but they cannot be edited or saved correctly. Joomla requires every article and category to have a corresponding record in #__assets. Because these records are missing or have an invalid hierarchy, saving migrated content can produce Asset::moveByReference() errors.

The problem required manual database repair: creating the missing assets, correcting their parent_id, lft, rgt and level values, and assigning valid asset IDs back to the migrated articles and categories.

The migrator should create a valid Joomla asset for every migrated product and category and verify that no migrated record remains with asset_id = 0.

Adam Melcher

Krzysztof,

I am looking at it now and should have an update on it shortly.

 

Adam

 

 

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.