Skip to content

[BUG] Islandora IIIF PHP warnings #2338

@kayakr

Description

@kayakr

What steps does it take to reproduce the issue?
When using Islandora IIIF module to provide a manifest for Mirador, I get PHP warnings:

  • Warning: Undefined array key "structured_text_term_uri" in Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->getStructuredTextTerm() (line 630 of /app/web/modules/contrib/islandora/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php)
  • Warning: Undefined array key "search_endpoint" in Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->addSearchEndpoint() (line 497 of /app/web/modules/contrib/islandora/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php) fixed in Islandora 2.12.3
  • Deprecated function: ltrim(): Passing null to parameter Create Vagrant file... #1 ($string) of type string is deprecated in Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->addSearchEndpoint() (line 498 of /app/web/modules/contrib/islandora/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php) fixed in Islandora 2.12.3

I am not using hOCR.

  • When does this issue occur?
  1. View content via Mirador, mapped to node/%/book-manifest, when structured_text_term_uri and search_endpoint fields are null (default state).
  2. Check watchdog log.
  • What happens?
  1. /admin/structure/views/view/iiif_manifest/edit/rest_export_3 Book Manifest (Original File): Style options form offers fields for "Structured OCR text term" and "Search endpoint path." - both fields are optional, but cause warnings if left null.

Which version of Islandora are you using?
2.12.2 (also reported on 2.12.3)

Which method did you use to install your Islandora instance? (manually, ISLE, playbook, etc.)
ISLE / lando

Any related open or closed issues to this bug report?
None found

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleType: bugidentifies a problem in the software with clear steps to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions