![]() |
CodeIgniter Install Issue I Cannot solve - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: CodeIgniter Install Issue I Cannot solve (/showthread.php?tid=57485) |
CodeIgniter Install Issue I Cannot solve - El Forum - 03-18-2013 [eluser]bknox360edu[/eluser] I am getting this error: Fatal error: Call to undefined method CI_Loader::template() in /var/CI/CI_application/controllers/content.php on line 51 When running a codeigniter install on a linux server with PHP Version 5.3.3-7+squeeze14 debian. I don't get the error when I am running it on WAMP with Win7 64-Bit PHP Version 5.4.3. CodeIgniter is version 2.1.3. That particular function is in the application/MY_Loader.php in the core directory which properly is extending CI_Loader. Any ideas why this might be happening? CodeIgniter Install Issue I Cannot solve - El Forum - 03-18-2013 [eluser]painkiller[/eluser] What do u have in /var/CI/CI_application/controllers/content.php on line 51 ? CodeIgniter Install Issue I Cannot solve - El Forum - 03-18-2013 [eluser]bknox360edu[/eluser] Code: public function index($linkname = 'home') $this->load->template('content',$this->data); is line 51 Is there anything else I might need to post? it's just a controller function and the MY_Loader class looks like this: Code: <?php CodeIgniter Install Issue I Cannot solve - El Forum - 03-18-2013 [eluser]bknox360edu[/eluser] Can anyone help me solve this one? CodeIgniter Install Issue I Cannot solve - El Forum - 03-18-2013 [eluser]bknox360edu[/eluser] A PHP Error was encountered Severity: Notice Message: Undefined variable: mimes Filename: core/Output.php Line Number: 107 This was another error I got recently ------------- Fatal error: Call to undefined method MY_Loader::template() in C:\wamp\www\Root\var\CI\CI_application\controllers\programs.php on line 106 On my localhost when I remove the function I get this error, notice the difference MY_Loader, and CI_Loader. The Core MY_Loader doesn't seem to be loading, any help? ------------- That seems to make sense, I added the function to system CI_Loader.php class and if worked, any idea how I can get CodeIgniter to load MY_Loader? CodeIgniter Install Issue I Cannot solve - El Forum - 03-18-2013 [eluser]Aken[/eluser] What is the exact file name of your MY_Loader.php? My guess is you have a case sensitivity issue, and it is not finding your MY_Loader file. The name should typically match the class name exactly (MY_Loader.php), but some file systems may require all lowercase. CodeIgniter Install Issue I Cannot solve - El Forum - 07-02-2014 [eluser]Unknown[/eluser] Thanks Aken for that reminder ! I had the same error... [quote author="Aken" date="1363654356"]What is the exact file name of your MY_Loader.php? My guess is you have a case sensitivity issue, and it is not finding your MY_Loader file. The name should typically match the class name exactly (MY_Loader.php), but some file systems may require all lowercase.[/quote] |