1

When i unpublished a content in drupal 7, I am getting an access denied message. But for some other unpublished content i am getting page not found message. I need page not found message to all unpublished content. How can i do that? Thanks

  • 1
    are you login from uid 1 ? – monymirza Nov 16 '12 at 7:13
  • Are you talking about different content types or the same? – Volker Nov 16 '12 at 9:48
  • @ volker yes, different content type.is there any thing to notice when unpublishing an page – DeDav Nov 16 '12 at 11:06
  • @ monymirza i logged in as super admin. I am not getting what is meant by uid=1. I am using drupal for first time. Kindly explain – DeDav Nov 16 '12 at 11:08
0

Few things to check for to figure out the problem based on your configuration:

  1. Are you logged in or logged out while accessing the content?
  2. Which user are you logged in with? Is this user the author of this content?
  3. Check the permissions of this user (the ones related to unpublished content)...

Let us know if you need help or more details on any of the above.

Cheers.

UPDATE: if you want to customize the message that is displayed when access is denied, you can create a new page containing the custom message and then go to "Administration -> Configuration -> System -> Site information -> Default 403 (access denied) page" and set the path to your created page.

  • I am getting Access denied when user is not logged in. What i need is user should get Page not found instead of getting Access denied message – DeDav Nov 26 '12 at 4:16
  • I just updated the answer based on your comment. Please mark as the accepted answer if it solves your problem. Cheers. – Mario Awad Nov 27 '12 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.