The bare issue is that when "Add content" is selected on the "Content" admin page no response is forthcoming. On one occassion, and I have been unable to recreate this, Chrome reported "too many redirects".

The URL displayed in the browser (Chrome) is /#overlay=node/add and on selecting this it simply leaves the "Loading ...." cycling. Earlier add content worked as expected, giving a choice of the available content types. I can still add content, but do so by changing the URL to for example /#overlay=node/add/basic to create a basic page. Between working as expected, and the current behaviour, Add content went to a behaviour of immediately going the page to construct one of the available content types that I had created. That content type was new with no instances on the site, so I deleted that content type ... and the current behaviour ensured. This may have been a mistake ...

Caches have been cleared, permissions rebuilt. Hosting service is ipage, OS reported as Debian. Any replies please include the obvious mistakes, I've been using Drupal for about one week only, site is www.deesidecameraclub.org

Comments

captaingeek’s picture

what about disabling overlay?

captaingeek’s picture

fixed my issue by http://drupal.org/node/613292 not sure of cause

shyamala’s picture

- Disable Add content links within the Navigation menu at: #overlay=admin/structure/menu/manage/navigation
- though the #overlay=node/add/page, #overlay=node/add/poll all works the message displayed at: #overlay=node/add is:
"You have not created any content types yet. Go to the content type creation page to add a new content type."

This is a BUG. The node/add page links must not be based on the status of the Navigation menu links. They must be based on the content permissions.

The function node_add_page() assigns $content = system_admin_menu_block($item); which is based on the Navigation menu and not the content type permissions.

rpmskret’s picture

Version: 7.2 » 7.8
Component: node system » menu system
Category: support » bug
Issue tags: +Usability

I have changed the issue settings from Vers. 7.2 to 7.8 as that is now current and what I have a bug in.
Also from Component:node system to Component:menu system

Does seem to involve the menu system and particularly the Nav menu. I had made panicky changes
there after getting another problem (see. http://drupal.org/node/1018614 - Undefined index: localized_options in menu_navigation_links())
Fixed that issue by using post#5.

Now get "You have not created any content types yet..." when trying to use the Add content link.
Work-around is to go to #overlay=admin/structure/menu/manage/navigation and select a
content to create there.

This is inconvenient and a little unsettling, but sure am glad for a secondary method to add content.

bramvdkroef’s picture

Version: 7.8 » 7.x-dev
Component: menu system » node system
Status: Active » Needs review
StatusFileSize
new901 bytes

This patch updates node_add_page() in node/node.pages.inc so it uses node_type_get_types() to get the content types and creates links for the ones the user has access to.

Everett Zufelt’s picture

Version: 7.x-dev » 8.x-dev
Status: Needs review » Needs work

If I understand correctly, node_add_page() is currently checking the access perms on the menu items (node/add/content-type) and not on the add content-type perms. Whereas this might not normally be a problem, there are cases where the perms are not the same.

Agreed that this is a bug that needs to be fixed. A quick peak at node_add_page() for 8.x shows that it will need to be fixed there too.

Bumping to 8.x-dev as issues are resolved there first and then backported where appropriate.

bramvdkroef’s picture

StatusFileSize
new2.08 KB

I see your point. Here's a patch that uses the system_admin_menu_block() code, but includes hidden menu items.

Everett Zufelt’s picture

Status: Needs work » Needs review
kscheirer’s picture

Issue tags: -Usability

#7: add-content-1185838-7.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, add-content-1185838-7.patch, failed testing.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

catch’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)
Issue tags: +Bug Smash Initiative

Overlay is no longer in core.