By kaimerra on
I just installed a fresh D7, installed the views module, enabled polls, and created a custom content type. When I click add content, it only shows Polls and my custom type; Basic page and Article are missing. When I goto Structure -> content types, all 4 are listed. What could be happening here? I am admin and double checked my permissions, rebuilt permissions and cleared cache. ideas?
Comments
Changing the machine name helps
Hi,
we are playing around wie Drupal 7 and after installing Panels suddenly all our content types did not show up under Content->Add Content. I found out how to bring them back:
Under Structure click on "edit" at one of the content types missing. In the editor there is the top field "Name", where you can enter a name for this content type and the "machine name" is shown. Click on edit of this machine name. Another edit field pops in where you can edit it. Just add something like "_2" and click on save. Now you should see the content type under Content->Add Content.
Hope that helps,
Phillip
Thanks
Changing the machine name of those got them to show up again in the "Add Content" panel. I tried changing them back to their original and they disappeared again. Something wierd is going on, but at least I can use them again. Thanks for the tip.
I think it happened to me when I installed Views or DateTime. I don't have panels installed.
needed to re-enable the menu items
Exact same behavior seen in my D7 install. Discovered that the items for basic page and article had both been marked as disabled (though not by me) in the navigation menu. Re-enabling them under admin/structure/menu/manage/navigation fixed the problem immediately. I also have Views and DateTime installed, but haven't investigated to see if there's any connection.
This solved my problem.
This solved my problem. However, I don't want these links to appear in the navigation menu for non-admin users. Suggestions?
Also, what does the impact of deselecting it from a navigation menu remove it from the admin menu? I see this as a fundamental flaw and the visibility on one menu should not impact the view on another. Is there any workarounds in regards to this issue? I have messed with views, config, and panels and could not find any less of a patchwork solution.
Thanks for the suggestion, though. Glad I can at least see my content types now!
Problem solved
Not sure how the content types were disabled in the navigation menu, but you hit the nail right on the head. All is well in the Kingdom of Dane.
Thank you!
recovered content types
This worked for me as well in 7.12. Not sure what happened. Had been making changes to i18n module but not much else. Also had been modifying permissions.
this worked!
Same thing happened to me and I am not exactly sure what I did to make them disappear. I was able to re-enable them by using the "admin/structure/menu/manage/navigation" tip! Thanks!
Oops...
Thanks for mentioning this, solved it for me.
(and I actually did turn them all off myself...)
Menu enabling resolved for me
I had a similar issue, content types not showing up in the 'add content' workflow, even if they were in the admin content type screen. It was a D7 install nearing the end of development, and I can't reproduce the start of the error yet. The navigation menu links had been disabled for a while, with no effect that I noticed. Re-enabling the add content links in the navigation menu resolved the issue. changing the machine name did not resolve the issue.
We could be looking at different bugs, but not being able to reproduce yet means we are in the dark.
Try menu re-enable first
further to my comment above, if the machine names are different from the menu items, you get further problems. I suggest re-enabling menu items first, then try editing the content type machine names.
Same problem - enabling not issue
I'm having the same problem - also installed Views & Date/Time on D7. I don't want to re-name machine readable name b/c don't want to have issues with menu items. Calendar & Date messed up my D6 site several times - not sure why calendar-type modules are so troublesome. Any other ideas/suggestions?
orig_type?
I have noticed in D6 that when two values of the orig_type field in the node_type table are the same, only one is shown. I do not know if the datamodel for this is the same in D7.
Best regards,
Ed
Enabling not issue
I checked navigation menu settings and the types not appearing were enabled. I disabled one, re-enabled it and still didn't show up to create content. I re-named machine-readable name and they appeared again - problem solved for me, so far.
I noticed that editing the
I noticed that editing the Navigation Menu then caused changes in what content types were showing up when accessing 'Add Content' from other places, such as the Admin menu.
Editing Navigation Menu
Re-enabling each content type in the Navigation menu fixed this for me as well. Thank you. Thought I was going crazy.
Josh Utley, President & CEO
Intrepid Network Inc. | Multimedia Services & Business Solutions
"Our mission is to provide a more personable multimedia service along with the highest quality business solutions."
sub
sub
D7
I've made many content types and has been working up until now. Now I don't see added content types in the add content menu. I get a huge error beginning with:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'description' cannot be null: INSERT INTO {menu_router} (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, delivery_callback, fit, number_parts, context, tab_parent, tab_root, title, title_callback, title_arguments, theme_callback, theme_arguments, type, description, position, weight, include_file)
Out of the blue
They do not appear at all in the menus
Still a problem on 7.9
Just made a fresh installation of D7.9 on a testsite, created one content type (called destination) , created some templates using content as output - after adding some content, the Article (Machine name: article) content type is missing - it is present in the "#overlay=admin/structure/types/manage/article", but when adding new content the option to choose article is missing.
Changing the machinename works - and then ofcourse changing the template filenames, rescan, empty cache etc. - this is not an option on production sites :-(
Regards
DAN
I get a huge PDOException:
I get a huge
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'description' cannot be null: INSERT INTO {menu_router}error when I try to clear the cache after updating to views 7.x-3.0-rc and trying to create a new view attached to a menu item. The views I try to create appear on the preview but not on the menu, and if I try to access the view's url a "page not found" error is all I get.Clearing cache and running cron won't help either
add content = navigation menu
It appears that the content of the 'add content' (article, basic page, book page, etc) is linked to the navigation menu.
We had a customer where 'basic page' was not showing in the 'add content' page.
We reviewed the navigation menu, noticed it was missing from there also and simply added it back .. like so:
1) edit the links of the navigation menu (from the structure menu)
2) click - add link
3) menu title = "Basic Page"
4) Path = "node/add/page"
5) save.
This should fix your problem.
Thanks
The ChilledWeb team
Fixed, Thanks
I had same problem where UC_product type, basic page and article went away.
I used Taxonomy menu and rebuild the menu (option with Warning)
After the links dissapear, they were disabled , after the fix they reappeared.
thanks
Boban_dj
Same problem
I was having this problem too. Originally i though it was caused by the way I exported my database (without caches), but later I found out that the problem was associated with having disabled the 'add content' links on the navigation menu (which seems strange.) Changing the machine name of the content types caused problems with my views. However, reenabling the 'add content' links caused the missing content types to come back.
Same issue here and I've
Same issue here and I've missing menu entries in the Configuration menu too... still searching for a solution
Changes in the Navigation menu causes it
I had this same issue. After adding another content type (in my case I just enabled the book module), all other content types vanished.
It is connected to the Navigation menu. Previously I had dragged all those content types in the menu to level 1, in order that they were directly accessible. When I now made a reset on every one of those links (in the Navigation menu), and they went back to their original places under "Add content", everything went back to normal, and all content types are back.
I'm now simply going to use DHTML menu module, so that while Navigation menu stays the same, I still can access them directly, without visiting the "Add content" list page first..
I also am seeing the same
I also am seeing the same issue. I recently added a couple of content types but links to neither appeared under the 'Add content' menu in the Administration toolbar and a couple of old ones that I'd deleted were still in the menu. Also, the 'Add Content' for some reason moved to under 'Management' rather than under 'Navigation'. This might have been caused by my monkeying around with the Navigation menu (not at all clear on what its role is meant to be) as I was using it as alternate to the Main Menu in the footer. I was able to clean things up by reconfiguring the Navigation and Managements menu manually but now no new content types I add are automatically added to the 'Add Content' menu at all. Fortunately I'm still in prototyping for this particular site so I can reinstall. None of the other two sites I'm developing seem to have this same problem.
Having issues here too
I'm also having issues with this phenomenon after moving all add content links from the default location to a new menu "Create", now some are missing, like Article and Panel.
As another thread mentioned, and I agree, the /node/add and the menus shouldn't be tied together.
I did notice they came back after I'd gone in and edited a link and saved the item and menu forms, but after some time it happened again, unsure if it was because of clearing caches or what.
Fun. Fun.
case cache_menu table was missing
In my case cache_menu table was missing. after creating table
Loaded 7.41, added pictures to page and articles, go missing
Solution was similar to .htaccess recommendations here, with a twist. In my apache site error log got these errors. First,
[Tue Jan 05 14:04:13 2016] [alert] [client 127.0.0.1] /var/www/html/drupal/sites/default/files/.htaccess: Options not allowed here, referer: http://0.0.0.0/drupal/
commented out the Option lines:
# Turn off all options we don't need.
#Options None
#Options +FollowSymLinks
Then got this error,
[Tue Jan 05 13:51:31 2016] [alert] [client 127.0.0.1] /var/www/html/drupal/sites/default/files/.htaccess: php_flag not allowed here, referer: http://0.0.0.0/drupal/?q=node%2F1%2Fedit&render=overlay
at end of file commented out php stuff,
# If we know how to do it safely, disable the PHP engine entirely.
#IfModule mod_php5.c
# php_flag engine off
#/IfModule
WORKED!!!
NOTE: DID NOT have to comment out the Drupal_Security_... stuff!