kitodo / kitodo-presentation

Kitodo.Presentation is a feature-rich framework for building a METS- or IIIF-based digital library. It is part of the Kitodo Digital Library Suite.
https://kitodo.github.io/kitodo-presentation/
GNU General Public License v3.0
39 stars 45 forks source link

[BUG] setCPid() must be of the type int, null given #1329

Closed fschoelzel closed 2 months ago

fschoelzel commented 2 months ago

Description

-- This Issue might be in the wrong Extension --

The settings array of the Slub/Dfgviewer/Controller/UriController is empty. So $doc->cPid is set to null instead of 0 if the storagePid is empty. (in this case the whole array is) Without the cast to (int) it throws an error.

Reproduction

  1. reload the Site

Screenshots and Examples

error-cpid-1 error-cpid-2

Environment

Additional Context

occurred after merging this PR:

1324

fschoelzel commented 2 months ago

@beatrycze-volk

fschoelzel commented 2 months ago

@beatrycze-volk Did you found a solution? This PR #1334 did'nt fix my Problem.

beatrycze-volk commented 2 months ago

For me it works now.

@beatrycze-volk Did you found a solution? This PR #1334 did'nt fix my Problem.

Yes, for me it has fixed the problem. I can now display the document page. Have you cleaned cache? Maybe restart your ddev.