4
Quote:
I have the same problem and my site does not display any blocks to users that are not logged in.
That's not the same - I couldn't list my blocks on the admin page, but they were visible for users.
I added some 'debug' lines in blocksadmin.php just before 58th line.
58th line is the first line of foreach loop, and I added these lines (at the beginning of foreach loop):
echo "mid: " . $block->getVar('mid');
echo "name: " . $modules[$block->getVar('mid')]->getVar('name') . "
";
I enabled php warnings of course.
This caused that when I clicked "List All Blocks" I saw list of "mid: xx name: yyy" which are module id and name of the module.
At the bottom of the page I had just number without corresponding name - attempt of getting the name was causing this error.
Then I found this number in database - it was in (prefix)_newblocks and (prefix)_blocks_instance tables.
I did this 2 times - I had 2 different junk blocks.