Recent Topics

1 Dec 02, 2014 21:00    

I've installed 5.1.2 and it doesnt display notices for some reason. I tried commenting out below in _advanced.php, still no result.

I know it's sth. to do with 5.1.2, since it display notices on:
- my 4.1.2 remote server,
- my 4.1.7 local server
- local php files outside b2evo app.

So what is it that's changed in 5.x ?

if( version_compare( phpversion(), '5.3', '>=' ) )
{	// sam2kb> Disable E_STRICT messages on PHP > 5.3, there are numerous E_STRICT warnings displayed throughout the app
//	error_reporting( E_ALL & ~E_STRICT );
}
else
{
//	error_reporting( E_ALL );
}

3 Dec 05, 2014 15:38

I need an answer to this to debug my 5.x code

4 Dec 05, 2014 22:54

Actually, I thought it was a piece of cake, but I got the same problem than you after making a few tests. So I will make a deeper research and let you know if I find sth useful.

5 Dec 06, 2014 14:36

@mgsolipa wrote earlier:

Actually, I thought it was a piece of cake, but I got the same problem than you after making a few tests. So I will make a deeper research and let you know if I find sth useful.

thank you much appreciated

7 Dec 11, 2014 09:30

Well, I ( finally! ) got this. Since version 5.1.x the error handling has been improved. All the messages are captured and displayed to the final user according to the $debug level.

The thing is that maybe it needs to be polished thinking on developers. So, as a quick fix, go to inc/_init_session.inc.php and comment the line (around line 77):

set_error_handler( 'evo_error_handler' );

That way you will get the whole output from PHP.

Regards!

8 Dec 12, 2014 13:52

Yup that works thanks. Even when $debug in _advanced conf was ON, the notices were still hidden. Please at least make it a setting in advanced conf in the next release.


Form is loading...