Dear customer,
Ticket "site is moved to new location and display a development site banner in footer" has been marked as Resolved by supporter.
Below is transcript of the chat:
site is moved to new location and display a development site banner in footer
nickS-28 : hello
Noman : Hi,
Thank you for contacting WPML Support.
Noman : How may I help you?
nickS-28 : hi, i use a sating environment and a live website
nickS-28 : the usual setup was that I do things in the staging and push it live, which worked well.
nickS-28 :
However, WPML does not seem to be coded without errors in that regard and it happend before that it all of a sudden switched the staging with the live website
nickS-28 : let me show you,
nickS-28 : I just need to find the info, unfortunately the WPML website is extremely slow
nickS-28 : currently, it says that on the staging, which seems correct. yesterday however, this message was suddenly displayed on the live website
nickS-28 : now it says I cannot edit in the staging
nickS-28 : the desired solution is very simple and consists of two parts
nickS-28 : 1- the live site should never show the message that it is a development site, because it isnt
nickS-28 : 2. translations should be possible to edit in the staging (currently not possible according to WPML, see attacjhment)
Noman : Thanks for the details.
nickS-28 : So if you could help me set this up, thatd be great, or a least confirm that WPML is not fully compatible with staging environments
Noman : 1. Could you please make sure you have generated a production site key and registered WPML with that key on your live site?
nickS-28 : sure, how do I validate it?
nickS-28 : are we still connected?
Noman : Yes, we are.
nickS-28 : ok 🙂
Noman : I was preparing a screenshot
Noman : Please go to the Sites page: https://wpml.org/account/sites/
Noman : And you can see the icons in front of the sites
Noman : User means this site is registered as Production and gear/settings means it\'s a development site.
Noman : That\'s fine
nickS-28 : ok, and for the actual staging hidden link
nickS-28 : i create a new key now?
Noman : If you have created a new key, then please go to Plugins >> Add new > Commercial tab and click the ‘Unregister WPML from this site’ link if that link exists.
- Please click the ‘Register WPML’ link.
- Copy the key and paste it back to the input box and press the Register button.
nickS-28 : ok done
Noman : Great thanks, I hope now you will not face this type of issue again.
nickS-28 : so no I should be able to translate in staging, push it live, and everything related to WPML will function?
Noman : the above steps was for your first problem.
Noman : For your second issue, when the URL is changed it affects your WPML site key, automatic translations, and features of the Advanced Translation Editor. WPML walks you through setting up your site correctly after a URL change.
Noman : It displays this type of banner to choose the option
nickS-28 : i see somethign else
nickS-28 : it still says I cannot edit translatiosn in the staging envuronment
Noman : This banner shows when we choose the \"No\" option from the above notification
nickS-28 : what do I need to to now to achieve the following:
1. the footer message \"development\" site stays aways from the live website
nickS-28 : 2. translations can be edited in staging- it says: You cannot edit translations on this site.
Noman : 1. As you have added a production site key, I hope it wouldn\'t appear again.
2. When you migrate your site from staging to production, please choose the \"Yes\" option then you will be able use WPML on both sites.
nickS-28 : i never migrate it, the staging is constantly there and always is pushed to production when updates are made
nickS-28 : also, this banner with yes/no does not show up
Noman : Ah okay, can you please check if you are facing the same issue that is reported here: https://wpml.org/errata/persistent-warning-this-site-has-moved-to-a-new-location/
nickS-28 : i dont see this anywhere
nickS-28 : i see this
Noman : Can you please try to press this link and see if this will allow you to add/edit translation from staging site?
nickS-28 : ok
nickS-28 : now it just shows the same message in the backend of the production website
nickS-28 : is this correct?
nickS-28 : now it says: This site is registered on wpml.org as a development site.
nickS-28 : on the development site, which looks correct
nickS-28 : the gear and person icons still look correct in my wpml account
nickS-28 : and I see this in the backend of the live website
nickS-28 : \"This site has moved to a new location\" jsut seems pretty misleading
Noman : Okay, are you able to edit the translation from the staging site now?
nickS-28 : I can edit translations on both websites
nickS-28 : so the message is weird
Noman : This message displays when the site key is registered as development
nickS-28 : I think it may be a bug?
nickS-28 : I dont understand why this would be such an issue. can you please confirm that WPML was designed to function with a staging environment?
Noman : No, it\'s an expected behavior to display a development site banner on those sites that key is generated as development
Noman : Yes, I can confirm that you can use WPML in a staging environment.
Noman : Please go to WPML >> Translation Management page of your staging site and let me know if you are still seeing the same banner there?
nickS-28 : we use a one-click staging solution by siteground. we always work in the staging, click \"push live\" when updates are made, and that\'s it
nickS-28 : so Im not sure if WPML only works with staging environment one a one-time basis with a migration afterwards that dissolves the staging, or whether it can work for this setup on an ongoing basis
Noman : Glad to see that the banner is gone and you are able to edit the translation from the staging site now.
nickS-28 : we always want to use the staging
Noman : Okay, whenever you push the changes to the live site and if WPML shows a banner \"WPML has detected a new address of this site\" or similar, please choose the \"Yes\" option which means you want to keep the staging site.
nickS-28 : where will this show?
Noman : It usually shows on WPML >> Translation Management page
nickS-28 : i mean in the backend of the lvie or staging website?
Noman : It may display on both sites when you push the changes to live
Noman : Here is a doc for more details: https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/
nickS-28 : so I only have to click yes, after pushing it live, and then we can continue to use the setup?
Noman : Yes, exactly
nickS-28 : ok thx, we just needed the confirmation that this can work with wpml on an ongoing basis
nickS-28 : and not just as a one-time solution for migrating a development website
nickS-28 : I think the wording is not ideal and does not make everythign entirely clear
Noman : Yes, you only need to choose the \"Yes\" option whenever that banner shows, I hope you will not face any issues.
nickS-28 : thx a lot Noman, hope it will work
nickS-28 : thanks 🙂
Noman : If you encounter any issues in future, please feel free to create a new chat any time and we would be more than happy to help.
Noman : You\'re welcome, have an excellent day ahead, bye 🙂
The state of this thread is:
Resolved
the same bug reappeard, it only allows one site to be connected to wPML, and WPML does not seem to understand that there is a staging and a live website
What are your results aftter clicking on "Yes" and then on the next step "Yes" again and following the steps to connect the staging and live environments to share the same ATE Account.
The topic ‘[Closed] wpml not compatible with staging environments’ is closed to new replies.