I'm trying to add a custom page, by using admin/config/system/site-information

When I enter the field, as follows:

Default 404 (not found) page


It shows the following error:

The path 'errors/404.html' is either invalid or you do not have access to it.

Though when I enter in my browser: http://mysite.com/errors/404.html it opens just fine.

So, what's wrong with Drupal, why it doesn't see it?

2 Answers 2


When you go to admin/config/system/site-information to enter the path in the field Default 404 (not found) page, you don't have to add .html just write errors/404 and it will work.

  • well, it's the same, guess it only handles the very pages created in drupal itself
    – Anonymous
    Aug 30, 2012 at 8:11
  • When you said custom page, how did you create this page? (Did you use a content type like basic page or anything else? If you want to use a path in drupal, he has to know it before)
    – Epok
    Aug 30, 2012 at 8:20
  • Well it was just one html page I wanted to display. Now I understand, I had to add it, so I block instead. And I want only to display this block, I tried block/4 but it doesn't work either. Is there any way to assign a node for a block?
    – Anonymous
    Aug 30, 2012 at 8:26
  • You can't assign a block in a path (i think, i'm not a Drupal expert) But you can put a block in a page which already exist (and so who has a path)
    – Epok
    Aug 30, 2012 at 8:30
  • Does it mean I need to create a new content type, then add one and only entry to that type just to display a single page as a node?
    – Anonymous
    Aug 30, 2012 at 8:32

I suppose if properly, you have directory "errors" where have a file 404.html. In Drupal one of the right way to do this is like next: create node Page content type (may by only enter title, see and remember node id after saving), copy node.tpl.php from modules/node folder in your current theme folder, rename this copy to node--NID.tpl.php where NID is id of previosly saved node, then edit this template as you want, then add path alias to this node as "errors/404.html"

  • Thanks, I think this is exactly what I need. I'll give it a try right now.
    – Anonymous
    Aug 30, 2012 at 8:34
  • Looks like it was a too simple thing to do, I din't even need to alter the templates, but thanks for advice though.
    – Anonymous
    Aug 30, 2012 at 8:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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