Require once error when moving to production server - 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: Require once error when moving to production server (/showthread.php?tid=52733) |
Require once error when moving to production server - El Forum - 06-24-2012 [eluser]term25[/eluser] I have a strange error when moving from localhost (where everything works fine) to a production server. This is what I get: Code: Warning: require_once(/web/htdocs1/mywebsitecom/home/www/system/core/codeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs1/mywebsitecom/home/www/index.php on line 202 I have just changed the name of my site to mywebsitecom, everything else is the same. When I look on the line 202 in index.php there is this: Code: require_once BASEPATH.'core/codeIgniter.php'; Can anybody help my how to run it on my host, because on my localhost it runs fine. Require once error when moving to production server - El Forum - 06-24-2012 [eluser]PhilTem[/eluser] It should be Code: require_once BASEPATH.'core/CodeIgniter.php'; see the capitalized CodeIgniter. Require once error when moving to production server - El Forum - 06-24-2012 [eluser]term25[/eluser] [quote author="PhilTem" date="1340571371"]It should be Code: require_once BASEPATH.'core/CodeIgniter.php'; see the capitalized CodeIgniter.[/quote] Thanks a lot, it was in the letter "C" and it is working now. However, this is strange that on my WAMP localhost it is working no matter if it is big letter C or small c Require once error when moving to production server - El Forum - 06-24-2012 [eluser]PhilTem[/eluser] You're using WAMP? So you're on Windows? Well then it's pretty obvious, why it did work because Windows gives a s*#% about capitalization other than e.g. Linux PS: Please mark/edit your topic/original post as [Solved] so it'll be easier for others to see there's no more need to help Thanks! |