eyad alanati → created an issue.
I have created a patch for version 4.2 as the provided one didn't worked for me.
Update Core to 10.1.8
go to image styles
edit any of the existing image styles
website will encounter error
eyad alanati → created an issue.
nicxvan → credited eyad alanati → .
i tried the above patch for version 4.0.1 and it didn't worked out so i made on compatible for the mentioned version.
I've made this patch and i wonder if it works ok!
eyad alanati → created an issue.
patch fix
I created the following patch it works like a charm for me.