Jump to content


[Drupal] Show Drupal sidebars on error pages


No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 02 March 2007 - 12:42 AM

Here is how to display the sidebars on Drupal error pages...

FIND in /includes/common.inc:
  // To conserve CPU and bandwidth, omit the blocks
  print theme('page', $return, FALSE);
REPLACE WITH:
  // To conserve CPU and bandwidth, omit the blocks
  //print theme('page', $return, FALSE);
  print theme('page', $return, TRUE);
The sidebars have been omitted in Drupal error pages to save server resources but there are times when you may want to keep the sidebars on error pages.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users