0

So I created a custom block and put the block on every page but unfortunately the block causes a white screen... I can't login to change the block because the block is on every page, as I mentioned. Is it possible using an FTP program to access blocks via the server and delete/change them?

1 Answer 1

3

First of all, blocks are stored in the Database, not in your web directory. Therefore, FTP is useless here.

If the custom block was created using a custom module, simply disable the module.

If the custom block was created using the Drupal User Interface, you can disable your custom block by changing the status from 1 to 0 or edit the block body by login in into your Database using PHPMyAdmin and finding the correct block table.

2
  • FTP is useless here Have to take issue with that, it's simply not true. You can write a script which fixes the problem, then use FTP to upload it somewhere it can be executed. Might not be what the OP originally meant, but it's definitely a valid option, making FTP decidedly useful in this situation
    – Clive
    Oct 25, 2016 at 17:48
  • I managed to fix it from switching off some the PHP code in the template.php file temporally which didn't render the block, so I was then able to login correctly, disable the block from admin and then switch the PHP back on again... So technically I could fix it via FTP. The answer given would too it seems, so I appreciate that. Also, not sure why my question was down voted, surely it's a valid question? Oct 26, 2016 at 1:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.