block

Drupal: Notice: Trying to get property of non-object in block_block_view()

1.0 Error After updating the website to a new version of Drupal 7, the following error was printed on the web pages. Notice: Trying to get property of non-object in block_block_view() (line 247 of modules/block/block.module). 2.0 Resolution The error was resolved by the following steps. 2.1 Turn off block caching From the Administration menu, Select …

Drupal: Notice: Trying to get property of non-object in block_block_view() Read More »

Repairing Drupal site blocks manually in database

The text format of a block was PHP code and it contained PHP code with an error. This broke the website resulting in blank screen web pages, the white screen of death (WSOD). The error was rectified by manually updating the MySQL database. The following steps were taken. From the command line, connect with the …

Repairing Drupal site blocks manually in database Read More »