Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error in site_pages API #1290

Closed
zerocrates opened this issue Aug 8, 2018 · 0 comments
Closed

Fatal error in site_pages API #1290

zerocrates opened this issue Aug 8, 2018 · 0 comments
Milestone

Comments

@zerocrates
Copy link
Member

Fatal error: Uncaught Error: Call to a member function getReference() on null in /var/www/localhost/htdocs/omeka-s/application/src/Api/Representation/SiteBlockAttachmentRepresentation.php:34
Stack trace:
#0 [internal function]: Omeka\Api\Representation\SiteBlockAttachmentRepresentation->jsonSerialize()
#1 /var/www/localhost/htdocs/omeka-s/vendor/zendframework/zend-json/src/Json.php(331): json_encode(Array, 15)
#2 /var/www/localhost/htdocs/omeka-s/vendor/zendframework/zend-json/src/Json.php(296): Zend\Json\Json::encodeViaPhpBuiltIn(Array, false)
#3 /var/www/localhost/htdocs/omeka-s/vendor/zendframework/zend-json/src/Json.php(97): Zend\Json\Json::encodeValue(Array, false, Array, false)
#4 /var/www/localhost/htdocs/omeka-s/vendor/zendframework/zend-view/src/Renderer/JsonRenderer.php(151): Zend\Json\Json::encode(Array)
#5 /var/www/localhost/htdocs/omeka-s/application/src/View/Renderer/ApiJsonRenderer.php(43): Zend\View\Renderer\JsonRenderer->render(Array)
#6 /var/www/localhost/htdocs/omeka-s/vendor/zendframework/zend-view/src in /var/www/localhost/htdocs/omeka-s/application/src/Api/Representation/SiteBlockAttachmentRepresentation.php on line 34

I assume this is happening because of an attachment to a private item (this is with an anonymous request).

@zerocrates zerocrates added this to the September 17 milestone Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant