Messages generated by other blocks do not display

Created on 13 November 2015, over 8 years ago
Updated 18 May 2023, about 1 year ago

Use render arrays for block content so that the order in which the blocks are rendered does not matter; the content render is delayed until the last possible time.

Render Arrays in Drupal 7: https://www.drupal.org/node/930760 β†’

I found this issue by embedding a form in a block. This form had validation functions, and when errors were triggered, the messages did not display to the user when using the blockify messages block. It turns outs the messages block was being rendered prior to the form block; so, the error messages were not generated in time to be displayed by blockify.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kpolymorphic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡­πŸ‡ΊHungary danyg Budapest

    Sorry guys, but this patch doesn't make sense to me.
    It returns an almost empty array (with theme information) and doesn't render any messages on the website.
    When this it called from blockify_get_content() function it should contain a renderable array or a rendered output. For now, it contains only
    array('#theme' => 'status_messages') which results an empty output.
    For those whom face with the same issue here is a revert patch.

Production build 0.69.0 2024