crosspost: https://orchard.codeplex.com/discussions/484033
I'm migrating from Orchard CMS 1.6 to 1.7.2. To give some background, I've hurdled a prior issue before migrating terms in taxonomies by updating the tables:
UPDATE Contrib_Taxonomies_TermPartRecord
SET Path = '/' + Path
WHERE Path NOT LIKE '/%'
UPDATE Contrib_Taxonomies_TermPartRecord
SET Path = '/'
WHERE Path IS NULL
So I've got some content types which have some taxonomies associated to them.
Worst part is that no errors are thrown or logged, even in debug mode.
Anyone have any ideas or leads? Has anyone encountered similar behavior before?
Thanks!
This issue has already been raised here.
I think the Taxonomy module used in version 1.7.2 has an extra linkage between the Container (Taxonomy) and the Term but wasn't implemented properly during the migration of older versions.
The broken linkage caused an infinite loop (please refer to the hyperlink above) when publishing a content item containing the affected term (I didn't encounter any problem saving it, only when publishing).
The linkage can be fixed easily by running the SQL statement below against the database:
UPDATE
Common_CommonPartRecord
SET
Container_Id = Orchard_Taxonomies_TermPartRecord.TaxonomyId
FROM
Common_CommonPartRecord
INNER JOIN Orchard_Taxonomies_TermPartRecord ON
Common_CommonPartRecord.Id = Orchard_Taxonomies_TermPartRecord.Id
The SQL statement will take the TaxonomyId from the table Orchard_Taxonomies_TermPartRecord and fill it into *Container_id* of the table Common_CommonPartRecord
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With