Closed rosiel closed 1 month ago
From the tech call (@seth-shaw-unlv thanks) it may be that the config here (localhost:8000) is wrong and there's and isle/playbook issue.
Indeed, it was missing :8000 from the config. That solved the red NetworkError, but led to new errors.
This "unexpected non-whitespace character after JSON data" appeared as a modal over the viewer, and in the logs i see
Error: Call to a member function id() on null in Drupal\islandora_mirador\Plugin\Block\MiradorBlock->build() (line 111 of /var/www/html/drupal/web/modules/contrib/islandora_defaults/modules/islandora_mirador/src/Plugin/Block/MiradorBlock.php)
#0 /var/www/html/drupal/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\islandora_mirador\Plugin\Block\MiradorBlock->build()
#1 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
#2 /var/www/html/drupal/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#3 /var/www/html/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(772): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
It looks like whatever page you were on isn't returning a node as part of the route: https://github.com/Islandora/islandora_defaults/blob/2.x/modules/islandora_mirador/src/Plugin/Block/MiradorBlock.php#L109
Getting the following error when trying to use Mirador:
TypeError: NetworkError when attempting to fetch resource.
This happens when using Mirador as a field formatter on a Media, as well as when displayed as an EVA block. It's happening on the Playbook as well as the Sandbox, and ISLE built with the install profile. The full error message in the viewer is: