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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - - 9:00 – 18:00
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 5 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 7 months ago.

Assisted by: Christopher Amirian.

Author Posts
September 2, 2022 at 3:43 pm #11978785

jasonB-19

On our live website at hidden link, I can see WPML is trying to load two files from our password-protected staging website.

<link rel='stylesheet' id='wpml-legacy-dropdown-click-0-css' href='//md7.dwelltekagency.com/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/legacy-dropdown-click/style.min.css?ver=1' media='all' />

hidden link

I can see this when I view the source on the live website:
view-source:hidden link

When I look at the live database, I do not see any references to md7.dwelltekagency.com at all.

How can I resolve this so it pulls from the correct location, or, remove it if not needed anymore?

September 5, 2022 at 5:49 am #11986175

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

We are not sure why this is happening that is why we need you to follow the steps below to make sure we eliminate possible causes one by one:

Clear Cache

- IMPORTANT STEP! Create a backup of your website.
- Go to "WordPress Dashboard > WPML > Support".
- Click the "Troubleshooting" link.
- Click the buttons below:
- Disable cache for language switcher templates
- Clear the cache in WPML
- (Do not click any other buttons_
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button without changing anything to purge permalinks cache.

Redirect Plugin

Check the "Redirect" plugin settings to see if there is a redirection set there for some reason to the staging version. Try to delete if there are some and deactivate the plugin and test.

Change the link format and turn it back again

- IMPORTANT STEP! Create a backup of your website.
- Go to "WordPress Dashboard > WPML > Languages > Language URL Format".
- Check the "Different languages in directories" checkbox.
- Click the "Save" button.
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.
- Check if the problem is not there anymore.
- Switch back to separate domain mode again.

Thanks.

September 6, 2022 at 1:42 pm #11997841

jasonB-19

Hi,

Thank you.

- Cache was never enabled for language switcher templates.
- Saved Permalinks as requested
- Nothing in Redirection for stage site
- Changed the link format from Directories to Parameter, Saved, then reverted back again
- Purged cache in CloudFlare

No change, same issue.

September 7, 2022 at 6:51 am #12002027

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you for doing the tests. I'd appreciate it if you could use either the Duplicator plugin:

https://wordpress.org/plugins/duplicator/

Or All in one migration plugin:

https://wordpress.org/plugins/all-in-one-wp-migration/

To create a dump of your website and download it.

Then please use a file sharing service to upload it and share the link with us in the next reply.

Please make sure that you set the next reply as private.

We will try to install it on our local machine and investigate the issue.

Thanks.

September 13, 2022 at 12:05 pm #12042621

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you very much for the dump, I managed to install it on the local machine.

I could not find any trace of the old URL that you mentioned there.

If you want I will try to upload the dump somewhere to show.

It seems to be something related to the environment that you are in rather than WPML code.

Thanks.

September 22, 2022 at 6:18 am #12100317

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Our second tier support mentioned the point below:

Clearing "wpml_language_switcher_template_objects" in wp_options table solved it. Can also be done in the deployment process via

$ wp option delete wpml_language_switcher_template_objects

Would you please tets the workaround and get back to us with the result?

Thanks.

The topic ‘[Closed] legacy-dropdown-click javascript and CSS files loading from wrong domain for’ is closed to new replies.