Drupal Error Page
Contents |
all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes CustomError Primary tabsView(active tab) Version control Automated Testing Posted joomla error page by kbahey on March 19, 2005 at 1:19am This module allows
Wordpress Error Page
the site admin to create custom error pages for HTTP status codes 403 (access denied) and 404 (not
Php Error Page
found), without the need to create nodes for each of them. Main features: Configurable page title and descriptions. There are no author and date/time headers as with normal nodes.
Drupal Default 404 (not Found) Page
Any HTML formatted text can be be put in the page body. The error pages are themable. Users who are not logged in and try to access an area that requires login will be redirected to the page they were trying to access after they login. Allows custom redirects for 404s. Since the error pages are not real nodes, drupal custom error page they do not have a specific content type, and will not show up in node listings, or in a Popular Content block. At present, the module can be set up to handle 403 and 404 errors. Drupal only allows those two status codes to be assigned custom pages. However, the design of the module is flexible and can accommodate future status codes easily. Installation Please see the README.txt document included with the module for installation instructions. Custom error alternate for authenticated The project comes with a submodule: Custom error alternate for authenticated (Short name: customerroralt) . Enabling this submodule lets the administrator create an "insufficient permissions" page for authenticated users, distinct from a "please log in" page for anonymous users. Support Status This project is considered complete. However, reported bugs for the Drupal 7 branch will be fixed in a timely manner. Bugs in the issue queue for the Drupal 6 branch will only be fixed if accompanied with patches. Older versions are no longer supported. Community support in the form of patches are v
all over the world. Join today Community Community Home Getting Involved Chat Forum SupportPost installation Custom 404 Error Page Posted by cornernote on May 5, 2004 at 10:41am Hello, I have drupal up and running, however when someone goes to a page that does not drupal error log exist they get taken to the index page. Where do I set the custom 404 error drupal error messages page? Am I missing something simple? Best regards, Brett Log in or register to post comments Comments should be in your configuration page Dublin Drupaller drupal error 500 commented May 6, 2004 at 7:12pm Am using the latest version of drupal, not sure if you are using the same, but, all I have to do to set the custom 404 page is do the following: a) log into https://www.drupal.org/project/customerror the site as an administrator b) create a new page that is going to be your new 404 error page..make a note of the link c) click through to the configuration page d) scroll down and there are options for re-directing for 404 errors and which page to go to. e) insert the link to your new error page here. f) save your configurations As an addendum I was getting a lot of "can't send header" errors when I was setting https://www.drupal.org/node/7570 up my first drupal site - which isn't a 404..i think it's a 500 error..or something like that.... It was a major pain in the arse...So I ended up setting up a special script that was like a "catch all" faciility that not only redirected the user to a custom error page, but emailed me as well with a reference to the error, time of day, etc. Please also note that I'm not an experienced programmer...even I was able to setup that "Catch all errors and email me" script. Came in very handy the other night when the site couldn't connect to the SQL...I would have been blissfully unaware, if I hadn't have got the automatic email from the script. Let me know if you want a copy and instructions...will be working late tonight(Thursday - it's 20:00 in Dublin) so will be hovering here for a while. Cheers Jason Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate Log in or register to post comments Hello, I am using version cornernote commented May 7, 2004 at 3:00pm Hello, I am using version 4.3.x so I think that is why I cannot see it in my config. I just checked the new version and it is there. Just having some teething issues upgrading. The reason I wanted to make the 404 was so that I could make it email me the error mess
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://drupal.stackexchange.com/questions/34277/custom-template-for-404-error-pages about hiring developers or posting ads with us Drupal Answers Questions Tags Users Badges Unanswered Ask http://stackoverflow.com/questions/8417889/drupal-error-page Question _ Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Custom template for 404 error pages up vote 9 down vote favorite 2 A quick error page noob question here! How to set a theme to use a custom template for 404 error pages instead of using page.tpl ? theming share|improve this question edited Feb 16 '13 at 15:32 asked Jun 16 '12 at 10:54 Walid Baccari 48114 add a comment| 4 Answers 4 active oldest votes up vote 9 down vote accepted Follow these steps: Make a new page using the Panels module (Empty page or put in it any content) In admin/config/system/site-information drupal error page set Default 404 (not found) page to your new page Override the template file for that page (page--error.tpl.php) Remove all the regions you don't need and put your code share|improve this answer edited Jul 30 '15 at 11:27 kiamlaluno♦ 66.5k897192 answered Jun 16 '12 at 11:10 Ahmed 1,15321227 It worked. Thanks @Ahmed! –Walid Baccari Jun 16 '12 at 11:26 5 And one does not even need to use panels. Module handling a page or simplest "Basic page" node would do, too. –Mołot Oct 29 '13 at 8:55 1 Why would you need a contributed module to create a 404? –MrUpsidown Aug 19 '15 at 6:36 add a comment| up vote 23 down vote Yet another solution from this discussion that works without panels or other custom modules. In your theme folder locate template.php and write this code. Replace YOURTHEME with the name of your theme: function YOURTHEME_preprocess_page(&$vars) { $header = drupal_get_http_header('status'); if ($header == '404 Not Found') { $vars['theme_hook_suggestions'][] = 'page__404'; } } Whenever 404 occurs your page--404.tpl.php will be used. Remember to put "--" not "__" in your template file name. share|improve this answer answered Feb 9 '15 at 11:31 daniels 47148 This was exactly what I was looking for. Thanks! –Ryan Feb 24 '15 at 19:02 Remember to clear your cache if you just created the page--404.tpl.php file. –Blake Erickson
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Drupal error page up vote 1 down vote favorite 1 I would like to create a custom error page in Drupal 7. There are things like set_message, but they don't log the errors. So is there any hook or something similar to catch the error, log it and display a human error to my users? drupal share|improve this question asked Dec 7 '11 at 15:30 Michiel 2,424124894 found something similar here stackoverflow.com/questions/1705840/… –Vishal Khialani Dec 7 '11 at 15:43 Great!! Thanks! –Michiel Dec 7 '11 at 15:48 let me know if it works out for you . If not then we can work on something better –Vishal Khialani Dec 7 '11 at 15:52 'll do! Thanks! –Michiel Dec 7 '11 at 16:05 Your question is a little confusing. Are you saying you want to capture errors reported by 'set_message' and redirect users to a dedicated error page? If so, that would probably break a lot of default drupal functionality. –Coder1 Dec 7 '11 at 22:53 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted You stated above that your goal is "catch the error, log it and display a human error to my users". In that case you're probably looking for the functionality Try/Catch which allows you to try to run a block of code and if something goes wrong it will display a message. In your partic