Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Bucharest (GMT+02:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Mihai Apetrei 2 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
October 18, 2024 at 7:47 am #16303063

alfredoR

Background of the issue:
I am trying to migrate our site from a temporary host inforyde.mi-web.online to the production URL inforyde.com. We are using Avada. We export/import the database to the new site, copy all the files, configure wp-config.php to use the new database, and change the URLs for the site.

Symptoms:
WPML detects that the site has changed and asks if I have changed the address. After confirming, WPML cannot connect to the server. Attempting to remove the license to add a new one crashes the WP backend, preventing access to wp-admin unless the WPML folder is removed and APACHE is restarted.

Questions:
Am I migrating right?
How can I solve this?

October 18, 2024 at 11:56 am #16304566

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there,

I believe something is going wrong during the migration process.

To migrate your site, I recommend using the following plugin:
- https://wordpress.org/plugins/duplicator/

You can find the documentation here:
hidden link

Here's a brief tutorial on how to use Duplicator:
hidden link

This plugin should easily handle the URL-replacing process.

After migration, register WPML on your new site and enter the new key:
Log in to your WPML account >> go to the "Sites" page (https://wpml.org/account/sites/) >> Remove your old site domain >> add your new site >> it will provide you with a new key which you can add to your site in Plugins > Add new > Commercial.

I hope you find this information helpful 🙂

Please let me know how things go.

Kind regards,
Mihai Apetrei

October 18, 2024 at 2:18 pm #16305209

alfredoR

Hi Mihai,

I'm not very keen on using Duplicator, I've tried in the past and have had some problems, but anyway, I think doing it manually like I'm doing is good enough. In fact after migrating WPML is working fine, the only problem is that I have the message at the bottom that this is a development site or something like that, and I cannot remove the old, development license to add a new one.

Even if I'd do it with Duplicator, after migration I'd have already my WPML registered, but with the key corresponding to the development site, so first I would need to unregister it, and at that point is where WP is crashing.

How can just a click on "unregister" takes down the whole WP admin?

Thanks

Alfredo

October 18, 2024 at 9:10 pm #16306536

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi Alfredo.

Thank you for the clarifications.

WordPress should definitely not break when you try to go to Plugins > Add new > Commercial > and register WPML with the new production key.

Can you enable the WordPress debug log and recreate the issue to see if we are getting an error message so that we can better understand where the error is coming from?

This will allow us to see if any PHP errors are being produced.

To do that, we can edit the wp-config.php file inside our WordPress directory and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Now, can you try to reproduce the issue once again?

You should then be able to locate the debug log in: /wp-content/debug.log

Paste the content (if any) on a site like pastebin.com and then share the link with us (the URL you are sharing will be visible only to you and us; it will be automatically hidden for anyone else).

Relevant Documentation:
https://codex.wordpress.org/Debugging_in_WordPress

Also, one other thing that you can try is to disable all the non-WPML plugins, switch to a WordPress default theme, and then only after that try to register WPML. Maybe there is a compatibility-related issue causing that crash.

Please let me know how things go.

PS: Please note that I won't be working over the weekend, but I will be able to get back to you at the beginning of next week if any replies come over the weekend.

October 21, 2024 at 7:56 am #16310601

alfredoR

I'll try to reproduce it in another environment and send you the logs. Thanks

October 21, 2024 at 11:00 pm #16314612

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Thank you for the update.

That would be great.

The topic ‘[Closed] Migrating from development site to production site’ is closed to new replies.