A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi!
So, I've just migrated Commerce from 8.15 to 9.17 and I encountered a problem. I use blocks that contain a content reference to a certain product (ProductContent). After migration, this content reference property is always null when fetching the block via IContentLoader.
Investigation step #1 - the database: I found the block and all its data. It still has a content reference to the product - 1693167__CatalogContent.
Investigation step #2 - IContentLoader: I try to fetch IContent based on the content reference
It actually returns the correct product content.
Investigation step #3 - trying to understand: I try to fetch the content via version repository (by the way, the content references work id is 0)
Investigation step #4 - trying everything: I try to resave the block and re-set the content reference.
After this, the blocks content reference is no longer null. So resaving and re-setting the product content reference solves the issue.
Have I missed a step in the migration? Am I in any way using the wrong content provider?