content won't display on the administer page, except for the number "2"

rogdawg - March 13, 2008 - 02:15

If I navigate to the site I am building, it looks fine, when I am not logged in. But, if I navigate to http://mysite/?q=admin, then the page is very strange. The header and the sidebars are just fine but, the main content area only displays the number "2". That's it.

I am currently using the pushbutton theme.

If I look at the page source (View Page Source), in , between the "" and "" comments, there is only the number 2, and nothing else.

If I check that area in the page.tpl.php file, this is what it looks like at those two comments:

<?php
print $content;
?>

<?php
print $feed_icons;
?>

Nothing appears to be obviously wrong with any of that.

I have disabled the User Login block on my site, so there is no other way for me to get into the site, other than through this page. So, I am stuck.

Any suggestions on how to a) debug the problem or b) work around it until I can debug it?

Thanks in advance for any help you can provide.

sorry, I did not post all the code correctly

rogdawg - March 13, 2008 - 02:17

The two comments I was referring two were "start main content" and "end main content".

me too

jersu - March 19, 2008 - 19:58

I'm having the exact same problem

<div id="content-area">
          2
</div>

a solution

jersu - March 19, 2008 - 20:25

After a bit more digging, I found this thread related to the 'cache' tables in the database -

http://drupal.org/node/161106

I followed someone's advice and emptied (truncated) all the drupal_cache* tables in the database. That fixed the problem.

For some reason, there must be an issue with the cache tables between machines. I did a mysqldump from my local machine, then an import on the server. I export the db with hex for blob data ... I wonder if that is where the problem exists. Probably requires more testing to know for sure, but at least I've got an area to start looking.

And, by the way, the server's apache error log was full of messages like:

[Wed Mar 19 16:07:06 2008] [error] [client xx.xxx.xxx.xxx] PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 109 of 1067 bytes in /var/www/includes/bootstrap.inc on line 390

 
 

Drupal is a registered trademark of Dries Buytaert.