Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 567

[3.3.x] Support Forum • Re: updating php version past 8.0 makes images disappear

$
0
0
I tried your suggestion to use error_reporting(E_ALL & ~E_NOTICE) and it did not work, warnings and deprecation notices were still all there. However, changing it to error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED) did turn the warnings off.

But I also found a much better culprit for the errors being displayed: I had this line in my config: ini_set('display_errors', 1).

I have now found the ideal setting for my which is setting the display error function to 0 but the error_reporting to E_ALL. This way I don't get messages in the browser which would have to be turned off when we go live anyway. And I can access the logs in a file on the server when I need them (for anyone using platform.sh, it is /var/log/app.log).

Thanks again everyone for pointing me in the right direction to sort this out and learn a load of things about php! :geek:

Statistics: Posted by scobu — Wed Jul 24, 2024 10:50 am



Viewing all articles
Browse latest Browse all 567

Trending Articles