Score:0

Webform block shows for anonymous user but not authenticated

in flag

I am using the webforms module (6.1.1) on a Drupal 8 site for a form that shows up in a block on my front page.

If I am not logged in (go Incognito or InPrivate mode) the form displays and works.

If I am logged in, the form does not show, but the < div> it is located in does.

It works in the admin pages as expected.

I have verified that the Webform's Access has Roles "Anonymous user", "Authenticated user" and "Administrator" checked.

I have verified the Block also has Roles "Anonymous user", "Authenticated user" and "Administrator" checked.

Looking in the browser's developer view at the space where the form should be, I get the following code instead. I don't know if it is relevant or not.

<span data-big-pipe-placeholder-id="callback=Drupal%5Cblock%5CBlockViewBuilder%3A%3AlazyBuilder&amp;args%5B0%5D=webform&amp;args%5B1%5D=full&amp;args%5B2%5D&amp;token=DAFi9sg2c3cBjy5LxuoGFFwM6MALQtu8KIca_a1b5E8"></span>

This is opposite than most web hits that talk about the form not showing up for anonymous users.

Thank you.

Score:1
cn flag

This is not a webform issue. The problem is that BigPipe is unable to lazily load the block. What happens if you disable this module?

If you want to debug the module, server-side it is delivering the content for placeholders delayed at the end of the page (scroll down in the HTML source). Client-side this is then processed in javascript. Check if javascript is running without errors.

You can also try to change the theme, that's the most likely cause for such errors by not rendering the HTML markup and the attached libraries correctly.

Hometoy avatar
in flag
Seeing what BigPipe is (for caching) I went to the sites' Performance and changed the caching from "<no cache>" to "1 minute" and the content displays on the page for the authenticated user. Changed it back and and the form still renders for me as an authenticated user. Double checked and it does continue to work for the unauthenticated user as well. Thanks.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.