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 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 5:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Argentina/Buenos_Aires (GMT-03:00)

This topic contains 4 replies, has 1 voice.

Last updated by Otto 1 month, 2 weeks ago.

Assisted by: Otto.

Author Posts
April 21, 2025 at 3:56 pm #16952105

abdulazizA-51

Background of the issue:
I am trying to resolve an error with WPML automatic translation that is affecting the layout of the WPML Rental theme's listing page in Arabic. The page works fine in English and Turkish. The same error occurs on the order received page, which works fine in English but shows a critical error in Arabic and Turkish. I am following documentation that mentions deprecated automatic conversion of false to array in /home1/viinqpte/public_html/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php on line 19. There are notices about the function _load_textdomain_just_in_time being called incorrectly, and warnings about headers already sent.

Symptoms:
The layout of the WPML Rental theme's listing page is corrupted in Arabic. The order received page shows a critical error in Arabic and Turkish. There are warnings and notices related to translation loading and header modification.

Questions:
How can I fix the layout issue on the WPML Rental theme's listing page in Arabic?
What steps should I take to resolve the critical error on the order received page in Arabic and Turkish?
How do I address the deprecated automatic conversion of false to array?
What is the correct way to load translations to avoid the _load_textdomain_just_in_time notice?

April 21, 2025 at 4:05 pm #16952208

abdulazizA-51

[removed]

April 22, 2025 at 11:00 pm #16957437

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

While waiting for one of my colleagues to start working on your ticket, please note that this is a public thread, and the shared access details have been removed.

If you need to share access to the site please only do when we have enabled a private field reply. (I have enabled it for your next reply)

Regarding the Fatal Error you are receiving, if possible share with us your error log.

We would need to see the detail of the error. You can see how to enable debug logging here:
 https://wpml.org/documentation/support/debugging-wpml/ 

April 23, 2025 at 2:01 pm #16960373

abdulazizA-51

umber_of_jobs_per_batch":0,"auto_refresh_project_options":false,"custom_fields":[{"label":"API token","name":"api_token","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":1,"popularity_ranking":3.17,"primary":0.0,"primary_ranking":3.17},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":26,"name":"POEditor","description":"Warning! To achieve the best results please use POEditor for strings translation only. POEditor is a collaborative platform, built to easily manage the translation of apps, websites or related software, in a team or independently, and to automate the localization workflow.","url":"https://wpml.org/go/poeditor/","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"hidden link{project_id}","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"97956a8eed5fa652b8c2ec2b9eda6988","doc_url":"https://wpml.org/translation-service/poeditor/","notification":false,"tms":true,"has_language_pairs":false,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"Your API Token is located under \"Account Settings \u003e API Access\" tab on your POEditor Dashboard","how_to_get_credentials_url":"https://wpml.org/translation-service/poeditor/#retrieving-api-token","client_create_account_page_url":"https://wpml.org/translation-service/poeditor/#creating-a-poeditor-account","partner":false,"review_url":"https://wpml.org/submit-your-review/?parent_translation-service_id=1144568","uses_ate":false,"self_registered":false,"recommended_maximum_number_of_jobs_per_batch":0,"auto_refresh_project_options":false,"custom_fields":[{"label":"API token","name":"api_token","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":1,"popularity_ranking":3.08,"primary":0.0,"primary_ranking":3.08},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":74,"name":"STAR-7 LLC","description":"STAR-7 is a full-service translation agency based in Madison, WI, since 1991. It has more than 500 translators working in more than 120 languages. It works with small to medium-size businesses in a variety of industries.","url":"https://wpml.org/go/star7/","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"cd018f1ac09ae85bc8dfec7a72eb56c3","doc_url":"https://wpml.org/translation-service/star7/","notification":true,"tms":false,"has_language_pairs":true,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"A Geo Group team member will email a unique API Token to you","how_to_get_credentials_url":"https://wpml.org/translation-service/star7/#receiving-api-token","client_create_account_page_url":"https://wpml.org/translation-service/star7/#requesting-account","partner":true,"review_url":"https://wpml.org/submit-your-review/?parent_translation-service_id=1537725","uses_ate":false,"self_registered":false,"recommended_maximum_number_of_jobs_per_batch":0,"auto_refresh_project_options":false,"custom_fields":[{"label":"API token","name":"api_token","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"api","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":1,"popularity_ranking":3.0,"primary":0.0,"primary_ranking":3.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[{"name":"Technical","key":"technical"},{"name":"Business","key":"business"},{"name":"Medical","key":"medical"}],"countries":[{"name":"United States","code":"US"},{"name":"France","code":"FR"},{"name":"Korea, Republic of","code":"KR"},{"name":"Thailand","code":"TH"}],"certifications":[{"name":"ISO-9001","key":"9001"}],"redirect_to_ts?":false},{"id":148,"name":"Crowdin","description":"Crowdin is an AI-powered localization software designed for agile teams and businesses. It empowers companies of all sizes to expand globally by reaching multilingual audiences. With a marketplace of over 600 apps and integrations, Crowdin helps to make the translation process automatic. More than 2.5 million users worldwide use Crowdin to translate websites, mobile apps, software, games, help centers, marketing content, and more.","url":"hidden link","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"699e6ed91a275d04372c7289922a5610","doc_url":"","notification":true,"tms":true,"has_language_pairs":true,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":false,"review_url":"https://wpml.org/submit-your-review/?parent_translation-service_id=9054949","uses_ate":false,"self_registered":false,"recommended_maximum_number_of_jobs_per_batch":100,"auto_refresh_project_options":false,"custom_fields":[{"label":"API token","name":"api_token","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":1,"popularity_ranking":2.0,"primary":0.0,"primary_ranking":2.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":false},{"id":117,"name":"Smartcat","description":"Smartcat is an all-in-one platform connecting businesses and translators into a continuous translation delivery loop by combining a collaborative workflow solution, a marketplace, and a network of translation professionals.\r\n","url":"https://wpml.org/go/smartcat/","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"%{server_url}/projects/%{project_id}","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"d1c696251639dde597dd81b6fec113a9","doc_url":"https://wpml.org/translation-service/smartcat/","notification":false,"tms":true,"has_language_pairs":false,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":false,"review_url":"https://wpml.org/submit-your-review/?parent_translation-service_id=4145243","uses_ate":false,"self_registered":false,"recommended_maximum_number_of_jobs_per_batch":0,"auto_refresh_project_options":false,"custom_fields":[{"label":"Server URL","name":"server_url","type":"text"},{"label":"API key","name":"api_key","type":"text"},{"label":"Account ID","name":"account_id","type":"text"}],"default_service":0,"translation_feedback":false,"feedback_forward_method":"api","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":1,"popularity_ranking":0.83,"primary":5.0,"primary_ranking":0.83},"ratings":{"wpml_average_user_rating":5.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":true},{"id":82,"name":"Pseudo Translation Services","description":"This is a demo service for learning and practicing the WPML workflow for professional translation. To authenticate please use any string as an API Token.","url":"hidden link","logo_url":"hidden link","logo_preview_url":"hidden link","project_details_url":"","add_language_pair_url":"","custom_text_url":"","select_translator_iframe_url":"","translator_contact_iframe_url":"","quote_iframe_url":"","has_translator_selection":false,"project_name_length":128,"suid":"a31f833a7b129003abe76987b06c8e44","doc_url":"hidden link","notification":false,"tms":true,"has_language_pairs":false,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"","how_to_get_credentials_url":"","client_create_account_page_url":"","partner":false,"review_url":"","uses_ate":false,"self_registered":false,"recommended_maximum_number_of_jobs_per_batch":0,"auto_refresh_project_options":false,"custom_fields":[{"label":"API Key","name":"api_key","type":"text"}],"default_service":0,"translation_feedback":false,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":0,"speed_ranking":0.0,"popularity":0,"popularity_ranking":0.0,"primary":0.0,"primary_ranking":0.0},"ratings":{"wpml_average_user_rating":0.0},"specializations":[],"countries":[],"certifications":[],"redirect_to_ts?":false}]
}

