Hello, I was just about to pose a question when I found what I thought might be the solution, so I thought I'd try it before troubling the forum... but it destroyed my site!

here's the culprit: http://drupal.org/node/58861
which I added as a new block and then enabled...

I've read that other people have got this 'blank site' problem and that its often to do with a 'space' after the php is closed or some such thing, but nobody has explained how they get back to being able to access their install of drupal when this occurs. I can access nothing- every page appears blank. I added a couple of lines to .htaccess which resulted in:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

is there any way i can recover all my work? seems like bit of a desperate situation if one ' ' space can bring down an entire install!

hope someone can help?!

thanks

Chris

Comments

anner’s picture

I don't know about your space issue, but if it was a block that you enabled that did it, you can disable that block in the db to get back into your site.

20footduck’s picture

ok, thanks for responding so quickly, good to hear there's a way out...

having a look at (an ancient version of)phpmyadmin here... any clues as to how to identify which block it is i disable? I'm guessing its one of the 'user' modules in the block table... don't really want to delete randomly if i can help it, as there doesn't seem to be a way of just disabling it...

thanks again

chris

anner’s picture

since you are using such an old version, I'm afraid I can't help you there. I know in the current versions, the status is 1 for enabled and 0 for disabled. That way you could disable all the user blocks and you wouldn't have to delete anything.

20footduck’s picture

i've found the status thing, turned off all the blocks and polls, but it's had no effect :(
thanks anyway

using a similar logic I thought that perhaps by removing the sidebar from my template it would work as it wouldn't be trying to load any blocks- but again this failed

I went through all the db and optimized all the table overheads

I emptied the cache as suggested here: http://drupal.org/node/59243 (although does anyone know if disabling it is possible from outside the drupal environment)

I've also tried increasing the memory in .htaccess (i've also tried creating php.ini and settings.php- http://drupal.org/node/29268)

Strange thing happening when i create info.php- there are no problems in the root directory but in my drupal subdirectory it comes up with the same error as any of the drupal files.... *update* its not so strange- that was something to do with.htaccess- when removed the info was displayed, same blank pages with the drupal files :(

any other suggestions?
by the way the Server error I mentioned in my first post was 'Error 500' if that means anything to anyone.

thanks

Chris

anner’s picture

Your apache logs might be giving a useful error. If you don't have access to those, you may want to ask the hosting company what errors are being logged. My only experience with drupal and blank pages was a php memory issue, but the apache error should be quite specific.

20footduck’s picture

Great! thanks- my host send me some relevant lines form the logs:

PHP Fatal error: Call to undefined function: db_rewrite_sql()..../includes/common.inc(1882) : eval()'d code on line 5

bits of which I looked up on the forums and found:

http://drupal.org/node/17204

and deleted the bit from the boxes part fo the database. back online!

thanks

Chris