Welcome Guest, Not a member yet? Register   Sign In
Site moved to another srever - CI generates errors
#1

[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

Severity: Warning

Message: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0

Filename: layouts/front_layout.php

Line Number: 28
A PHP Error was encountered

Severity: Warning

Message: include(http://www.childrensmedgroup2.com/index.php/includes/header_two_column) [function.include]: failed to open stream: no suitable wrapper could be found

Filename: layouts/front_layout.php

Line Number: 28
A PHP Error was encountered

Severity: Warning

Message: include() [function.include]: Failed opening 'http://www.childrensmedgroup2.com/index.php/includes/header_two_column' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')

Filename: layouts/front_layout.php

Line Number: 28

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
#2

[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.
#3

[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
#4

[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.
#5

[eluser]Interact Marketing[/eluser]
Can you explain to me how can I include design templates from EE2 to CI using path?

Thanks
#6

[eluser]CroNiX[/eluser]
instead of
Code:
include('http://www.childrensmedgroup2.com/index.php/includes/header_two_column');
you'd
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.
#7

[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?




Theme © iAndrew 2016 - Forum software by © MyBB