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 5 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 8 months ago.

Assisted by: Prosenjit Barman.

Author Posts
October 7, 2023 at 2:40 pm #14532961

michaelL-16

I run a ecommerce/blog website using the latest wp version, Woomart and WooCommerce, using Elementor.
I have 3 issues since installing the WPML plugin:

1. The website will regularly try to access a page from my website or a page on my wp dashboard and get the “503 Service Unavailable” notice.
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Immediately after refreshing in 90% of the cases the page will display, but in some cases also several refreshs are necessary to get the page to display normally.

2. Links redirecting to default page. Many pages of my website have button with a href tag for a static link. Most of these links I cannot find my string translation page from WPML even though I already imported the strings of all my plugins and themes. Is there some way to change these links?
3. Besides, I do have a plugin for WooCommerce named “Buy now button”, which places a buy now button in several places in the website. In the plugin I have 1 field to set the string that should be displayed on this button, for which I use my default language. I have already imported all strings from this plugin, but despite translating all the content from this plugin, the string on all languages is still showing in the default language. Any experience with this specific plugin?

October 9, 2023 at 9:40 am #14537675

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issues you're having and will try my best to assist you in this matter.

1) "503 Service unavailable" error: The "503 Service Unavailable" error is a server-side error indicating that the server is not ready to handle the request. This issue may happen if anything on your site is consuming most of the resources on your server. Could you please check what happens if you keep other plugins disabled except for WPML and its add-ons?

If that solves the issue, start activating plugins one by one and continue to check if the issue reappears or not. In this way, you'll be able to pinpoint the plugin that is causing the issue.

You can also reach out to the Hosting provider/administrator and request them to check what mainly causing the issue. They can access the server error log, which should help pinpoint the problematic plugin or the primary cause of the issue.

2) Translating links: If you have added custom links to any post, please check the guide below to understand the process of translating links.

- https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/#how-do-i-translate-urls-with-the-advanced-translation-editor

3) Strings show in the default language even after translating it: String may not appear translated if that is not registered for translation or some other reason. Could you please follow the steps mentioned in the Guide below and check if that helps to display the translated strings in the Frontend?

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

I hope the instructions above will help. But, if you still need further assistance, feel free to let me know. I will be happy to help.

Best regards,
Prosenjit

October 9, 2023 at 1:15 pm #14540021

michaelL-16

Thanks for you prompt reply.

I have deactivated all plugins, yet the 503 error issues is still there so your recommendation did not resolve my issue. I am hosting myself, and am unfamiliar with the serverside operations. Would be great if you could provide some support on this side since these issues arised since the installation of WPML.

Translating Links:
I might be a beginner but the instructions from your link seem insufficient. There is no explaination on how to reach the general page for the "Advanced Translation Editor", so I assume that you are referring that I would have to enter the Advanced Translation Editor for a specific page on which the link is present. Well, I did that, entered the link in the search bar, as instructed, and it could not be found. So where do I go from here?

Strings not found:
Thanks, this seemed to be a reasonable way to resolve, as suggested by you. I didnt resolve the issue yet, I simply found the plugin owners forum over wordpress.org and will coordinate how to import the string from his plugin to WPML.

Can you help me check these questions? The below is account:

[Information removed]

October 10, 2023 at 5:05 am #14543777

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the updates.

Since this is a public forum, please don't disclose any sensitive information related to your site by sharing it directly in public response. If we need any information, we will enable private fields so that you can securely share them. I hope you can understand.

503 Error:
I will try my best to assist. Could you kindly share any specific actions that caused the 503 error on the site? It is also recommended to enable the WordPress Debug log and check if any errors are stored in the log file due to the error. The procedure to enable the debug log is mentioned in the link below.

- https://wpml.org/documentation/support/debugging-wpml/

If you're managing the server on your own, you can check the server log also. Since you're using an Apache server, you should find the error log in the 'var/log/apache2/error.log' folder, but the folder varies depending on the OS. Please check the link below to learn more.

- hidden link

If you identify any errors that are logged due to that 503 error, please share the full error log in the next response. I will check and let you know what to do next.

Translating links:
Sorry to hear that the information in the guide is not sufficient. However, the way you've tried is correct. If you have added a link, that link should appear in the Advanced Translation editor if you search for it. Since it is not happening, can you please share the link to the page where you're having the issue?

Looking forward to your response.

Best regards,
Prosenjit

October 10, 2023 at 6:14 am #14544595

michaelL-16

Thanks for the quick reply.

I checked the log files and found someting off regarding the WPML plugin as shown in the log output below:

WPML Plugin Errors:
The WPML (WordPress Multilingual) plugin seems to be encountering multiple errors. This could be due to a version mismatch between core WPML and its add-ons, or some files might be missing/corrupted.

PHP Fatal error: Uncaught Error: Class 'WPML_Config' not found in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php:248

WooCommerce Multilingual Plugin Errors:
WooCommerce Multilingual, which is an add-on for WPML to make WooCommerce multilingual, is also showing errors. Again, this could indicate corrupted or missing files, or a possible version mismatch.

PHP Fatal error: Uncaught Error: Class 'WCML_Locale' not found in /var/www/html/wp-content/plugins/woocommerce-multilingual/classes/class-woocommerce-wpml.php:265

I also activated the wordpress debug log, but I just did it so it didn't log anything as of now.

The link is the homepage (hidden link) and the link to translate is on the BUY NOW button on the banner above the crease (link: hidden link)

October 11, 2023 at 3:37 am #14554545

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing more information regarding the issue.

As mentioned in the error log, the fatal error arises from missing files, and most of the time, installing the plugin again solves the issue. Please follow the steps below and I hope it will help.

- Take a full backup of the site.
- Deactivate and delete the WPML and WooCommerce Multilingual plugins.
- Now, download the latest version of both plugins from the WPML Account(https://wpml.org/account/downloads/) and install them on your site.

I hope the issue will be resolved after that. If you receive any errors in the log file even after installing the updated version manually, please let me know. I will be happy to help.

Link translation:
The link in the "Buy now" button can be easily translated from String translation. Here are the steps to follow.

- Please go to WPML > String Translation
- Search for the link(hidden link)
- When you see the link in the result, add the translation by clicking on the "+" icon.

I already have done the French translation and it works fine.

Please let me know if there is anything else you need help with. I will be happy to assist.

Best regards,
Prosenjit