404_override doesn't work as expected.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: 404_override doesn't work as expected.. (/showthread.php?tid=37855) |
404_override doesn't work as expected.. - El Forum - 02-01-2011 [eluser]Glazz[/eluser] Hello, Thanks, but i'm getting the same error =\ Screenshot of the error: http://img692.imageshack.us/img692/7479/fusephasesoluesweb.png If you need, i can post some of my views so you can see them. - G l a z z 404_override doesn't work as expected.. - El Forum - 02-02-2011 [eluser]Eric Barnes[/eluser] Yea if you can post the topo view that would be great. 404_override doesn't work as expected.. - El Forum - 02-02-2011 [eluser]Glazz[/eluser] Hello, I've attached a zip file. 404_override doesn't work as expected.. - El Forum - 02-02-2011 [eluser]Eric Barnes[/eluser] It is loading the view, however having trouble with the cart library. Is that auto loaded? If not it may not be loaded in your 404 controller 404_override doesn't work as expected.. - El Forum - 02-02-2011 [eluser]Glazz[/eluser] Yes it is autoloading. Edit: My autoload.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 404_override doesn't work as expected.. - El Forum - 02-02-2011 [eluser]rogerwaldrup[/eluser] No fix yet and I too am experiencing an issue using CI 2.0.0 404_override doesn't work as expected.. - El Forum - 02-03-2011 [eluser]Unknown[/eluser] Code: http://domain.com/existing-directory/non-controller or Code: http://domain.com/existing-directory/existing-directory/non-controller etc... It shows default CI error page too. 404_override doesn't work as expected.. - El Forum - 02-08-2011 [eluser]Glazz[/eluser] Hello, I've been testing, and this error happens with most of the libraries. I tried to fix it but i didn't have success with it :c 404_override doesn't work as expected.. - El Forum - 02-12-2011 [eluser]thePiet[/eluser] I'm suffering the same issue here. application/routes.php: Code: $route['404_override'] = 'error/not_found'; application/controllers/error.php: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); As you can see I'm using a breadcrumb class to handle breadcrumbs. But this happens when throwing the 404 error: A PHP Error was encountered Severity: Notice Message: Undefined property: Error::$breadcrumb Filename: controllers/error.php Line Number: 30 Fatal error: Call to a member function append() on a non-object in application/controllers/error.php on line 30 So it looks like libraries that are auto-loaded, aren't loaded anymore or something. Manually loading the libraries in the controller doesn't affect the error. In short, it isn't possible to use other libraries / helpers / plugins within the 404_override route. 404_override doesn't work as expected.. - El Forum - 02-17-2011 [eluser]victorche[/eluser] for some reason, the autoloaded libraries are not loaded :/ i have the same problem too... |