Link to home
Start Free TrialLog in
Avatar of rnsr
rnsrFlag for India

asked on

Open Cart configuration

I am unable to configure open cart properly.  refer to this url  - http://104.196.166.154/

I can see proper when i view on server with http://localhost

Please help

Attached Image.
opencart_error_screen.png
Avatar of David Favor
David Favor
Flag of United States of America image

Problem looks to be how you've crafted your links.

Take for example this link...

<script type="text/javascript" src="catalog/view/theme/globethm/js/jquery-2.1.1.min.js"></script>

Open in new window


This means catalog is relative to where ever you or your server happen's to have it's current working directory set.

Highly unlikely this will work anywhere, except your local runtime environment.

Change all your links to start with /catalog rather than catalog, to bind all file accesses to your DocumentRoot directory.
WebPageTest Report provides a visual representation of the problem.

Each red bar refers to a file which can't be located + served, due to how you've crafted your links.

Fix the above + likely your site will start working.
SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Best to just remove base href, as setting this will always cause problems when changing location of your site.

Use DocumentRoot pinned paths + your site will work where ever you install it (whatever directory structure).

After you change/delete the base href, you can run another WPT report (as I did above) to verify your links are fixed.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rnsr

ASKER

Thanks all . Solved the issue with the help.
Avatar of rnsr

ASKER

Thank you all