Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
7SiN Posted April 1, 2011 Posted April 1, 2011 For those of us that have changed the ACP URL, it would be nice that if/when there is an error on the site, that the error NOT show the link to the ACP.
Jake Sully Posted April 1, 2011 Posted April 1, 2011 yes i agreed :) i also think it should not show location to admin cp when a error comes :)
teraßyte Posted April 1, 2011 Posted April 1, 2011 I guess you're talking about fatal errors and warnings? If so we can't do anything to hide those ourselves, you need to set display_errors to 0 in your php.ini or log the errors in a file rather than showing them on the screen :ermm:
Jake Sully Posted April 1, 2011 Posted April 1, 2011 well you guys can allways make a tiny file so when hole forum gets php error it hides it and gives a oops an error courred on forum please check back later or so and it makes a log file with php error line in it instead of a white page with error line on page :) just an idea
Mat B Posted April 2, 2011 Posted April 2, 2011 well you guys can allways make a tiny file so when hole forum gets php error it hides it and gives a oops an error courred on forum please check back later or so and it makes a log file with php error line in it instead of a white page with error line on page :) just an idea No, we really can't. Fatal errors are just that - fatal. You can configure whether PHP should display these to the browser from php.ini; but much though we'd love to, the majority of potential errors just can't be trapped. Your best bet is to configure PHP to not display errors by setting display_errors to 0 in php.ini.
Jake Sully Posted April 2, 2011 Posted April 2, 2011 well i have seen php scripts have my idea so when a php error comes it hides error and gives like that oops an error courred on the site please check back later. and then script makesa error log file :) i have seen that befor but don't remember where
xLemur Posted April 2, 2011 Posted April 2, 2011 well i have seen php scripts have my idea so when a php error comes it hides error and gives like that oops an error courred on the site please check back later. and then script makesa error log file :) i have seen that befor but don't remember where error_log file?
Jake Sully Posted April 2, 2011 Posted April 2, 2011 ya a log file that puts the php error line in it instead of appearing on web page :)
Mat B Posted April 2, 2011 Posted April 2, 2011 You can only catch non-fatal errors. These include warnings, non-fatal errors, user errors, user exceptions, and notices. Due to the fact that we couldn't trap all errors, I would advise that you correctly configure your error handling settings in your php.ini, as that is the only guaranteed way to prevent sensitive information leaking.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.