[FEATURE] Show error message when a page image cannot be loaded - #2153
Merged
sebastian-meyer merged 3 commits intoSep 18, 2026
Merged
Conversation
When the image server is unavailable (e.g. returns HTTP 503) the page grid previously showed only broken image icons and the PageView full page image silently failed to load: the OpenLayers image source never settled, the map was never created and the viewer hung with no feedback. The page grid thumbnails now fall back to the placeholder image and reveal a localized message via an <img onerror> handler. The PageView fixes the unhandled rejection in fetchImageData()/initLayer() so the image load failure settles the deferred, and renders a localized message (including the image source URL) inside the map container. Adds translatable strings pageGrid.thumbnailError and pageview.imageError (EN/DE). Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud) Signed-off-by: Stefan Weil <sw@weilnetz.de>
Render the real PageGrid and PageView templates (instead of the reduced inline templates used elsewhere) to assert the new error-handling markup: the page grid emits a hidden fallback placeholder image plus a per-thumbnail <img onerror> handler and a localized error message, and the page view map container carries the localized image-load error message. This requires the controller test harness to render templates with view helpers that need a request context (f:translate, f:link.page, f:image), so AbstractControllerTestCase gains a template-capable request and a helper to point a StandaloneView at a real template file with the dlf partials. Assisted-by: OpenCode / qwen3.8-27b-thinking (Alibaba Cloud) Signed-off-by: Stefan Weil <sw@weilnetz.de>
Member
Author
sebastian-meyer
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When the image server is unavailable (e.g. returns HTTP 503) the page grid previously showed only broken image icons and the PageView full page image silently failed to load: the OpenLayers image source never settled, the map was never created and the viewer hung with no feedback.
The page grid thumbnails now fall back to the placeholder image and reveal a localized message via an
handler. The PageView fixes the unhandled rejection in fetchImageData()/initLayer() so the image load failure settles the deferred, and renders a localized message (including the image source URL) inside the map container.
Adds translatable strings pageGrid.thumbnailError and pageview.imageError (EN/DE).
Add functional tests for the image load error rendering.