Welcome Guest, Not a member yet? Register   Sign In
Need help on Strange Problem
#1

[eluser]Krunal[/eluser]
Hi,

I've a site developed in CI, which runs perfectly on Hosting Server, but gives problem when we try to run it on local WAMP server on Windows Machine.

The issues are:

No Style sheets or Images are loaded.

All dynamic contents are missing.

It gives Parse error on home page... Parse error: parse error in C:\wamp\www\iceasurat.org\system\libraries\Loader.php(704) : eval()'d code on line 569

What could be wrong? We're trying to fix it on local, but failed to get it run perfectly.

Looking forward for your help on how to fix this.

Thanks in Advance...

Krunal
#2

[eluser]umefarooq[/eluser]
hi in your config file set the log_threshold value 4 and check the logs in you system folder you can find where is the problem and error

Code:
$config['log_threshold'] = 4;
#3

[eluser]Krunal[/eluser]
Hi,

thanks for your help...

Now nothing load... blank page come on local host.

checking log file generated.......

revert back to you... soon...
#4

[eluser]Krunal[/eluser]
Getting no error related to CSS / Image...

What could be wrong.?
#5

[eluser]Krunal[/eluser]
Hi,

Looking into HTML Source from firefox... we found that.. CI doesn't convert base url ..?

Code:
<img src="&lt;? echo  base_url() . /images/.....jpg">

What could be wrong, and where to fix it?

Thanks in advance..

Krunal
#6

[eluser]umefarooq[/eluser]
for images use html helper

Code:
&lt;?=img('images/...jpg')?&gt;

it will automatically add base_url will create images on page. you can see your code is also wrong

Code:
<img src="&lt;? echo  base_url() . /images/.....jpg">

it should be like this

<img src="&lt;? echo  base_url() . '/images/.....jpg'?&gt;">
#7

[eluser]Krunal[/eluser]
Hi,

No still it isn't working...

What could be wrong.. as the same code works well on hosting environment.?

Why this isn't working on local?

Regards,

Krunal
#8

[eluser]xwero[/eluser]
have you changed the base_url setting?
#9

[eluser]Krunal[/eluser]
no...

but got it worked.. after changing following...

Enable Short Open Tags on PHP settings...

Enable Rewrite Module on Apache...


Thank you for your help....

Regards,

Krunal
Synergy Informatics
#10

[eluser]n0xie[/eluser]
Just a small note: be careful with using short tags. It is considered bad practice since it can be confusing to both a webserver and a developer what you mean. Remember XML starts with &lt;? as well and so do some other script languages.

Also you can use CI short tag parser if need be. You can turn it on in your config file.




Theme © iAndrew 2016 - Forum software by © MyBB