I was working on experimental php code in a block ... once i submitted it I can no longer get into the site at all.

I added a block with "obviously" bad php code in it. Immediately things were hosed now it waits forever when i try to go to the site.

Where do i start to back out the change I just put in?

I do not know if this is the right forum.

Jeff Bonsteel

herb at bonsteel dot com

Comments

wickedbadawesome’s picture

as a last resort i know that you can clear that block in your database but i do not know where to do it. try a search for Blocks in MySQL... can you login to the admin section still

like www.mysite.com/user

coreyp_1’s picture

You can use this quick bit of code to disable all of your custom blocks.

Always test your custom php code in a page (if possible). You don't have to actually create a page, but you can Preview a page with the php filter enabled, and that will give you an idea as to whether or not your code works.

- Corey

brewreview.info’s picture

I've done this several times, and this thread has been a life-saver for me: http://drupal.org/node/166556

In that thread, also notice VeryMisunderstood's post re: testing new php code as Pages instead of Blocks. Wiser words were never spoken IMO...

Hope this helps.

Cheers,
//TB