You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the base install of madoc-platform, running madoc init and madoc start with no changes to the config
I logged as the admin user
I selected Create IIIF Manifest from the side panel and left all other items blank
I clicked Add
I monitored the IIIFStorage\Job\ImportCanvases until the status was Completed
I ran an empty search on the front end
I see all of the item results
I click on one result
What I expect to see:
A view related to the IIIF item
What I see instead:
An error Omeka S encountered an error
The log file says: "2019-06-24T11:36:50+00:00 ERR (3): TypeError: Argument 2 passed to IIIF\Model\Canvas::__construct() must be of the type string, array given, called in /srv/omeka/repos/iiif-php/src/Model/Canvas.php on line 190 and defined in /srv/omeka/repos/iiif-php/src/Model/Canvas.php:62"
What I've done to fix it:
I've removed the type-hint from the $label variable as the IIIF ImportCanvases job has created arrays here.
The text was updated successfully, but these errors were encountered:
I believe this is related to the internationalisation work done recently, where labels and other descriptive properties will be language maps, instead of just strings.
Another possible interim fix, without a code change: Go to http://localhost:8888/admin/module and enable the i18n module, checking the first checkbox when the configuration comes up.
Thanks @stephenwf - that's definitely what the problem is. I've just double checked the source of the item and see the label has a @value and a @language attribute.
Unfortunately, the solution of enabling the i18n module hasn't fixed it. I notice this is also an issue on the collection view page
Here the label is just replaced with the word Array below each canvas.
What I did:
madoc init
andmadoc start
with no changes to the configCreate IIIF Manifest
from the side panel and left all other items blankIIIFStorage\Job\ImportCanvases
until the status wasCompleted
What I expect to see:
What I see instead:
Omeka S encountered an error
What I've done to fix it:
The text was updated successfully, but these errors were encountered: