[Skip to main content](#vessel-content)

#   Domain Migration Error from Dev Site to Live Site

##

- **[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")**
- [![MichaelTunnell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31931.jpg)](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile") Topic Author
- [ Offline](/forum/user/31931-michaeltunnell)
- Designer, Developer, Writer, Linux Enthusiast.

Less More

- Posts: 27
- Thank you received: 3
-
-
-
- [](http://michaeltunnell.com)
-

10 years 3 weeks ago [\#254548](#254548) by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")  *[Domain Migration Error from Dev Site to Live Site](/forum/27-checkout/887337-domain-migration-error-from-dev-site-to-live-site#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:  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&#42; - I am aware of the out of date version of the component but that shouldn't have anything to do with domain issues.")* was created by *[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")*

-- 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/](http://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&amp;task=listing](http://example.com/hikadev/administrator/index.php?option=com_hikashop&ctrl=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](http://michaeltunnell.com)
Business: [ visuex.com](http://visuex.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzMzNy1kb21haW4tbWlncmF0aW9uLWVycm9yLWZyb20tZGV2LXNpdGUtdG8tbGl2ZS1zaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

10 years 2 weeks ago [\#254552](#254552) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Domain Migration Error from Dev Site to Live Site](/forum/27-checkout/887337-domain-migration-error-from-dev-site-to-live-site#254552 "-- 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:  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&#42; - I am aware of the out of date version of the component but that shouldn't have anything to do with domain issues.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzMzNy1kb21haW4tbWlncmF0aW9uLWVycm9yLWZyb20tZGV2LXNpdGUtdG8tbGl2ZS1zaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")**
- [![MichaelTunnell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31931.jpg)](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile") Topic Author
- [ Offline](/forum/user/31931-michaeltunnell)
- Designer, Developer, Writer, Linux Enthusiast.

Less More

- Posts: 27
- Thank you received: 3
-
-
-
- [](http://michaeltunnell.com)
-

10 years 2 weeks ago [\#254583](#254583) by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")  Replied by *[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")* on topic *[Domain Migration Error from Dev Site to Live Site](/forum/27-checkout/887337-domain-migration-error-from-dev-site-to-live-site#254583 "-- 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:  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&#42; - I am aware of the out of date version of the component but that shouldn't have anything to do with domain issues.")*

> 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](http://michaeltunnell.com)
Business: [ visuex.com](http://visuex.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzMzNy1kb21haW4tbWlncmF0aW9uLWVycm9yLWZyb20tZGV2LXNpdGUtdG8tbGl2ZS1zaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

10 years 2 weeks ago [\#254586](#254586) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Domain Migration Error from Dev Site to Live Site](/forum/27-checkout/887337-domain-migration-error-from-dev-site-to-live-site#254586 "-- 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:  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&#42; - I am aware of the out of date version of the component but that shouldn't have anything to do with domain issues.")*

Hi,

If you edit your email via the menu System&gt;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(): Code:

define('HIKASHOP_LIVE', rtrim(JURI::root(),'/').'/');

And that function is supposed to return the root of the website:
[ docs.joomla.org/JURI/root](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzMzNy1kb21haW4tbWlncmF0aW9uLWVycm9yLWZyb20tZGV2LXNpdGUtdG8tbGl2ZS1zaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")**
- [![MichaelTunnell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31931.jpg)](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile") Topic Author
- [ Offline](/forum/user/31931-michaeltunnell)
- Designer, Developer, Writer, Linux Enthusiast.

Less More

- Posts: 27
- Thank you received: 3
-
-
-
- [](http://michaeltunnell.com)
-

10 years 2 weeks ago -  10 years 2 weeks ago [\#254650](#254650) by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")  Replied by *[MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile")* on topic *[Domain Migration Error from Dev Site to Live Site](/forum/27-checkout/887337-domain-migration-error-from-dev-site-to-live-site#254650 "-- 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:  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&#42; - I am aware of the out of date version of the component but that shouldn't have anything to do with domain issues.")*

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](http://michaeltunnell.com)
Business: [ visuex.com](http://visuex.com)

Last edit: 10 years 2 weeks ago by [MichaelTunnell](/forum/user/31931-michaeltunnell "View MichaelTunnell's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzMzNy1kb21haW4tbWlncmF0aW9uLWVycm9yLWZyb20tZGV2LXNpdGUtdG8tbGl2ZS1zaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
