i nominate myself for the darwin award on how to kill a drupal installation...

i installed a php script in a new "block" with input format "PHP code". Unfortunately, I did not configure my script correctly and it is calling for a file which it cannot access, leading to a "fatal error". because the block was set to appear site wide, this means that i cannot access *any* page on the site, including the admin interface, to delete the offending code. i'm locked out.

here is the error message which appears:

Fatal error: Unknown: Failed opening required '/var/www/vhosts/mysite.co.uk/httpdocs/carp/carp.php' (include_path='.:') in /var/www/vhosts/mysite.co.uk/subdomains/test/httpdocs/includes/common.inc(1342) : eval()'d code on line 2

how can i possibly get rid of this horrible problem?

thanks,
arb

Comments

tdimg’s picture

If you have access to your database via phpMyAdmin for example: go to the table blocks, search the block in question and set status and visibility to 0 and delete the region, that should do the trick.

arb99’s picture

thanks for that.

i did that and when i first pulled up the site again i got a mammoth page full of error messages, but then they disappeared. so i guess it's okay now.

phew!

cheers!
arb

tdimg’s picture

Drupal stores error messages and displays them the first chance it has. Since Drupal wasn't able to load properly until now it couldn't display those until you deactivated the block. So, now worries about those at the moment. You can always check them in your logs.

arb99’s picture

okay, cool.

thanks for your help!!