No Content Displayed: just header and footer

glass.dimly - July 4, 2008 - 00:26

Hey all,

I'm having this problem that's really bugging me.

Logged in users can see all content. However, when logged out, views as well as all other content types except Books display as just the header and footer with a slender bar of white.

I've checked permissions (of course).

I turned on devel, put the blocks in the footers, and set access to it to "anonymous" as well as setting the blocks to display for anonymous users. However, devel doesn't display any information when you are an anonymous user, so I can't gather data on the page failure. Which is sort of strange in and of itself.

I tried to turn on error reporting by putting this

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

...at the top of my index.php. I get no errors.

I'm using a host of modules, views, cck, workflow_ng (disabled), pageroute, etc, but no module install prompted this problem.

Any ideas, folks?

Thanks,
glass.dimly

Still working on this...

glass.dimly - July 7, 2008 - 18:22

... and would greatly appreciate any help.

Any ideas?

-glass.dimly

Theming issue?

pbull - July 7, 2008 - 19:27

Are you using a custom or modified theme? If so, try changing the theme back to one of the (unmodified) core themes like Garland and see if the problem persists.

Thanks

glass.dimly - July 8, 2008 - 02:42

... it is the theme. I had rolled back my css and .tpl.php files but hadn't tried changing the theme. Once I figure out what it is I will post a solution.

Thanks again,
glass.dimly

page.tpl.php

glass.dimly - July 8, 2008 - 22:25

Hello all,

I think this is a bug in the theme friendselectric, but maybe the designer changed the page.tpl.php file. Either way:

This was how page.tpl.php should have been:

<?php if ($sidebar_left) { ?>
      <div id="left" class="column">
        <?php print $sidebar_left ?>
      </div>
    <div id="center" class="column">
    <?php } ?> 

..but the closing of the "if" statement:
<?php } ?> 
...was actually down below the:
<?print $content;?>
...which means the if there was no sidebar, the content wasn't printed.

I always seem to overlook the obvious.

-glass.dimly

 
 

Drupal is a registered trademark of Dries Buytaert.