Error after upgrade from 8.0.3 to 8.1.0
Permalink 1 user found helpfulafter upgrading my site from 8.0.3, where everything works fine, to 8.1.0 i got the following error on every page, including dashboard:
Call to a member function getSize() on boolean
here is the error message:
$filesystem = $this->getFile() ->getFileStorageLocationObject() ->getFileSystemObject(); $height = $type->getHeight(); if ($height) { $size = new Box($type->getWidth(), $height); $thumbnailMode = ImageInterface::THUMBNAIL_OUTBOUND; } else { $size = $image->getSize()->widen($type->getWidth()); $thumbnailMode = ImageInterface::THUMBNAIL_INSET; } $thumbnail = $image->thumbnail($size, $thumbnailMode); $thumbnailPath = $type->getFilePath($this); $thumbnailOptions = []; switch ($mimetype) {
thanks for helping
Oliver
Are you using any Image/File Attributes or custom blocks that use files?
Do you happen to be using any SVG images?
It does appear to be a bug.
A fix was submitted. If it is approved and accepted, you can make a site backup and apply the change to your site.
https://github.com/concrete5/concrete5/pull/5069...
My theme Anitya use a lot of SVG !
I would temporarily enable full debug error output to get a more detailed error message. Take a screenshot of the error page and copy the error message text and reply with that information.
Dashboard > System & Settings > Environment > Debug Settings > Error Detail > Show the debug error output