Domain Migration Error from Dev Site to Live Site

  • Posts: 27
  • Thank you received: 3
8 years 3 weeks ago #254548

-- HikaShop version -- : 2.4.x

I created a website as a development site on a specific domain that was only intended for temporary usage, once ready it would be migrated to a new domain.

I have successfully migrated and modified the database name as well as configurations so that the new domain works as intended.

However, every time an order is placed the order is sent to the old website and old domain. I am even receiving emails from HikaShop that say:

Hello,
A merchant_name notification was received with the status Accepted. The order is now confirmed.

This notification was for the order on the website example.com/hikadev/
You can access the order details directly by clicking on the link below after logging in your back end:
example.com/hikadev/administrator/index....l=order&task=listing


So even though the live site and the true domain is working to generate orders, the orders are being associated to the old site. Is there any reason you can think of that might cause this?

Note* - I am aware of the out of date version of the component but that shouldn't have anything to do with domain issues.


Personal: michaeltunnell.com
Business: visuex.com

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 3 weeks ago #254552

Hi,

It's probably that you didn't update the live_site variable of the configuration.php file of your Joomla website with the new URL.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 3
8 years 3 weeks ago #254583

nicolas wrote: It's probably that you didn't update the live_site variable of the configuration.php file of your Joomla website with the new URL.


You are correct. I did not update that variable but that is because that variable was empty to begin with. I have edited the variable to have the new domain just in case but I don't believe that is the cause. Any other ideas?


Personal: michaeltunnell.com
Business: visuex.com

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 2 weeks ago #254586

Hi,

If you edit your email via the menu System>Emails and look at the preload section, you can see that the URLs of that email use the constant HIKASHOP_LIVE
And if you look at administrator/components/com_hikashop/helpers/helper.php you can see that this constant is defined based on JURI::root():

define('HIKASHOP_LIVE', rtrim(JURI::root(),'/').'/');
And that function is supposed to return the root of the website:
docs.joomla.org/JURI/root
And looking at the file libraries/joomla/uri/uri.php you can see that it bases itself on the live_site parameter in order to return the current root URL of the website. So that should do it.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 3
8 years 2 weeks ago #254650

That all makes sense but I changed the variable value as suggested yesterday but still I received an email this morning with the same problem of the old domain. Is it possible that the site could actually be redirecting to the old dev domain which is why the emails are displaying this issue because it is accurate on the old site and an unintended redirect is happening?

Edit: I figured it out. It was a redirect problem with a leftover override that I hadn't addressed that was in fact causing a redirect. I've solved it now. Thanks for the assistance in narrowing down the issue.


Personal: michaeltunnell.com
Business: visuex.com
Last edit: 8 years 2 weeks ago by MichaelTunnell.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum