Hello,
I'm new to Drupal, but I've set up a website with Drupal 7, and a few users have registered already.
Yesterday i created a new basic page without problems, but today I can't seem to create anything at all. When I click "add content" Drupal says that I haven't created any content types yet. If I go to structure and content types, all of my content types are listed, and I can edit them, but I simply can't USE them...

I tried to create a new content type with success, and if I then try to add content, this category is automatically chosen. Also, this new type gets listed together with my old types.
The strange thing is that I haven't done any changes to my site after adding that last basic page!
Have anyone got any idea how this could have happened, and how I can fix it? Since users already have registered and I have added lots of content, I don't feel like starting over...

Thanks in advance!
Joakim

Comments

timhilliard’s picture

I dare say your problem lies with incorrect permissions? Are you currently logged in as an administrative user or are you logged in with some other role? Administrative users gain all permissions by default, however permissions must be set for other role types. This can be found at /admin/people/permissions. In there you need to set the <content type>: Create new content permission for each role to be able to create content of that type.

If that doesn't fix the problem let me know and we can work on this some more. Conversely you can find me on the #drupal irc and I can give you some more help there.

Cheers,
Tim

foroysund’s picture

Thanks, Tim!
I've created a role called "webmaster", with all privileges set (I've checked all boxes in the webmaster column in the permissions tab), and assigned this role to an account I also called "webmaster". I can't use the content types that already exist even if I'm logged in as this user. The funny thing is that I used the very same account to create a new basic page just a few hours before I got this problem. After creating that page I didn't do anything other than log out and back in again a few hours later.
Also, as I mentioned before, I'm able to create and use new types with my webmaster account, and I can modify or delete the old ones.
I guess I could simply create new ones and just let the old ones sit there, but I hope this can be fixed instead. -More tidy that way :-)

Thanks again,
Joakim

Edit:
I've just found that I can create new pages and articles by browsing directly to /node/add/article or /node/add/page. Also, my forum works as normal. New threads can be started as normal and everything, so it's just that "add new content"-function that doesn't work. Seems like there's a link missing there... Any suggestions?

cjohndesign’s picture

hey brother,

I went in and added all the permissions and it still doesn't come up in the add content field. any more ideas?

Thanks

Chris

timhilliard’s picture

Flush the cache?

rachelexodus’s picture

I'm having the same issue on a client's site. All the sudden, clicking on "Add Content" says there are no content types, but in Content Types (under Structure) both Page and Article are listed. Going to node/add/page looks like it gives me a new page, but my WYSIWYG module isn't working on the new page. Tried flushing cache- doesn't work. Permissions are all set, and I'm the only administrator. I'm thinking this is a bug.

Kman2123’s picture

I am having the same problem! Does anyone know fix? I'm running 7.6

bajah’s picture

Im trying to create a new content type but when i click on the add content type link i get this error.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT nt.* FROM {node_type} nt WHERE (disabled = :db_condition_placeholder_0) ORDER BY nt.type ASC; Array ( [:db_condition_placeholder_0] => 0 ) in _node_types_build() (line 703 of /opt/lampp/htdocs/drupal-7.7/modules/node/node.module).

Presently im running drupal 7.7
How do i correct this?

janyan’s picture

bajah, I am experiencing exactly the same symptoms. Were you ever able to fix this?

nii antiaye’s picture

I am also having exact problem . Cant find my content types.

leroyg’s picture

Hi Guys I'm having this problem, added a content type called News, set the permissions, the content type appears in the content type list, but when I select add content, there's only Article and Basic page, I've also flushed the caches. does anyone have any suggestions,tips, advice, help or a "Hammer"

Thanks Guys
DM

c13303’s picture

same here. I was working well, everything was allright and suddenly, all I have when I do add content is "You have not created any content types yet. Go to the content type creation page to add a new content type."

All I had was "Basic page" and "Articles"

I only have one "Basic page", that is still here.

I tried to create a new content type, called "Page" and it says there is already such a name for a content type.

Totally weird. Looks like a big bug.

c13303’s picture

Found

For me, it was because I disabled it in the menu configuration. (to Drupal so, disabling the option in the menu = disabling the content type for the whole site somehow)

Durky Duur’s picture

i AM So Amazed of how much time I have WASTED using Drupal!!!!!

I can NEVER seem to get ANYTHING done fixing stupid stuff like this!!!! I'm having the same issues. Why is it, these content types are working, then all of a sudden they are not? Lots of content types, then add new content and NOTHING!!

Geezzee Drupal What is going on here? Crap CMS!

muskratboy’s picture

In Admin > Structure > Menus if you disable the "Add content" sub-listings, Drupal won't let you see them when you go to create content.

You can leave "Add content" itself disabled so it won't show up in your menu, but you must enable its contents.

harisrozak’s picture

Thanks!, its working now!

photosnclips’s picture

THANKS A BOUCH!!! really help me there.. was this close to do a clean re-install..

Thank you from a fellow drupal user from Sweden.

Anny Wonder’s picture

I was stuck too. I appreciate your post on this issue.

mobil_maniak’s picture

you are awesome.

these must be allowed:
Admin > Structure > Menus > Navigation > Add content
Admin > Structure > Menus > Navigation > Add content > ...

dwork’s picture

The navigation >> Add content link was appearing for guests, so I disabled it. Obviously, it also stopped showing up in my admin menu. So, the correct resolution was to move "Add Content" and its subitems to the Management menu. Now it shows up correctly for my admins, but not for my guests. Thanks for posting this thread, it helped.

er.pushpinderrana’s picture

Good Caught! Thanks @muskratboy

Pushpinder Rana #pushpinderdrupal
Acquia Certified Drupal Expert

CD’s picture

Thanks, you've just saved me a complete re install to try to fix the bug!!!

RahulG’s picture

the full content not load on clicking add content or edit content

zap-admin’s picture

I had this same problem while developing a new site very similar to one I had just launched, but I couldn't get "add content" to appear under the "content" button in the admin menu. Been messing with it off and on for the last day or so. Anyway, if you have admin menu installed and you can't get the New Content drop down to appear you just need to go to "Structure", then "menus", then "navigation". If you've been having the same operator error issue I was, that everyone here commented on you notice when you get to the navigation interface there are no checkmarks for "enabled" next to all the items in the navigation menu. I'm in awe that after working in Drupal for a good 5 years or so now I run into idiot moments like this, but after enough experience you start figuring out how to ask the right questions to lead to the right answers.

Thank you very much to the guy/gal who posted the answer a good 3 years ago now. Just thought I'd add this info incase someone ran into the same issues, as there are a couple more words that could be keyed off of from my post.

Take care
Zap

iainH’s picture

You took the words out of my mouth. After all this time I got caught out too. Can't explain how the particular content type got disabled in the Add Content submenu ...

tsssystems’s picture

My client emails me at 11:30 pm on a Sunday night and can't see anything under "Add content" - just the message "You have not created any content types yet. Go to the content type creation page to add a new content type." Yet under Structure » Content types all the content types appear. So it turns out it's not an issue with permissions (all are as they've been for months now) or the content types not being "enabled" (they were all enabled).

It's because suddenly all the content types are listed in Structure » Menus » Navigation and have the parent link as "Navigation" instead of being listed under "Add content" in the "User menu". You can only find this by editing the menu link itself under Home » Administration » Structure » Menus » Navigation (that's where I found them) and clicking on "edit" in the "Operations" column. This is kind of a PITA when the site has many content types, as each has to be edited manually.

Could it be that this happened as part of the Views 7.x-3.10 update which I did a few days ago? That's the only thing that's changed since the last time content was added last week. Very curious...

Tashko’s picture

Thank you this was exactly my problem. It was a moderate irritation that periodically I would try to fix before giving up.   Now it is fixed. Thanks