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.
Hello
People informed me today that all webforms is gone on our site and only display the node title.
Upon inspection I noticed that the content type is missing. Adding the row to drupal_node_type from a backup doesn't help. Now the row is there but the content type is not in the list of content types. If I change the module value from webform to node it appears in the list.
I can't understand how it got deleted since it's not possible to delete it.
I upgraded to 3.6 but no luck there either.
Thanks in advance
Comments
Comment #1
quicksketchIf you upgraded from 2.x recently, the Webform content type may appear to be "gone" until you run update.php. In Webform 2.x, Webform "owned" the "webform" content type. In 3.x, the Node module owns the "webform" content type and it is no longer a special and can be deleted just like any other content type.
If you're running the 3.x branch, make sure that the entry in the node_types table is owned by node module. If using 2.x, it should be owned by webform. After making any changes, be sure to clear your caches at admin/settings/performance.
Comment #2
bof CreditAttribution: bof commentedI solved it. I had to assign the webform content type to the webform module at admin/settings/webform.
Comment #3
bof CreditAttribution: bof commentedComment #5
laamka CreditAttribution: laamka commentedI have the same problem, missing the webform content type, but when I go to settings I don't see it in the list only these: content types
Article
Basic page
Blog entry
Event
Main Slideshow Slide
I used webform with Drupal 6 with no problem
Comment #6
DanChadwick CreditAttribution: DanChadwick commentedYou can create the webform content type yourself if you want. Then do #2. There is an option when upgrading to not create it for you if you.
Comment #7
laamka CreditAttribution: laamka commentedI am not very experienced...how do I get started creating the webform content type myself so that it resembles what I had in Drupal 6? is there a tutorial somewhere?
Comment #8
DanChadwick CreditAttribution: DanChadwick commentedVisit Structure / Content Types / Add content type. Create the content type (calling it webform, if you want). Make sure that you enable webform functionality under the Webform vertical tab at the bottom of the content type form.
Comment #9
laamka CreditAttribution: laamka commentedI think I have it working, thanks!