Need help with switching to the new category icons

AI-generated summary

A user, AquaL1te, is seeking advice on switching to new category icons and regenerating HTML for posts that still use the old style. They initially attempted a rake posts:rebake to update the icons, which worked, but caused issues with URL previews (e.g., CNN articles and YouTube thumbnails not displaying properly). After noticing these problems, they restored a backup and are now waiting for guidance on the correct approach. kris.kotlarek responded that they couldn’t reproduce the issue and confirmed that a rebake worked correctly in their test, including proper preview generation. AquaL1te explains they paused further testing due to the problems and are now focused on getting the right method to update only the category icons without breaking previews.

I’ve switched now to the native category icons, but I need to regenerate the HTML for the topics that still use the old style. Otherwise the icon is just a gray square.

Is a rake posts:rebake fine to run? I have about 8000 posts that would be rebaked, so that’s doable. What do you recommend?

Edit:

I did a rebake, that works! :tada: However, on many posts the URLs aren’t showing the previews. Meaning for example that an article on cnn.com doesn’t show the title of the article. But just the verbatim URL. Also some YouTube thumbnails are not generated. Is there a way to fix this as well?

Second edit: I’ve restored a backup and will wait for an answer to correctly address just the category icons :nerd_face:

Thank you for reporting this bug. I could not reproduce it.

Firstly, when I updated the category to icon, I didn’t need to rebake.

My second test was to force rebake, and the lightbox for CNN and YouTube was generated correctly. I recorded my screen.

Were your steps the same?

I didn’t give it a seconds try. When I saw things were made “worse” I thought, let’s just restore the latest backup and get proper advice on how to correct all category tag icons in posts :slight_smile:

I could try again soon, if this is really a proper way to fix it. At the time I knew I was doing something risky, but I thought it would be worth it. My forum isn’t that popular, I could do some experiments (after backing up of course). One downside I also noticed was that some websites are not available anymore. So the HTML previews would never restore. So ideally I only update categories. But I suppose such a HTML rebake is not possible.