dhrrgn / codeigniter-uhoh Goto Github PK
View Code? Open in Web Editor NEWA port of the Kohana v3 Error Handler for CodeIgniter.
A port of the Kohana v3 Error Handler for CodeIgniter.
Line 66 of My_Exceptions.php needs updating to work on latest versions of Codeigniter...
parent::CI_Exceptions();
should be
parent::__construct();
Otherwise you get a white screen of death at the point CI tries to load the hook.
I'm using CI version 1.7.2 and when my program runs into a MySQL error, it throws the following error:
http://postimage.org/image/qtbfo41dn/
ErrorException [ Fatal Error ]: Wrong parameters for ErrorException([string $exception [, long $code, [ long $severity, [ string $filename, [ long $lineno ]]]]])
APPPATH/libraries/MY_Exceptions.php [ 492 ]
487 break;
488 }
489 }
490 unset($trace);
491
492 self::exception_handler(new ErrorException($message, E_ERROR, 0, $file, $line));
493 return;
494 }
495
496 /**
497 * Is Extension
{PHP internal call} » MY_Exceptions::shutdown_handler(arguments)
Environment
Hi
Last commit introduced a bug in my cibox, as I stated here
Maybe it has to do with WAMP default php bin location.
Isolated hunk at line 195 and apearantly fixed my fatal error.
Details:
Fatal error: require() [function.require]: Failed opening required 'bonfire/application/errors/error_php_custom.php' (include_path='.;C:\php5\pear') in C:\wamp\www\labAptana\lab-bonfire\bonfire\application\core\MY_Exceptions.php on line 195
Thanks
When printing traces that has HTML entities within, some items can end up partially or completely hidden.
To quickly patch this problem the output on, errors/error_php_custom.php@142 is wrapped in htmlentities.
Not sure if fix is applicable anywhere else.
Documentation addition:
You might want to change the name of My_exceptions.php based on your prefix config.
$config['subclass_prefix'] = 'app_';
This file should be loaded in index.php and respect the ENVIRONMENT that is set in 2.0 Reactor. This file will override the default Exception class and error handlers completely.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.