I created a block with some PHP code and it totally broke my website. I can't access the site to remove the block. How can I remove the block directly from the database?

Comments

jamesmcd’s picture

I have just done the same.

I just get a redirect loop on my site and can not log in to disable it.

How did you rectify it in the end?

Thanks

wkmit’s picture

If memory serves me right.
Drupal 5. I 'think' the Php code is stored in the boxes table.
Drupal 6. It's stored in the blocks table, 'pages' field.

jamesmcd’s picture

Thanks found it in the end having finally sorted phpmyadmin

ilgriso’s picture

Thanx, many many helpful!