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
rnsrAsked:
Who is Participating?
 
F IgorConnect With a Mentor DeveloperCommented:
In your opencart configuration you need to set the default hostname for your store, If you used http://localhost/ for testing, then you need to change to the right url.

https://forum.opencart.com/viewtopic.php?t=86595

See also your configuration in Admin / Sotres and view your current Store URL
1
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
Your files are there, http://104.196.166.154/catalog/view/theme/globethm/css/bootstrap.css the issue is your base tag is pointing to localhost. This is why it works locally and not remotely.

<base href="http://localhost/" />

Open in new window


Try removing that or changing to
<base href="http://104.196.166.154/" />

Open in new window


https://www.w3schools.com/tags/tag_base.asp
1
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
 
rnsrAuthor Commented:
Thanks all . Solved the issue with the help.
1
 
rnsrAuthor Commented:
Thank you all
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.