Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

The HTML of fCore::enableExceptionHandling('html');

posted by gill 8 years ago

It' surely simple to solve but...

When I have errors or exceptions from Flourish, with fCore::enableErrorHandling('html') or fCore::enableExceptionHandling('html'), the printing doesn't use HTML code. I get this :

Context
-------

$_SERVER: <pre class='xdebug-var-dump' dir='ltr'>
<b>array</b>
    'HTTP_HOST' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'localhost'</font> <i>(length=9)</i>
(...)

For exemple, with a bad include ( include '/../views/iindex.php'; )

I know there is not yet the DOCTYPE at this moment (it'll be later, in the template header.php ) but how is it possible to see the real layer of errors ?

From what you posted, it looks like you are using xdebug. It looks as though xdebug messes with the output of var_dump(), which Flourish uses to grab info about variables.

If you are referring to the context information that is printed with the error message and backtrace, that can be disabled by calling fCore::disableContext().

posted by wbond 8 years ago

Thank you !

Yes, WAMP Server 2.1 installed XDebug as a default. I'll have to learn this tool too...

posted by gill 8 years ago