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.

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by Dražen 1 year, 8 months ago.

Assisted by: Dražen.

Author Posts
October 5, 2023 at 6:27 am #14516829

Murat Gumrukcuoglu

If we go to SE language on the frontend the page takes very long time to load.

When we analyze processes we see that path to the mo file is wrongly generated and keeps generating.

see following video:
hidden link

We have already asked about this at Rankmath support, but they told us that it's being generated by WPML plugin.

access("public_html/wp-content/plugins/seo-by-rank-math/languages/rank-math-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-es-ES.mo", R_OK) = -1 ENOENT (No such file or directory)
October 6, 2023 at 6:19 am #14524147

Dražen
Supporter

Languages: English (English )

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

Hello,

from what you shared I see files are being loaded by Rankmath, not WPML.

I suggest checking if the issue still happens when WPML is disabled, if you are checking on ES language, you can switch to the ES language when WPML is disabled from WordPress > Settings, and see if the same issue happens for ES language without the WPML plugin.

Let us know how it goes.

Regards,
Drazen

October 6, 2023 at 7:52 am #14524803

Murat Gumrukcuoglu

Hallo,

we have disabled wpml and switched language to be Espanol,
hidden link

there i don't have such problem.
but when we do that on the live site we do have such issue:
hidden link

October 6, 2023 at 8:41 am #14525599

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

1) How can I check and confirm the same issue by visiting the website or if possible when I am logged in?

Since I checked both links and do not see much difference.

2) Does the issue still happen when using WP default theme and only WPML plugins and Rank math enabled, all other disabled?

Thanks,
Drazen

October 6, 2023 at 9:44 am #14526105

Murat Gumrukcuoglu

Hallo,

hidden link you can add nocache flag. because live site has wp-rocket plugin. on test i have disabled it.

disabled all plugins switched theme :
hidden link

although it seem something strange when i have activated plugins i recieved errors with duplicate entries.. also it seem that menu and etc are from german language instead of es.

October 6, 2023 at 10:49 am #14526515

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

Okay, let me check the staging site to see what happens.

Please make a full backup of your site (files and database) and confirm it in your next reply.

Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.

I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.

You can safely add your information into these fields.

Regards,
Drazen

October 6, 2023 at 11:50 am #14527151

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

I have checked but I am afraid I am not sure how should I see the same issue you are reporting, I do not see anything suspicious.

I checked with the query monitor on what files are being loaded, and all seems okay, except for Spanihs using the wrong locale, so I changed it to es_ES.

Please share with me step by step guide on how to check the issue.

Regards,
Drazen

October 6, 2023 at 1:18 pm #14528451

Murat Gumrukcuoglu

Hallo,

if you check video we use strace on ssh to attach it to the process we see that is being used by spanish site.

the locale it's something that the company has desided to be this way.

if you need we can give ssh access if you provide us with key.

October 6, 2023 at 1:38 pm #14528749

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I understand, but is there any other way to check? Since the website is trying to load the files there must be some other trace, in the query monitor or log or HTTP requests.

In the end, I would need to check this on another test server to confirm issue is not related to server and we might not have SSH access there.

Can you please check and let me know.

Thanks,
Drazen

October 9, 2023 at 6:16 am #14535947

Dražen
Supporter

Languages: English (English )

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

Hello,

okay, these files are normal to be missing if they are not created or existing, and it is expected since you are using custom language code, for which translation then does not exist.

What WPML does here, is then load translation files you created via WPML String translation, but I think there is some permission issue and WPML can not create it.

I also tried to install some migration plugins, to try and test this on another server but I get error installation failed can not create a directory.

Can you please check further on this and make sure WP and WPML can create new directories and files?

Thanks,
Drazen

October 9, 2023 at 6:25 am #14535955

Murat Gumrukcuoglu

Hallo,

it should be working now.. plugins where under wrong user.

October 9, 2023 at 8:51 am #14537271

Dražen
Supporter

Languages: English (English )

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

hello,

thanks.

I am trying to create a Duplicator package, but it seems to runs very slowly and gets canceled after some time.

Can you please check and create one so we can further test? Make sure to exclude large files like wp-uploads etc, so the size is kept to a minimum.

- https://wpml.org/faq/provide-supporters-copy-site/

Thanks,
Drazen

October 10, 2023 at 6:52 am #14544945

Murat Gumrukcuoglu

Hallo,

i have created the duplicator backup, you can download this package from the site.

October 10, 2023 at 9:27 am #14548055

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

I have checked further and updated WPML plugins and run some Troubleshooting tools. Now I do not see such a difference in loading time for ES languages.

It is 0.47s with or without the Rank Math plugin and WPML VS 0.22s when WPML is disabled.

So, it seems the same issue with the loading time increase on ES is not happening anymore, please check.

Regards,
Drazen

October 10, 2023 at 10:39 am #14548795

Murat Gumrukcuoglu

Hallo,

yes now i see it too i have updated plugin on the main site and now ES site works also very fast. (our theme with logged in user 1.18s)