Custom blocks with media are not being displayed

Created on 5 November 2019, about 5 years ago
Updated 22 July 2023, over 1 year ago

Problem/Motivation

When enabling Workspaces module, blocks that include media images do not appear on the page.

Screenshot of missing Umami custom block that contain media image -

Steps to replicate:

  1. Install Umami 8.8.x
  2. Enable Workspaces module
  3. Switch to the stage workspace /admin/config/workflow/workspaces/manage/stage/activate
  4. Edit the Hero block /en/block/3
  5. Deploy content /admin/config/workflow/workspaces/manage/stage/publish?destination

You will get an error -
Deployment failed. All errors have been logged.
(but no errors appear in the Recent errors log page /en/admin/reports/dblog)

It gets more interesting...
If you edit a node in stage, save it, and now click on 'deploy content', the deployment will be successful!
wait. what?

:)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
Block contentΒ  β†’

Last updated about 18 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States shaal Boca Raton, FL

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Wasn't able to replicate this issue. Wonder if someone could confirm it's still an issue in D10?

  • πŸ‡¨πŸ‡¦Canada mandclu

    I just did a fresh install of Umami on Drupal 10.0.9. As soon as I switch to the Stage workspace the umami_views_block__promoted_items_block_1 and umami_banner_home blocks on the home page disappear.

  • Status changed to Active over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom nlisgo

    I am able to recreate this but in the steps to replicate I change:

    /admin/config/workflow/workspaces/manage/stage/deploy

    to:

    /admin/config/workflow/workspaces/manage/stage/publish

  • πŸ‡¬πŸ‡§United Kingdom nlisgo

    For some reason I need to add the desitination parameter or I get a WSOD. I will raise a separate issue for that.

  • πŸ‡¬πŸ‡§United Kingdom nlisgo

    I created an issue to address the fact that we are not logging the error. #3376177

    When I surface the error this is what I get:

    NOTICE: PHP message: Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
    GROUP BY "base_table"."revision_id", "base_table"."id") "subquery"' at line 7: SELECT COUNT(*) AS "expression"
    FROM
    (SELECT 1 AS "expression"
    FROM
    "content_moderation_state_revision" "base_table"
    INNER JOIN "content_moderation_state_field_revision" "content_moderation_state_field_revision" ON "content_moderation_state_field_revision"."revision_id" = "base_table"."revision_id"
    WHERE ("content_moderation_state_field_revision"."content_entity_revision_id" IN (:db_condition_placeholder_0)) AND ()
    GROUP BY "base_table"."revision_id", "base_table"."id") "subquery"; Array
    (
        [:db_condition_placeholder_0] => 5
    )
    " at /data/app/core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php line 46
    { "timestamp": "2023-07-22T13:22:21+0000", "fields": { "client_ip": "-", "remote_addr": "127.0.0.1", "remote_user": "", "request_uri": "/en/admin/config/workflow/workspaces/manage/stage/publish?destination=", "status": "500", "body_bytes_sent": "184", "request_time": "0.373", "http_referrer": "http://localhost:8080/en/admin/config/workflow/workspaces/manage/stage/publish?destination", "http_user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36", "request_id": "-", "cpu": "56.36", "memory": "10485760", "headers": { "Cache-Control": "must-revalidate, no-cache, private"} } }
Production build 0.71.5 2024