Blank Screen / server issues after giving invalid path
TFlinguland opened this issue · 1 comments
Hello there,
thanks for the great library!
The previous integration went well, I converted successfully and fast some jpg to webp.
When installing it into a different script of the same project, I put an invalid $destination or $source path.
As a result nothing worked anymore, just blank screen.
If I take the library calls out everything works well,
also the previously working scripts using the library so not work anymore and produce the same white screen.
Unfortunately we are on a managed server, so just restarting the server is not an easy task, as no sudo rights.
--> has this problem ever be reported before?
Or do you know any solution? I already tried deleting the cached files but unfortunately with no success.
Thanks a lot!!
Tobi
ok, guys, was my own stupidity. Messed up with variables. So no issue here.
Please close ticket.
What I did that made stop the script:
$destination = $str_replace('.jpg','.webp',$destination);
$destination = $str_replace('.png','.webp',$destination);
vs.
$destination = str_replace('.jpg','.webp',$destination);
$destination = str_replace('.png','.webp',$destination);
After fixing this everything went smoothly!