Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Having done a D6 to D7 upgrade there are no longer any formatters listed and they are still in the formatters table.....any ideas what the issue might be?
Comment | File | Size | Author |
---|---|---|---|
#2 | all_formatters_vanished-2207687-2.patch | 1.53 KB | t0xicCode |
Comments
Comment #1
chunty CreditAttribution: chunty commentedI have no idea if doing this is a good move.....I'm probably about to find out but a bit of debugging has revealed the issue appears to be that the "mode" options have changed and the fields types are no-longer stored serialized so I wrote a quick update script which got all my formatters back.....now to find out if they still work!
Stick the following in a file in your drupal root and run it:
Comment #2
t0xicCode CreditAttribution: t0xicCode commentedI've updated your code and added it to the 7000 update hook, which is automatically run when doing a d6 to d7 upgrade.
The patch is git aware and should apply cleanly with
git am
.Comment #3
Deciphered CreditAttribution: Deciphered commentedEven if I add this upgrade path, the engines aren't compatible (IIRC) and as such it makes little sense to have an upgrade path at all. Instead, it makes more sense to enforce re-creation of formatters.
I'm postponing this for the moment but will re-visit and make my final verdict after 7.x-2.3 is released.
Comment #4
chunty CreditAttribution: chunty commentedFor what its worth. I get your point about needing to the re-create them and I after I ran my code I did have to revisit every formatter and modify it. BUT....From a developer point of view it was much simpler to have a list of them there that needed modifying than to try and remember what I had in place and re-create them.
Ta
Chris