Need help on Strange Problem |
[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
[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;
[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...
[eluser]Krunal[/eluser]
Getting no error related to CSS / Image... What could be wrong.?
[eluser]Krunal[/eluser]
Hi, Looking into HTML Source from firefox... we found that.. CI doesn't convert base url ..? Code: <img src="<? echo base_url() . /images/.....jpg"> What could be wrong, and where to fix it? Thanks in advance.. Krunal
[eluser]umefarooq[/eluser]
for images use html helper Code: <?=img('images/...jpg')?> it will automatically add base_url will create images on page. you can see your code is also wrong Code: <img src="<? echo base_url() . /images/.....jpg">
[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
[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
[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 <? 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. |
Welcome Guest, Not a member yet? Register Sign In |