This is the communicate log error in my wpml support and in this you tell me where to send the access private, confirm once and tell me where should I send the access to the website

Screenshot_2.png
Screenshot_1.png
April 23, 2025 at 4:11 pm #16961325

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Let's handle one issue at the time.

“Order Received” Page Critical Error in Arabic and Turkish

Cause: This issue is likely due to WooCommerce endpoint translation or page configuration. WooCommerce’s “order-received” endpoint might not be recognized in secondary languages, causing a 404 or a fatal error after checkout. If the endpoint slug or checkout page isn’t translated or synced properly, WPML/WooCommerce can’t load the order details, leading WordPress to show a critical error page. (In similar cases, an undefined endpoint index caused the translated thank-you page to be blank)

Solution: Verify and fix the WooCommerce endpoint translations for secondary languages.

❌ Please make a full website backup before proceeding ❌

1. Translate WooCommerce Pages: Ensure that all WooCommerce pages (Shop, Cart, Checkout, My Account) are translated. In your WordPress Pages list, you should see Arabic and Turkish versions of “Checkout” (and other WooCommerce pages). If not, create translations for them. WPML’s WooCommerce Multilingual plugin can help – go to WooCommerce > WooCommerce Multilingual > Status and use the prompts to generate missing pages or translate slugs.
2. Resave Permalinks: Go to Settings > Permalinks and click Save Changes (no need to modify anything). This refreshes WordPress rewrite rules. A permalink refresh often fixes missing endpoint issues by ensuring /checkout/order-received/ is recognized in all languages.
3. Check “order-received” Endpoint Translation: In WPML > String Translation, search for “order-received”. It should appear under the domain “WooCommerce Endpoints”. Make sure the Arabic and Turkish translations for this endpoint are correct. Ideally, the slug should remain “order-received” in all languages (so the URL works). If you find translated slugs (e.g. “order-received” translated to an Arabic word), this mismatch can cause a 404. As a quick solution, mark the ‘order-received’ string as untranslated: edit each translation, uncheck “Translation is complete”, and save . This tells WPML to use the default “order-received” slug for Arabic and Turkish as well.
• Alternatively, you can manually set the endpoint slug to match. For example, one user adjusted the French “order-received” slug to exactly what WooCommerce was expecting. Using the English slug for all languages is the simplest workaround.
4. Flush WPML Cache: Go to WPML > Support > Troubleshooting and click “Clear language cache” and “Refresh translation cache”. This ensures WPML knows about the slug changes.
5. Test Checkout: Place a test order in Arabic and Turkish. After payment, you should be directed to the Order Received page without errors. You will see the order details now. (The URL will still contain “…/order-received/…” but the page content will be correctly localized for Arabic/Turkish.) This workaround prevents customers from hitting a broken page after checkout and is suggested in WPML’s errata for endpoint issues.
• Note: If the issue persists, double-check that the Arabic/Turkish Checkout pages have the correct WooCommerce shortcode ([woocommerce_checkout]) and are published. Also, ensure no plugin is altering redirects. In most cases, fixing the endpoint slug translation resolves the error.

Best Regards,
Otto

The topic ‘[Closed] automatic translation error’ is closed to new replies.