Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
PHP Notice messages in Vanilla
I believe that good PHP scripts does not generate any PHP errors (including notices). Otherwise, if PHP message is occured -- this is always means that PHP script is not good enough.
There is a set of PHP errors with E_NOTICE level in Vanilla base scripts. I found it's a bad and dirty coding style when for proper execution I have to disable errors output via "display_errors 0" or via restrictions from error_reporting levels.
There is not so much notices and I've fixed most of it within 15 minutes just by adding several "if" conditions to check existence of objcets that can be missed. For example, $this->Discussion is not defined in library/Vanilla/Vanilla.Control.CommentGrid.php when user access non-existing/removed discussion, but there is no check in section called "// Set up the pagelist".
So my questions is: why Vanilla is not tested with error_reporting = E_ALL ?
1
This discussion has been closed.
Comments