How to disable php warnings

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
wolfie
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jul 14, 2025 10:08 am

How to disable php warnings

Post by wolfie »

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?
User avatar
TimeX
Staff
Staff
Posts: 1799
Joined: Thu Jul 22, 2004 12:24 am
Location: Big Bear, CA

Re: How to disable php warnings

Post by TimeX »

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:

Code: Select all

php_flag display_errors On
Any other PHP options can be adjusted this way and they will apply to the folder that the .htaccess file is located in.
TimeX
User avatar
Edge100x
Founder
Founder
Posts: 13132
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to disable php warnings

Post by Edge100x »

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.
Post Reply