I've come across an issue after installing Drupal 8. When I place a block in a region using the block layout, the blocks do not show up on the site. I first encountered the issue after making a view containing links to a RSS feed. After making the view a block, I navigated my way to Admin > Structure > Block Layout. I expected to see the block that I had created appear in the Disabled section. I am not sure, but I think that is how it was set in Drupal 7; however, I was able to create a new block in the region of my choice by pressing the button that read Place Block next to the region heading. A window pops up and there I was able to locate the block that I had created of the RSS feed view. Everything seemed straightforward until I went to check the site; placing the block was simple enough in its configuration settings and saving the layout, but the block I had placed did not appear on the site!

I took to my local host to see if there was an issue there. On my local host set up, I was easily able to add, move, delete, and rearrange every block that I tested. Back on my live site, none of the blocks I added showed up on the site after refresh, even after deleting the cache. I was able to rearrange and move existing blocks that came loaded with the theme, but as soon as I deleted the Search Form block it was lost. I tried adding another search form but it wouldn't appear in any region I placed it in. I also wasn't able to add duplicates of the existing blocks that were there. Ultimately, I am currently not able to add blocks to my site!!

I haven't found any other posts dealing with the same issue. Does anyone have an idea as to what this could be?

Comments

jnimchuk’s picture

I have exactly the same issue.

lwwalker’s picture

I was encountering this problem after installing and using the PHP Filter module for Drupal 8. I discovered that if I went to configure the block that wasn't appearing and checked the box titled "Negate the condition" underneath the PHP tab, then the block would appear as expected.

harhor@greasp.com’s picture

thx, that works

Jeff Veit’s picture

https://www.drupal.org/node/2678430

But it probably won't work if you are upgrading from an earlier Drupal. You'll need to go through all the blocks and nodes and edit the filter to include return TRUE; >/code>. Hopefully this will be resolved.

khoavt’s picture

I have this problem, some blocks do show up after I upgrade from Drupal 6 to 8. I do not install PHP filter module in my site.

Could you explain more details how to fix it? Where do you find those code to edit?

Thank you

khoavt’s picture

I went back to my old drupal 6 website and then uninstalled the PHP filter module first, then I did the upgrading to drupal8. This problem is solved.

drupgirl’s picture

Thank you, lwwalker.

kajalkiran’s picture

Hi,

I am new to Drupal 8. I am also facing this issue. My block is a view block and when I place it in the region, I am unable to see the block. However, If I do an inspect element or check the view source code of the page I can see the markup of the view block.

kajalkiran’s picture

The issue got resolved. I had placed the view on front page and in theme the view block on front page was "display : none;" this was a issue related to the current theme used on the site.

Thanks

badshah007’s picture

where do u found "display:none".
can u ellaborate ur problem and what things u changed?

moleCuleFFF’s picture

display: none;

Is a css rule

gmangones’s picture

Thanks you Kajalkiran, worked for me. delete php module. 

Infinitee’s picture

Unlike Drupal 7 when specifying pages to display block on with Drupal 8, you need to add a forward slash to the path.
Example: /contact

elly’s picture

Thanks so much for this post!