I'm trying to add a new content type. I can create the new type as normal, and it shows up in the content types page. However the links for edit/manage fields/delete all take me back to admin/content. There are old content types that work fine, editing/managing fields, it's only newly created content types.

I found a forum topic talking about the problem, but as I've done more digging I think it would be more appropriate here. The original thread is http://drupal.org/node/1123928.

Here is what I've tried:

  • I updated to latest version of CCK (6x-2.9)
  • updated to latest version of Drupal (6.22)
  • flushed all caches
  • ran update.php
  • tested different names in case I was using a reserved word

I don't know if it is relevant, but we added SSL since the last content type creation.
I also have the content template, and CCK redirection modules installed.

Comments

EmperorForearm’s picture

Category: bug » support
Priority: Normal » Major

I found another topic with a similar issue, but I've already updated as suggested, and found no rogue tpl.php files in the directories. I'm not sure if this issue should be treated as a duplicate, and people directed to the forum as it doesn't appear to be a bug as much as a conflict somewhere.

http://drupal.org/node/630252

This is making it impossible for me to implement new features so I'm also changing the priority.

EmperorForearm’s picture

Priority: Major » Normal

Well, I have found a workaround. It appears there is a conflict with admin menu of all things. After I create a content type I can't work with it, but if I clear and rebuild the admin menu the links work fine and the content type is now usable in every way. This is a workaround not a fix, but I'm at least able to get the content types working and wanted this here for reference if someone else runs into this problem.

GaëlG’s picture

I can confirm this workaround works :D

robin_b’s picture

After creating a new content type, the admin menu should rebuild. The reason the edit link shoot back to admin/content or another page is because that link (actually, that menu entry) does not exist. The content type was correctly created, but the link to edit it wasn't.

Probably a module or a manual code change (to the core) is stopping the menu rebuild. I don't think this has to do with CCK itself.

gswsdrupal’s picture

Issue summary: View changes

I am aware that this thread is old, but we solved this problem by installing and enabling the "Field UI" module.

sparrish26’s picture

After a frustrating morning trying to figure out why this was happening, I fixed it by disabling the Administration Menu Toolbar Style module.