that is crashing it. Previously I was doing some cropping on that line, which was prone to crashing the site even more. But it still occasionally happens with just that line in. Any ideas why?
What makes this problem even weirder is that for me, it doesn’t crash at all, but for the client it happens a lot. When I say “crash”, I mean it kills the tab. Opening a new tab sometimes fixes, sometimes results in another crashed tab.
How do you know it’s that line? There’s probably more code? If there was an error in the PHP code, it should actually pop up in the error logs and Kirby should show the whoops error page instead of crashing a browser tab.
That’s good to know, thank you! I’ll implement that change.
I know it’s that line because if I remove it, it doesn’t crash at all.
It never actually crashes and shows the whoops error, just loads a blank page forever then eventually shows the generic “this tab crashed” Google Chrome error. I’m really struggling to get my head around it!
Also, how many pages and images are there? Could it be that you are running into script run time issues on the remote server? That would probably explain why your are not experiencing this on localhost.
I think checking the php error logs and the server logs would be crucial.
Can’t access console, the entire tab crashes! Here is a short video showing the behaviour:
The page never loads, is totally dead (can’t be interacted with in any way), and eventually shows the generic Chrome error.
Fortrabbit, the host says it could be a php memory issue:
“unfortunately, Kiby did not log any errors, but most likely the issue is image/crop-related.
I renamed the /media folder to /media-backup-fr and Kirby created the /media folder on its own. Maybe SFTP messed up some (sub)folder permissions or there is a corrupted image. Honestly, idK - so far it is working.”
This was with the previous crop code in there, but it’s still crashing (albeit less) with just the above code.
Nothing in the error or server logs. And I don’t see it when testing remote, on exactly the same link as the client! Such a strange issue.
Not many images or pages. 11 pages, currently only one page with 4 images in that field.