CI crashing before initializing Loader Class - 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: CI crashing before initializing Loader Class (/showthread.php?tid=9877) |
CI crashing before initializing Loader Class - El Forum - 07-11-2008 [eluser]Unknown[/eluser] Hello, I am trying to load the following url index.php/Ajax_admin_tabs/general. The code for the controller is: Code: <?php The code for the view is: Code: <div> It is intended to be loaded via an ajax call, hence the incomplete html. The log file is: DEBUG - 2008-07-11 03:43:03 --> Config Class Initialized DEBUG - 2008-07-11 03:43:03 --> Hooks Class Initialized DEBUG - 2008-07-11 03:43:03 --> URI Class Initialized DEBUG - 2008-07-11 03:43:03 --> Router Class Initialized DEBUG - 2008-07-11 03:43:03 --> Output Class Initialized DEBUG - 2008-07-11 03:43:03 --> Input Class Initialized DEBUG - 2008-07-11 03:43:03 --> Global POST and COOKIE data sanitized DEBUG - 2008-07-11 03:43:03 --> Language Class Initialized It seems like CI is crashing out before it ever gets to my code. I have tried going to the URL directly and going to it through the ajax request but they both give the same result. I've been digging through the CI source to determine the problem but cannot even determine when the call to Code: load_class('Loader') Code: floor(phpversion()) < 5 Thanks for the time, Aaron CI crashing before initializing Loader Class - El Forum - 07-11-2008 [eluser]Unknown[/eluser] Doh!!! forgot to put parens after parent::Controller. I still don't understand why that would affect things the way it did. That file should not have even been loaded (according to my understanding) at the time of the hangup. After loading the Language Class, it should have loaded the Loader class and -then- have looked at the controller as per the following log file. DEBUG - 2008-07-11 04:08:17 --> Config Class Initialized DEBUG - 2008-07-11 04:08:17 --> Hooks Class Initialized DEBUG - 2008-07-11 04:08:17 --> URI Class Initialized DEBUG - 2008-07-11 04:08:17 --> Router Class Initialized DEBUG - 2008-07-11 04:08:17 --> Output Class Initialized DEBUG - 2008-07-11 04:08:17 --> Input Class Initialized DEBUG - 2008-07-11 04:08:17 --> Global POST and COOKIE data sanitized DEBUG - 2008-07-11 04:08:17 --> Language Class Initialized DEBUG - 2008-07-11 04:08:17 --> Loader Class Initialized DEBUG - 2008-07-11 04:08:17 --> Controller Class Initialized DEBUG - 2008-07-11 04:08:17 --> File loaded: C:\Code\htdocs\Forums/system/application/views/admin/Forums_tab.php DEBUG - 2008-07-11 04:08:17 --> Final output sent to browser DEBUG - 2008-07-11 04:08:17 --> Total execution time: 0.1420 So I guess now I'm just looking for a clue. I'm a newbie to PHP programming and CI so I may be in over my head. does the base5.php file have something to do with it? Thanks again |