-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to place blocks #931
Comments
I built a new CLAW instance from the latest CLAW playbook and can confirm this behaviour. Another simple way to test is to take an existing block on the landing page, move it to a different region. It will not appear. If you try to move it back to the original region, you will not be able to put it back. |
I can also confirm this behaviour. I'm going to investigate our latest condition we made (Content Entity Type) and see if that's the culprit. |
Yeah, wow, weird. I tried what @MarcusBarnes described and found I could move existing blocks into a handful of regions, but not others. It doesn't like the sidebars, for example, but the header was ok. New ones seem to be prevented altogether. I switched to Stark to see if it was a theme issue and it's not. I can recreate the behaviour.
|
Tests out OK in vanilla Drupal, so it's definitely something in islandora. I'm enabling just the core module and feature and seeing if it's still broken. Trying to isolate code from demo module config. |
All it takes is the islandora module. Doesn't even require a feature to be imported. So it's gotta be one of our Conditions. I'm going to try pulling them out one by one and see if i can isolate the culprit. But sheesh, this bug is totally silent. No logs of any kind. |
So when a block gets saved, our conditions go right into the visibility chunk of their yml:
That seems to cause drupal core to not show the block, and squash any errors that may exist. I'm going to revisit some core Condition plugins and see what's up. We must be diverging somewhere in 8.6. |
So core This won't fix a broken block, but all blocks placed after the alter is implemented is fine. I wouldn't say this 100% solves the problem. I'd keep my eye on https://www.drupal.org/node/2284687, which is the core Drupal issue to control which conditions get displayed for block placement. Or at least to better improve the UI when # of conditions gets unwieldy. |
^^ PR is up. Plugging the leak... 🚢 💧 |
Have the latest claw-playbook (commit 5d573ff8828353997a7d3f2e11405956b5dbb138). Not able to place a block on the first side bar other than the Tools block.
Steps to Reproduce
http://localhost:8000/admin/structure/block
Expected
Actual
Additional Notes
This may be issue related to an earlier issue related to placing blocks. Or it could be a Drupal 8 regression issue!
The text was updated successfully, but these errors were encountered: