Support » Plugin: Translate WordPress with GTranslate » Corruption when using staging

  • Resolved ajtruckle

    (@ajtruckle)


    My plugin settings uses the custom section to change how the menu is displayed.

    But when I use the WordPress staging system to duplicate my site I find this advanced code gets corrupted. All the special text like Chinese etc gets messaged up.

    As a result I can’t use staging feature of WordPress. I discussed with my domain provider and they say it is a plugin matter.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    Most likely you do not use the same encoding type for your database.

    You can copy/paste the widget code from your live site into staging manually and try to save.

    Thanks!

    This is not resolved. I know that I can copy the code from the source site to the staging site.

    The point is that I might forget, or another user might not even be aware of the problem. So they go and make the staging site, do some stuff, restore the staged site to the master site and blow up – now the original good code is gone.

    The “resolve” to this issue is to prevent corruption in the first place when performing the staging process.

    Plugin Author edo888

    (@edo888)

    Hi,

    As I have mentioned in another support request, unfortunately it is not possible to guess your customizations on widget code and keep them when you change different settings. As mentioned widget code section is for advanced users and must be used with caution, make sure that you do not forget anything and do not do mistakes.

    Thanks!

    I am suggesting that you extend your GUI to allow enhanced formatting for the menu items. Then we do not have to use widget code.

    Plugin Author edo888

    (@edo888)

    Please check my reply on another support request.

    Thanks!

    Yes, I responded to wrong one. In this case it is important that you inform users that there is this potential for corruption of widget data when using stage rebuilding. In the read me or something.

    And, you should warn the user that the widget data will be replaced with default if they choose new languages etc.

    This gives them a chance to back out and copy the source widget content.

    Plugin Author edo888

    (@edo888)

    As I have mentioned earlier I do not want to complicate the plugin. It is mentioned that Widget Code section is for advanced users. You need to understand what you are doing to use it.

    Thanks!

    Well, yes, that is why I used it! But it took me ages to enter in all the langues as native text.

    I asked a developer to do some work on my site (gave him temporary login). In fact he was working with RTL languages and he decided as a test to add Urdu.

    He did not realise I have customised the widget. He did not realise that by ticking urdu he lost everything I have input. I had to reconstruct the whole thing from my own documentation I have on the native languages.

    Plugin Author edo888

    (@edo888)

    It can happen with anything, not only with GTranslate. Use backups.

    Thanks! 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.