CI Controller not found.. |
EDITED: so i figured out - one config variable i mistakenly deleted or somethin ie. it was missing
so i have been getting this error but not sure why? Code: Fatal error: Uncaught Error: Class 'CI_Controller' not found in /var/www/website/system/core/CodeIgniter.php:369 Stack trace: #0 /var/www/website/application/core/MY_Exceptions.php(7): get_instance() #1 /var/www/website/system/core/Common.php(196): MY_Exceptions->__construct() #2 /var/www/website/system/core/Common.php(652): load_class('Exceptions', 'core') #3 [internal function]: _exception_handler(Object(Error)) #4 {main} thrown in /var/www/website/system/core/CodeIgniter.php on line 369 googling around people said it might be the database connection problem but those are set properly. If i change the env to production (ie surpressing errors) - site works fine, i can even LOG IN fine so even if db wasnt set properly i wouldnt have been able to log in and at that point it would throw/give me the DB settinsg are wrong (paraphrasing here) the other thing i found is sometimes if there are errors in actual code (controllers) then this gets fired.. :/ (08-06-2020, 06:59 AM)php_rocs Wrote: @shez1983, Hi thanks for coming back.. 3.1.9. So the only thing I have changed, or trying to change (in staging server, where i am testing it out first) is that In config files i am doing something like $config['item'] = $_SERVER['item']; and then in my apache conf file i am setting ENV setEnv item value When i mentioned production.. I meant on my STAGING server if i change the environment to production/testing which doesnt display errors to user, everything works.. but as soon as i change env back to development i get an error.. |
Welcome Guest, Not a member yet? Register Sign In |