How to disable php warnings
-
- New to forums
- Posts: 2
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Mon Jul 14, 2025 10:08 am
How to disable php warnings
so im trying to use a gmod store addon called prometheus and its having issues opening third party windows for payments and only fix currently is to disable php warnings how would i do that?
Re: How to disable php warnings
If you are referring to the displaying of PHP errors, that is turned off by default, but your install may have enabled them. You will want to look for a hidden file called .htaccess (notice it starts with a dot). Inside that file you should find something like this:
Any other PHP options can be adjusted this way and they will apply to the folder that the .htaccess file is located in.
Code: Select all
php_flag display_errors On
TimeX
Re: How to disable php warnings
Warnings can also be turned on within the script. If you can't find an .htaccess file with the modification, check the scripts themselves for for ini_set() lines related to display_errors and for error_reporting() calls, which can modify the defaults.