|
|
Hello S2 Team.
When you want to view the match stats of a player in a certain game (view a player > then click on the stats icon at the left of a specific match), you are able to view a php error.
Either fix this or remove it with display_errors = 0 in your php.ini or via ini_set, as this is a security issue - your visitors should not be able to know the file and folder hiearchy of your webpage.
Regards,
Dave
Or just build error and exceptions handlers that changes the page to something like error 404 ("Oops, something went wrong") when there's a Warning or more and hide Notices and such (Which is probably already done since it's the default when installing PHP from source).
Last edited by Manhim; 11-16-2009 at 03:48 PM.
Games List, Matching Games first: http://forums.heroesofnewerth.com/sh...ad.php?t=44301
Customizable recommended items: http://forums.heroesofnewerth.com/sh...ad.php?t=43474
You should know that most of the code is in beta and is being worked on very frequently. It'd be a pain to not have display_errors on because they need to debug. Now, after release is a different story.
S2 Games: Dedicated employees serving dedicated gamers. Continuous development. Never-ending improvement.
-----------------------------
Well they could do like I said in my earlier post, simply handle the errors your way. This would be doable:
and in yourfunction you have:Code:ob_start() set_error_handler("yourfunction", E_ALL ^ E_NOTICE);
and then you have an "administration panel" so you can get the most seen errors using the database.Code:ob_end_clean(); ob_start(); (Show the PHP error page) (Add the error to a database, maybe even the whole page using ob_get_content()) exit();
Or basically, what you can do is: make them only visible for s2games members, just a usergroup check (providing that there are usergroups - if not then member ids)
It wouldn't be that useful since usually it's the users that are having problems with the errors and hiding them would just let the idea that this part of the website isn't done while there was only a PHP error.
Hiding errors from users? No.
We are beta testers, we are supposed to report this stuff. How can we report errors that we can't see?
This is a beta testing phase, not a ****ing Trial, stop acting like it
Only 1% of the errors get reported, if there would be an error handler like that 100% of the errors would be reported with output code, exact point of failure and every informations required.
And what is your statistics based on? Could you provide me with the research? Oh, what's that you say... you can't, well then don't pull fictional numbers out of your sleave to back up your arguments.
Adding the errors to a database is not a viable option, bugs that occur often get reported often, usually starting several threads/bug reports about the same subject.
If they don't occur often, and don't get reported since the magnitude of the bug isn't big, then there's no real problem(debug priority).
Last edited by Shzzzir; 11-16-2009 at 02:44 PM.
Exactly what I'm talking about, debug priority. With a database they could locate bugs way easier and by experience by making PHP web site users don't report any bugs and I often get 0% bug reports even if it happened for more then 1000 ips. Sometimes I hit less then 1% with 2 or 3 reports for more then 3000 ips.
The bugs that get less reported are the ones which don't stop someone from browsing the website but rather "small" bugs, but these still need to be fixed and since nobody is reporting it then who (in the staff) is going to find it?
It's just easier to make a database and it doesn't even take that much time to setup.
Also don't forget that in the "Oops something went wrong" page there could be debugging informations to repeat the process, so less try and guess time wasted.
Last edited by Manhim; 11-16-2009 at 03:52 PM.
Games List, Matching Games first: http://forums.heroesofnewerth.com/sh...ad.php?t=44301
Customizable recommended items: http://forums.heroesofnewerth.com/sh...ad.php?t=43474