php - codeigniter not loading application/core files -


got problem codeigniter exteding core. build website local , workst perfect. when checking out on new machine or diferent php version ( tested on 5.3 , 5.2 ) works normal. when upload server doesnt load files in application/core. error message:

fatal error: class 'lean_controller' not found in /var/www/vhosts/website/subdomains/w8systeem/httpdocs/application/controllers/wachtlijsten/overzicht.php on line 3 

when ouput loaded files so:

print_r(get_included_files()); 

i these results: localhost:

array ( [0] => c:\wamp\www\website\index.php [1] =>     c:\wamp\www\website\system\core\codeigniter.php [2] =>     c:\wamp\www\website\system\core\common.php [3] =>     c:\wamp\www\website\application\config\constants.php [4] =>      c:\wamp\www\website\system\core\benchmark.php [5] =>      c:\wamp\www\website\application\config\config.php [6] =>      c:\wamp\www\website\system\core\hooks.php [7] =>      c:\wamp\www\website\system\core\config.php [8] =>      c:\wamp\www\website\system\libraries\log.php [9] =>      c:\wamp\www\website\system\core\utf8.php [10] =>      c:\wamp\www\website\system\core\uri.php [11] =>      c:\wamp\www\website\system\core\router.php [12] =>      c:\wamp\www\website\application\config\routes.php [13] =>      c:\wamp\www\website\system\core\output.php [14] =>      c:\wamp\www\website\application\config\mimes.php [15] =>      c:\wamp\www\website\system\core\security.php [16] =>      c:\wamp\www\website\system\core\input.php [17] =>      c:\wamp\www\website\system\core\lang.php [18] =>      c:\wamp\www\website\system\core\controller.php [19] =>      c:\wamp\www\website\application\core\lean_controller.php [20] =>      c:\wamp\www\website\application\controllers\wachtlijsten\overzicht.php ) 

server:

array ( [0] => /var/www/vhosts/website/subdomains/w8systeem/httpdocs/index.php [1] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/codeigniter.php [2] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/common.php [3] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/application/config/constants.php [4] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/benchmark.php [5] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/application/config/config.php [6] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/hooks.php [7] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/config.php [8] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/libraries/log.php [9] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/utf8.php [10] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/uri.php [11] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/router.php [12] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/application/config/routes.php [13] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/output.php [14] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/application/config/mimes.php [15] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/security.php [16] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/input.php [17] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/lang.php [18] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/system/core/controller.php [19] =>  /var/www/vhosts/website/subdomains/w8systeem/httpdocs/application/controllers/wachtlijsten/overzicht.php )  

i'm out of ideas. dont know search further..

by default, codeigniter loads core files start 'ci_', change this, yours starts 'lean_', need change following line in config/config.php:

$config['subclass_prefix'] = 'ci_'; 

to

$config['subclass_prefix'] = 'lean_'; 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -