By inquirer on
When I click "Add Content," I now see:
"You have not created any content types yet. Go to the content type creation page to add a new content type."
Earlier today I was able to add content via the same area (/node/add) but now all I see is that error message. I've been searching for HOURS for a solution to no avail. It seems that 99% of people who experienced the message found that their Menu --> Navigation Menu settings were unchecked. This is not the culprit for me, as everything is checked, just as it was before.
Can someone offer a method to troubleshoot this issue?
Thanks in advance!!!
Comments
First check you can add the
First check you can add the content types for example from
/node/add/article
(assuming you have a content type 'Article').
If you can add an article that way, you know this is a menu problem (by which I mean a problem with the menu system in the database). There is a major four-year-old Drupal bug which has never been solved AFAIK, but you might find some help for it in the issue on the topic http://drupal.org/node/550254. Just creating a new menu item is a possible workaround, but creating a new menu item in the Admin menu I have found not a stable solution.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
I have found the solution of
I have found the solution of this problem -
Open the node.pages.inc file (you will find this in modules/node directory ). Replace the function node_add_page with the new (I have pasted below)
Thank you!
Parvind, your solution worked perfectly. Thank you so much!
Thanks for sharing that
Thanks for sharing that Parvind. Very interesting.
@inquirer since you are fairly new on the forum I should point out that 'hacking core' is usually a no-no. Anyway the changes will be lost at next update. One alternative way to use Parvind's code (if you are using a non-core theme) is to copy the template file to be changed into your theme folder (wherever the other theme templates are) and modify that copy, which should then automatically override the Drupal core version.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors