digitalutsc / digitalutsc/termwithuri_condition
Error in item-manifest
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Encountered at https://tamil.digital.utsc.utoronto.ca/node/19375/item-manifest
````
TypeError: Drupal\termwithuri_condition\Utils::getMediaReferencingNodeAndTerm(): Argument #1 ($node) must be of type Drupal\node\NodeInterface, null given, called in /var/www/D10-tamil/web/modules/contrib/islandora_iiif/src/Plugin/views/style/IIIFManifest.php on line 431 in Drupal\termwithuri_condition\Utils::getMediaReferencingNodeAndTerm() (line 129 of /var/www/D10-tamil/web/modules/contrib/termwithuri_condition/src/Utils.php).
````
````
#0 ....../web/modules/contrib/islandora_iiif/src/Plugin/views/style/IIIFManifest.php(431): Drupal\termwithuri_condition\Utils::getMediaReferencingNodeAndTerm()
#1 ....../web/modules/contrib/islandora_iiif/src/Plugin/views/style/IIIFManifest.php(327): Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->getOcrUrl()
#2 ....../web/modules/contrib/islandora_iiif/src/Plugin/views/style/IIIFManifest.php(226): Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->getTileSourceFromRow()
#3 ....../web/core/modules/rest/src/Plugin/views/display/RestExport.php(435): Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->render()
#4 ....../web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\rest\Plugin\views\display\RestExport->Drupal\rest\Plugin\views\display\{closure}()
#5 ....../web/core/modules/rest/src/Plugin/views/display/RestExport.php(436): Drupal\Core\Render\Renderer->executeInRenderContext()
#6 ....../web/core/modules/views/src/ViewExecutable.php(1592): Drupal\rest\Plugin\views\display\RestExport->render()
#7 ....../web/core/modules/rest/src/Plugin/views/display/RestExport.php(426): Drupal\views\ViewExecutable->render()
#8 ....../web/core/modules/views/src/ViewExecutable.php(1689): Drupal\rest\Plugin\views\display\RestExport->execute()
#9 ....../web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay()
#10 [internal function]: Drupal\views\Element\View::preRenderViewElement()
#11 ....../web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array()
#12 ....../web/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback()
#13 ....../web/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback()
#14 ....../web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#15 ....../web/core/lib/Drupal/Core/Render/Renderer.php(153): Drupal\Core\Render\Renderer->render()
#16 ....../web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#17 ....../web/core/lib/Drupal/Core/Render/Renderer.php(154): Drupal\Core\Render\Renderer->executeInRenderContext()
#18 ....../web/core/modules/rest/src/Plugin/views/display/RestExport.php(409): Drupal\Core\Render\Renderer->renderRoot()
#19 ....../web/core/modules/views/src/Routing/ViewPageController.php(56): Drupal\rest\Plugin\views\display\RestExport::buildResponse()
#20 [internal function]: Drupal\views\Routing\ViewPageController->handle()
#21 ....../web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#22 ....../web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#23 ....../web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#24 ....../web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#25 ....../vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#26 ....../vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#27 ....../web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#28 ....../web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#29 ....../web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#30 ....../web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#31 ....../web/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#32 ....../web/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch()
#33 ....../web/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup()
#34 ....../web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#35 ....../web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#36 ....../web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#37 ....../web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#38 ....../web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#39 ....../web/index.php(19): Drupal\Core\DrupalKernel->handle()
#40 {main}
````
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure at the reported item-manifest URL, then read islandora_iiif/src/Plugin/views/style/IIIFManifest.php around line 431 and termwithuri_condition/src/Utils.php around line 129. Trace why getMediaReferencingNodeAndTerm() receives null; done means the endpoint renders without this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100