7SiN Posted April 1, 2011 Share 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. Link to comment Share on other sites More sharing options...
Jake Sully Posted April 1, 2011 Share Posted April 1, 2011 yes i agreed :) i also think it should not show location to admin cp when a error comes :) Link to comment Share on other sites More sharing options...
teraßyte Posted April 1, 2011 Share 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: Link to comment Share on other sites More sharing options...
Jake Sully Posted April 1, 2011 Share 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 Link to comment Share on other sites More sharing options...
Mat B Posted April 2, 2011 Share 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. Link to comment Share on other sites More sharing options...
Jake Sully Posted April 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
xLemur Posted April 2, 2011 Share 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? Link to comment Share on other sites More sharing options...
Jake Sully Posted April 2, 2011 Share Posted April 2, 2011 ya a log file that puts the php error line in it instead of appearing on web page :) Link to comment Share on other sites More sharing options...
Mat B Posted April 2, 2011 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.