![]() |
Autoload error - 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: Autoload error (/showthread.php?tid=32873) |
Autoload error - El Forum - 08-08-2010 [eluser]dorwin[/eluser] Hello, I have an autoload error : Unable to load the requested file: helpers/html_helper.php Actually I changed some file disposition : My system folder : /libraries/codeigniter/system And application folder : /a_folder/whooper/application I have in my index.php : Code: if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') Code: $autoload['libraries'] = array('database', 'parser'); I have the error. I notice CI looking for theses files on application/helpers folder and not system folder... Do you know what is wrong ? Thanks ![]() Autoload error - El Forum - 08-08-2010 [eluser]WanWizard[/eluser] CI doesn't need an include path, so you can get rid of that. What does your docroot look like? Are those two paths relative to your docroot? Or to something else? Where is your index.php in that stucture? In general, when you change the directory structure of a CodeIgniter installation, set the system- and applications folder in index.php to a full path, instead of a relative path, to avoid issues like this. Autoload error - El Forum - 08-08-2010 [eluser]dorwin[/eluser] If I dont put include_path I have error : Code: Warning: require_once(/system/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\francebay\whooper\index.php on line 121 There is a screen of my folder disposition : http://yfrog.com/9efoldersp index.php : Code: $system_folder = "/system"; Autoload error - El Forum - 08-08-2010 [eluser]WanWizard[/eluser] So it should be Code: $system_folder = "/wamp/www/libraries/codeigniter/system"; That also means that your URL is http://website/francebay/whooper/index.php. Make sure you have a rewritebase in your .htaccess, if you need to rewrite the URL to get rid of the index.php part. Autoload error - El Forum - 08-08-2010 [eluser]dorwin[/eluser] Ok Thanks for indication, actually it was Code: $system_folder = "C:\wamp\www\librairies\codeigniter\system"; I guess on production it will be /usr/home/v1076/libraries/codeigniter/system or something like that, you were right, include path is useless ![]() thanks and bye ![]() Autoload error - El Forum - 08-08-2010 [eluser]WanWizard[/eluser] So the driveletter is required? I have no Windows experience (who wants to use that as a production server?), but it's good to know. Autoload error - El Forum - 08-08-2010 [eluser]dorwin[/eluser] Yep, windows is entertainment ![]() |