I recently created a new content type called Action Item and enabled permissions for admin users to create it. However, even after emptying the cache using the devel module and visiting the menu page, the admin menu module still has not updated the Add ... list under Content Management -> Content. What can I do to force it to update that list? It should have shown up there automatically, especially after two days. ;-)
| Comment | File | Size | Author |
|---|---|---|---|
| #28 | contenttype.png | 71.13 KB | dibya |
| #28 | contenttype2.png | 22.47 KB | dibya |
| #21 | admin_menu-DRUPAL-5--2.missing-content-types.patch | 801 bytes | sun |
| #9 | admin_menu-DRUPAL-5--2.create-content.patch | 740 bytes | sun |
| #7 | admin_menu_bug.jpg | 83.62 KB | seanr |
Comments
Comment #1
sunIf you (temporarily?) enable the Navigation menu, does the menu item appear there below Create content?
Comment #2
seanrThe navigation menu has been enabled the entire time and Action Item does appear under Create Content.
Comment #3
sunIs this issue really related to 5.x-2.x? Sounds more like 6.x for me.
Comment #4
seanrIt is 5.x. We're not currently using 6.x in production due to lack of support for many critical modules.
Comment #5
spoit commentedI solved this issue by enabling the 'display drupal links' access right. Disabling it made the newly added content types disappear again so it needs to stay enabled for me.
Prior to this I disabled, uninstalled en enabled the module but this had no effect
Comment #6
seanrI have that permission set and it makes no difference. Is there some way to force admin_menu to rebuild its menus? I have the normal navigation menu disabled on most of my sites, so this means I've got no easy way to get to the add page for the new content type. Please help me out here.
Comment #7
seanrBTW, here's a screenshot showing that the new type ('Person') does show under content types, but not under content.
Comment #8
seanrThis is bizarre - completely removing admin_menu (including associated data) and reinstalling it STILL failed to pick up that menu item. What gives? I've checked permissions, emptied the cache, etc. Nothing works.
Comment #9
sunThere are only two possible reasons for this:
a) The HTML markup is simply hi-jacked, so the item is actually there, but your browser removes it from the rendered output, because of malformed HTML. To check this, please post the resulting HTML markup of the "Create content" list. Please do not forget to use <code> tags.
b) You have a node access module installed, which somehow improperly sets access for this menu item - or another module that alters the menu tree improperly. Maybe attached patch helps.
Comment #10
seanrOK, this is getting even weirder - I added a type called Award Recipient and that one shows up but Person stil doesn't. What th f***???? Here's the source code of the list:
It was all on one line - I reformatted it by hand to make it more readable.
I am not running any node access modules.
Comment #11
seanrHere's a thought - Person is the only content type I have which uses auto_nodetitle to hide the title field on the node/add and node/*/edit forms. Could that be causing a conflict? I need it to combine first and last names into a single title field so I can sort them properly (ascending by last name, then by first name).
Comment #12
sunSeriously, I have no idea how this can happen. Of course, any available content-type should show up in those links. Did you already test the patch?
Also, I hope you are not meaning and referring to http://drupal.org/project/person ...
Comment #13
sunI've tried to debug this in the last hours, but without success.
Long story short: Custom content-types defined by other modules (than node.module or CCK) have to implement proper access permissions and a required hook_node_form().
If they do not, a content-type is actually not editable and cannot be used to creat nodes.
Did you test the patch in the meanwhile?
Also, please elaborate whether the affected content-types have been created via CCK or by another module.
Lastly, please try whether upgrading to the current development snapshot changes something.
Comment #14
seanrThe patch did nothing. This is a CCK content type I created - I'd never even heard of the person module. LOL
Comment #15
seanrI did a little debugging: if I add dsm($item['title']); after line 308 in that same function, I see all of my content types. If I put it after line 312, Person is missing. It's getting caught here:
if (!in_array($mid, $_admin_menu[$target_pid]['children'])) {For some reason, it thinks its in the menu, even though it never renders it out. When I print out the menu array (dsm($_admin_menu); after line 52 of the same file), Person only appears in the index - [index] => Array ( [node/add/person] => 108. The problem, though, is that 108 is already used two items before for node/blog/add - why is the same ID getting used twice?
Comment #16
seanrBTW, 108 is the correct mid for node/add/person in my menu - node/add/blog should be 55 according to the menu table in my database, so I have no idea how it's getting 108 too.
Comment #17
seanrThe site I originally had this problem on corrected itself automatically after something like a month, but now I've got it on another one. This is EXTREMELY annoying. The patch sadly didn't do anything. :-(
Comment #18
seanrBTW, the missing content type on the new site is also CCK and does not use auto_nodetitle - it's basically identical to page or story.
Comment #19
seanrI've now got one site with two content types not showing. Is anyone paying attention here? This is extremely frustrating.
Comment #20
seanrUpping the priority as it makes the module unusable for production sites - without enabling the normal navigation menu there's no way to add these content types.
Comment #21
sunAs mentioned before, I am unable to replicate this bug. So I have to rely on your input whether any patch fixes this bug. Here is the next one.
Comment #22
Drupalone commentedI never installed this Modul, but have the same problem. But i think this problem occured after the update from drupal 5 to 6.
Think it is a CCK Problem, but i'm not shure...
Comment #23
sunThis issue is about 5.x-2.x.
Comment #24
fei commentedI just experienced the same issue with a fresh install of Drupal 5.15.
Toggling 'Display Drupal links" did end up fixing my problem. I'm still still tinkering around with the settings for this module, so if I find any other ways of replicating this, I'll post ASAP!
Best of luck,
-FEI
Comment #25
sunSorry, without further information this issue can only be marked as won't fix. Feel free to re-open this issue if you want to provide further information.
Comment #26
GreenSpiderDesign commentedHate to reopen a closed issue thread, but I am experiencing the same sort of behavior now in D6.13 - I first saw this exact same issue with a custom node type of Location. I utlimately resolved that issue by simply disabling the last module I had activated, which happened to be OG Groups. Now today, some three days after that issue, I am seeing the exact same thing on the Core node type for Page, which does not show up in either my Create Content simple menu pull down OR my /Node/Add page listing the content types. This last piece (not showing on the /Node/Add page) is the only variation from what I initially saw in the first issue where I could not add Location. In that situation I DID see the Location content type listed on the /Node/Add page but got an error saying I was not authorized to access the page.
I have even deactivated Ubercart and several other modules to see if this may be a server memory issue (even though my server has 1GB of RAM).
Anyone have any ideas?
Comment #27
n00b0101 commentedJust wanted to mention that this was happening to me as well, but in my case, the node type I created was intended for group posts and because I had Spaces-og enabled, it used the preset content type for groups. Disabling Spaces solved the issue for me...
Comment #28
dibya commentedI hv created several content type using structure-> content type-> add content type but I found that only a few are available at content-> add content. Kindly suggest. Screen shot of th both screen are enclosed.
Comment #29
bergie3000 commentedI ran into this issue today. I created a content type called "Event" and it doesn't show up in the admin menu. I renamed it "Event2" just to see if things were getting hung up on the name, but it didn't help.
My content type does show up in the non-admin menu list of content types and I can go to that list to create an instance of an Event.
I'm using Drupal 6.14 (don't ask).
Comment #30
jmseigneur commentedI solved that kind of issue by ticking all node types in admin/og/og_content_types/admin/ I think those of you in this thread who had this issue and OG enabled should look at this admin/og/og_content_types/admin/ page.
Comment #31
Mod74 commentedI've just come across what I think is a similar problem.
I'd created a News (admin and machine name) content type, and also a News View (and a /news page for the view).
The News content type didn't appear in the Add Content listing. I think maybe Drupal (7.16) got confused by the similar names because when I changed the name (and machine name) of the News content type to 'newsitem' it suddenly appeared in the Add Content list.