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
{{ message }}
This repository has been archived by the owner on May 19, 2020. It is now read-only.
The method resizeImage in anchor/models/extend.php causes an exception because the variable ext is undefined. This happens when saving (and resizing) an image from a custom image field.
Expected Behaviour
The variable ext should contain the image file extension.
Actual Behaviour
It doesn't. It's undefined.
Context details
Anchor version: 0.12.6
Possible solution
Define the variable:
$ext = pathinfo($filepath, PATHINFO_EXTENSION);
The text was updated successfully, but these errors were encountered:
Summary
The method
resizeImage
inanchor/models/extend.php
causes an exception because the variableext
is undefined. This happens when saving (and resizing) an image from a custom image field.Expected Behaviour
The variable
ext
should contain the image file extension.Actual Behaviour
It doesn't. It's undefined.
Context details
Possible solution
Define the variable:
$ext = pathinfo($filepath, PATHINFO_EXTENSION);
The text was updated successfully, but these errors were encountered: