I am doing some work on a site that has a lot of custom content types. I should mention that a lot of modules are outdated as is core. A couple years outdated. Anyway, I was working on trying to get TinyMCE to show up on CCK fields and it wasn't working so I had the brilliant idea that I should update CCK before struggling with it further. Tried to go from 5.x-1.06 to 5.x-1.10. Got a bunch of errors and the main home page content (which is a View of a custom content type) disappeared so I got scared and reverted back to 1.06 which brought back the home page content but now all the custom content types are not available for editing. If you try to type their path directly you end up at admin/content/types and see a list of standard content types but none of the custom ones. The content itself is still there and it still appears in Views lists, however, when you click through to the node, only the default fields (title, body) show, none of the content in the custom fields is visible. When I look in phpMyAdmin, I can see all the content types and their fields with all the data so I know I haven't lost anything. I would like to know if there is something I can do to turn these types back on again?
I feel a bit silly asking for help on a site that is sadly out of date but since this particular site is so out of date, it's going to take a bit to get it current. Would be wonderful if I could get these types turned back on so the site is functional in the meantime.
In any case, I have learned an important lesson the hard way - always insist that sites I work on be kept up to date. Reminds me of a mechanic I used to know. He would charge super reasonable rates for mechanical work but if you brought your cruiser in dirty he would charge double his hourly rate to wash it before he would get started.
Thanks in advance to all who've tuned in.
Comments
Comment #1
jenniferannwalsh commentedSo, is there no way to turn back on these content types and their associated fields? I see all the data in the database I just don't know how to activate it. Help much appreciated.
Comment #2
jenniferannwalsh commentedMade some progress. I could see the data was there so I just went and added back in the Content Types with the same names as previously and they repopulated with their respective fields. Most are displaying correctly now with two exceptions: the galleries and the videos. Take the galleries for example, I can see there is content in the database but it is not displaying in the view of the page nor on the edit page. With other fields the content came back after I added the content type back in. Here is a gallery page that is not displaying images: http://www.52perfectdays.com/galleries/oahus-north-shore-shrimp-trucks
Good to have made some progress on this, however, the image galleries are a very important component of the site so there is still a ways to go.
Comment #3
jenniferannwalsh commentedI'm wondering if I've posted this in the right place? Should this be in a more general forum?
I set up a test site and updated all the modules and core to see if that would help. It didn't.
Here's a recap: I tried to update CCK, it threw a whole bunch of errors so I reverted to the previous version. When I did so, all the custom content types were gone. I looked in the db and the tables were still there. So I just added in new content types with the same names and almost everything came back. Everything except the main articles are no longer showing their images. These are uploaded using CCK/Imagefield. I can see that the field's table is still in the db and there is content in there but when I go into edit on an article, they are not there. We can now add new articles with images and those are showing up fine. I have a fully updated version of the site running in sudomain and updating does nothing to help with this issue.
Any help is truly appreciated. This site didn't have proper backups which is, of course, making this way harder than it should be. I have installed Backup & Migrate for them now so going forward there will be backups. Plus I set up the test site. But that doesn't help with the current problem which is to get the images back on the existing articles. There's over a thousand of them and the images were uploaded by users so even though they are in the db re-associating them by hand is not an option.
Thanks!
Comment #4
jenniferannwalsh commentedWell, I fixed this! It was easier than I thought. First I made a test site and updated core and contrib. Then I went into Manage Fields for the appropriate content type and opened and saved the field in question. This fixed the problem on the test site. I then went back to the live site which had not yet been updated and opened and closed the same field. This had no effect so I took the site into maintenance mode and started making updates one by one. I started with contrib modules and worked in reverse alpha order doing one module at a time, running update.php and checking the images each time. After I updated pathauto the images began to work again. It may be pathauto that did it but I've just realized that I left normal caching on in performance while doing the updates so it may have been an earlier update that did the magic.