![]() |
Site moved to another srever - CI generates errors - 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: Site moved to another srever - CI generates errors (/showthread.php?tid=57710) |
Site moved to another srever - CI generates errors - El Forum - 04-04-2013 [eluser]Adam_R[/eluser] Hi, I have moved site from one server to another and now site is getting errors like Code: A PHP Error was encountered Or doesn't want to load pages at all (doesn't recognize routes?). Any clue what can be wrong? Or is there any other way to include parts from EE2 to CI? Thanks Site moved to another srever - CI generates errors - El Forum - 04-04-2013 [eluser]CroNiX[/eluser] Those aren't caused by CI because CI doesn't use that code in its loader function. It looks like you are manually including some files via a url in your code and your webhost has disabled that function. The very first warning message is pretty clear. Search your code for those lines using those includes. Site moved to another srever - CI generates errors - El Forum - 04-05-2013 [eluser]Adam_R[/eluser] Correct - those are includes from my CI templates but are loading another templates from EE2 to avoid redundancy. When I have moved from one server to another it stops to working. As far I know that can be server settings but I don't want to play with it, but rather get another way to include templates from EE2 to IC. Is there any other way for that? Thanks Site moved to another srever - CI generates errors - El Forum - 04-05-2013 [eluser]CroNiX[/eluser] Are the files on a different physical server? If not, just use the file path instead of the url for the includes. Site moved to another srever - CI generates errors - El Forum - 04-08-2013 [eluser]Interact Marketing[/eluser] Can you explain to me how can I include design templates from EE2 to CI using path? Thanks Site moved to another srever - CI generates errors - El Forum - 04-08-2013 [eluser]CroNiX[/eluser] instead of Code: include('http://www.childrensmedgroup2.com/index.php/includes/header_two_column'); Code: include('/home/path/to/your/includes/header_two_column.php'); It's just the actual path to the file, like any other file on your hard disk. I don't use EE2 but I don't know why it'd be any different than any other php file. This will only work if both sites reside on the same server. Site moved to another srever - CI generates errors - El Forum - 04-08-2013 [eluser]CMG Dev[/eluser] Well, you should to know that Code: include('http://www.childrensmedgroup2.com/index.php/includes/header_two_column'); is a route not direct access file. In this case it is index.php and header_two_column doesn't exits at all as a file. Any clue? |