Temp URL works... Regular URL WIll not show website: opencart

Avatar
  • Answered
I moved my opencart website from my development website over to inmotion.

http://biz142.inmotionhosting.com/~larand5/

The temp URL worked perfectly. When I switched the DNS to inmotion, my menu bars all loaded but no products or products categories. It was essentially and empty website. I just switched the DNS back for now but if you look soon the website is larandproducts .com

What could the problem be?
Avatar
JacobIMH
Hello richmondarn, and thanks for your question. This is a very odd probably, as typically you'll have issues with things not displaying properly on the temporary URL, but when using the full domain they work fine. I pulled up Google Chrome's developer tools and found that it seems on the temporary URL version of your site the following files are being included, that are not even attempting to get written into the HTML on the full domain version of the site:
carousel.css
flexslider.css
jquery.cycle.js
jquery.dcjqaccordion.js
jquery.flexslider-min.js
jquery.jcarousel.min.js
I've been looking at this for a bit, and haven't come across any reasoning yet why this would be happening. What's extra strange is the fact if you take carousel.css for instance it is being included over the Temp URL like:
http://biz142.inmotionhosting.com/~larand5/catalog/view/theme/bigshop/stylesheet/carousel.css
But it works perfectly fine over the full domain as well:
http://www.larandproducts.com/catalog/view/theme/bigshop/stylesheet/carousel.css
So it would seem that there is some JavaScript that isn't running that is triggering the include of these various CSS stylesheets and JavaScript files when using the full domain name. I did some poking around, and actually got it to work for you by modifying your _store MySQL database table, and changing the url for the store from http://larandproducts.com/ to http://biz142.inmotionhosting.com/~larand5/. I'll admit I have no clue why this is working, as the exact opposite behavior is to be expected. Also strange enough if I setup a cronjob to simply run PHP directly on your index.php file and output it to an HTML file, it has all of the data. I'm assuming something might have been done either in your development process, or switching it over to our server where the temporary URL somehow became integrated as the expected real domain name. Although I don't see it anywhere in your database, or in any of the config files, so I am at a bit of a loss. But anyways at least it seems to be working now! One other interesting thing of note, if you go to System > Settings in your admin dashboard. You have 2 stores setup with identical info it looks like, and the top one is enabled indicated by the (Default) text. However if you click on Edit for that one, you'll notice it starts off with setting the Store Name. Where as if you go back and choose the other store that isn't enabled, it begins with the Store URL. So I definitely feel that something a bit out of the ordinary is going on here. If you happen to have any insight to share on what in the development process you think might have caused this strange behavior I'd be really interested to know cause this one is a real head scratcher! If you had any other questions at all as well please let us know! - Jacob