- Issue created by @timhsieh
- π«π·France vinyl_roads Nantes - France
Thank you for this topic because I encounter the same problem and I didn't understand because everything worked before.
Messages displayed with toast work in certain cases (for example when a user logs out) but it no longer works in a custom form if I do that for example.
\Drupal::messenger()->addStatus('Votre demande n\'a pas Γ©tΓ© enregistrΓ©e : ' . $test->reason);
If I disable BigPipe everything works.
- Status changed to Closed: duplicate
about 2 months ago 6:51pm 19 July 2024 - πΊπΈUnited States ultimike Florida, USA
For me, the issue only occurs with some authenticated users. I've tried to narrow it down a bit based on permissions, but no luck.
Disabling BigPipe solves the issue for all users, so I'll be waiting for π 10.3 upgrade now missing status-message theme suggestions Needs work to be resolved as well.
-mike
- Status changed to Needs work
23 days ago 3:20pm 15 August 2024 - π¨π¦Canada nubeli
According to https://www.drupal.org/project/drupal/issues/3456176 π 10.3 upgrade now missing status-message theme suggestions Needs work this may be something that this theme needs to implement. So reopening the issue.
MessageCommand and the associated JavaScript API was added to Drupal core in 2019/Drupal 8.8.0, but was not used widely in Drupal core until 10.3.0, when the bigpipe module began using it to render messages created within bigpipe placeholders.
Because MessageCommand has not been used widely, many custom themes have not themed custom JavaScript messages.
For examples of how to override message theming, see:
core/themes/olivero/js/message.theme.js
and
core/themes/claro/js/messages.js
And the associated libraries-extend entries in those themes' .info.yml files.
- Status changed to Closed: outdated
23 days ago 7:14pm 15 August 2024