Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a built a custom theme with certain twig templates. While the block is perfectly visible while I am not logged in it seems to disappear when I am logged in. It is not a Role issue (has been tested with both "all checked" and "all unchecked")
Instead of the block, this element is rendered:
<span data-big-pipe-placeholder-id="callback=Drupal%5Cblock%5CBlockViewBuilder%3A%3AlazyBuilder&args%5B0%5D=contactblock&args%5B1%5D=full&args%5B2%5D&token=HFnW8fR5V3Is3jJG5YmZaH_kB6ADLfIWIm4xXbG3CPM"></span>
Comments
Comment #2
GeorgeBazz CreditAttribution: GeorgeBazz commentedComment #3
AstonVictor CreditAttribution: AstonVictor at DevBranch commented... big-pipe-placeholder ...
Can you try to disable big pipe module?
Comment #4
vuilPlease give us more information because it seems like custom theme related.
Comment #5
cbol CreditAttribution: cbol commentedI have the same issue. I created a custom theme and logged in users cannot see blocks coming from views while anonymous users can see the content.
Rendered HTML for logged in users include a "data-big-pipe-placeholder-id" span instead of the block content. This "data-big-pipe-placeholder-id" span is never replaced by the actual content of the view.
I'm currently on Drupal 8.8.0.
UPDATE
The problem was caused by the inclusion of jQuery in my custom theme. The jQuery file that I included was conflicting with the one provided by Drupal 8. The reason why the issue was only for logged in users is that Drupal will included jQuery on every page when someone is logged in and can edit content. However, Drupal will not include jQuery for anonymous users out of the box. I removed my custom jQuery and added a dependency to core/jquery like so in my library file:
Everything is working as expected now.
Comment #6
vuilThank you @cbol!
I close the issue as Fixed. Thanks to everyone!
Comment #8
Mouse_Man_58It is curious that I am seeing this still in DXPR theme today - Many thanks for places to look