I recently discovered a new bug in my existing website.
When trying to access the width and height (or other attributes) of an image I used to do so like this:
This has always worked for me, but recently all the properties (except ‘height’) are returning NULL.
When I am in the File manager I can still see that all the attributes are still accessible as you can see below.
But when trying to access the attributes in my code like so:
var_dump($f->getAttribute("height")); var_dump($f->getAttribute("width")); var_dump($f->getAttribute("title"));
I can see the Image, and this is what’s being dumped:
string(4) "3486" NULL NULL
Does anyone have any idea what can cause this issue?