Error after upgrade from 8.0.3 to 8.1.0

Permalink 1 user found helpful
Hello,

after 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

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi shaolinsteyr1,

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
shaolinsteyr1 replied on at Permalink Reply 1 Attachment
Hi MrKDilkington,

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
MrKDilkington replied on at Permalink Reply
MrKDilkington
@shaolinsteyr1

Are you using any Image/File Attributes or custom blocks that use files?
shaolinsteyr1 replied on at Permalink Reply
i'm using preview image for my news blog.
shaolinsteyr1 replied on at Permalink Reply
or do you mean the attributes at dashboard->files->attributes. i had one addon which uses here attributes and another three atributes. i deinstalled the addon and deleted the other attributes, but same error
MrKDilkington replied on at Permalink Reply
MrKDilkington
@shaolinsteyr1

Do you happen to be using any SVG images?
shaolinsteyr1 replied on at Permalink Reply
Yes, after deleting the svg it's working. Is this a bug?
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
@shaolinsteyr1

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...
sebastienj replied on at Permalink Reply
sebastienj
I confirm everything !
My theme Anitya use a lot of SVG !