• Resolved molinan

    (@molinan)


    Hi,

    This is the first time I’m trying to migrate a WP site that makes use of Polylang. I think I’m having difficulties making Polylang aware of the domain change.

    At the original domain everything works. But in the new domain, I can’t get the language subdomains working properly, with the links on the menus pointing to the older domain. It would seem to be a problem related to the theme (Avada with a child theme) but I’ve used this method previously with no errors of this kind.

    I’ve tried this with no luck: https://www.ads-software.com/support/topic/polylang-breaks-after-moving-site-to-live-domain

    I’ve also tried using “Go live” plugin to update old URLs, with the same result: old links in menus and everywhere on the theme. I’ve never experienced this previously with “Go live”.

    As a last resort, I’ve tried to replace old URLs directly in the .sql before importing. Then I got this error, in case it could help:

    Notice: Undefined index: in /var/www/vhosts/MY_DIRECTORY/wp-content/plugins/polylang/include/model.php on line 783
    
    Fatal error: Class 'PLL_Links_' not found in /var/www/vhosts/MY_DIRECTORY/wp-content/plugins/polylang/include/model.php on line 784

    I’m sorry if couldn’t give you meaningful details. I’ll provide any information if you ask for it.

    Thank you very much for your support. Thank you very much for your plugin too.

    Regards,

    https://www.ads-software.com/plugins/polylang/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hello

    Try to re-save your Polylang settings.

    Does it work?

    Thread Starter molinan

    (@molinan)

    Hi,

    Neither re-saving Polylang settings nor Permalinks settings did work for me.

    Thank you for your advice.

    Thread Starter molinan

    (@molinan)

    Hi again,

    It turned out to be all my fault: I did not correctly set the path for the wildcard subdomains in my server.

    Thank you very much for your attention and sorry! Rushes are not a good thing…

    Regards,

    Hello! I had an exact same problem, you can explain: “set the path for the wildcard subdomains in my server” ??? Thanks!

    Thread Starter molinan

    (@molinan)

    Hi!

    Yes, I forgot to set up the “Document root” in my hosting (Plesk) pointing to the path where the WordPress installation were stored (usually called the “Document root”). That is, under Plesk, the Document root for the wildcard subdomain (*.example.com) must point to the same WordPress installation path from the main domain (example.com).

    For instance: for the domain example.com, if you have your Document root pointing to your WordPress installation path in

    /var/www/vhosts/example.com/

    then the Document root for the wildcard subdomain *.example.com must point to the same path:

    /var/www/vhosts/example.com/

    If you don’t/can’t use wildcard subdomains, I guess you could set up multiple subdomains either (depending on the languages you intend to use).

    I hope this could help you.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems migrating site to another domain’ is closed to new replies.