Hi,

I'm not sure when this happened, but possibly after the recent core update. I went to one of my layouts to add a block and the add block link is missing. For all the add block spaces, I just see a blank square as you can see in this image next to Header or Menu Bar. I do still see the add block option on the Default Administrative Layout which makes me think it might be something with my custom layout. Any ideas what I can try to figure out this issue.  Thanks!
Paula

lightly outlined blank square next to Header

Comments

What's missing there is the dropbutton, which is rendered by Javascript. Have you checked the browser's console for Javascript errors? Also check the site log just in case.

I don't see any errors in the browser console, but there's this error in the logs
Warning: Trying to access array offset on null in summary() (line 63 of /app/core/modules/layout/plugins/access/entity_bundle_layout_access.inc).

Also this error: Warning: Undefined array key "blog" in summary() (line 63 of /app/core/modules/layout/plugins/access/entity_bundle_layout_access.inc).

I did recently delete an old blog content type that was a leftover from Drupal. I couldn't delete it through the content type display in backdrop as it would try to delete an adjacent content type, so I deleted the json files and may have caused this issue. I am embarrassed to admit this!

Hmmm... this sounds like a bug with Copy Blocks. Would this possibly be related:

https://github.com/backdrop-contrib/copy_blocks/issues/26

https://github.com/backdrop-contrib/copy_blocks/issues/24

It may be that the original block that you copied had an access condition ("visibility") and when you copied it, the copy does not have the context to evaluate that condition. One of the issues above was solved by my PR, which was merged, but the module has not had a new release, so you need to install the dev version or patch your version. The other issue (context missing) doesn't yet have a solution.

UPDATE: I fixed the errors that I found in the logs. They were related to deleting an old blog content type pulled over from Drupal that was still referenced in one of the layouts. I updated that layout configuration and both of those log errors are gone, but I still cannot add blocks to the layout.

 

I did install the dev version of copy blocks, but the error is still there. It does seem like it could be related. In the copy blocks template that I'm using for layouts I have a disabled broken block. Would deleting the block without removing it from the copy blocks template first cause this type of issue?