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.

This topic contains 5 replies, has 2 voices.

Last updated by Bobby 1 month, 3 weeks ago.

Assigned support staff: Bobby.

Author Posts
August 19, 2019 at 2:48 pm #4416951

mahmoodH-3

Hi,

When I switch the language a few times so I get Internal error for it.

I contact my hosting and ask. They told there are haven't any issue on their side. Also, I and hosting company decide this error come from WPML.

BEcause this error comes only if we switch the language.

Can you help me to fix this?

Thanks.

August 19, 2019 at 7:06 pm #4418745

Bobby
Supporter

Languages: English (English )

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

Hello,

I 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/

Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);

Edit your wp-config.php file and add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

This will create an error_log.txt file in your site's root directory. Please send me its contents.

August 19, 2019 at 7:26 pm #4418927

mahmoodH-3

Hello Bobby,

Thanks for the reply. Here's the file.

e_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":"8850fd4bfdaae2a2d63e51fb1f2ac3e4","doc_url":"https://wpml.org/translation-service/onehourtranslation/","notification":true,"tms":false,"has_language_pairs":true,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"Your Secret Key and Public Key are located under \"Profile > API Keys\" on your OneHourTranslation Control panel","how_to_get_credentials_url":"https://wpml.org/translation-service/onehourtranslation/#api-secret-public-keys","client_create_account_page_url":"https://wpml.org/translation-service/onehourtranslation/#create-account","partner":false,"custom_fields":[{"label":"Secret Key","name":"secret_key","type":"text"},{"label":"Public Key","name":"public_key","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"email","rankings":{"quality":0,"quality_ranking":0.0,"speed":3,"speed_ranking":1719.0,"popularity":2,"popularity_ranking":14.93,"primary":2,"primary_ranking":14.93},"specializations":[{"name":"Technical","key":"technical"},{"name":"Business","key":"business"},{"name":"e-Commerce","key":"e-commerce"}],"countries":[{"name":"Israel","code":"IL"},{"name":"Romania","code":"RO"},{"name":"Ukraine","code":"UA"},{"name":"United States","code":"US"}],"redirect_to_ts?":true},{"id":21,"name":"Capita","description":"CAPITA TI is a British company which has been translating content for commercial businesses and public sector organizations since 1984. It specializes in legal, financial, manufacturing and e-Learning translations in over 180 languages.","url":"hidden link","logo_url":"hidden link","project_details_url":"hidden link{request_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":"3393562c8687d38db9c447854bd20957","doc_url":"https://wpml.org/translation-service/capita/","notification":false,"tms":false,"has_language_pairs":false,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"The username, password, customer name, and contact name will be provided upon creating a Capita account","how_to_get_credentials_url":"https://wpml.org/translation-service/capita/#connecting-your-site-to-capita","client_create_account_page_url":"hidden link","partner":false,"custom_fields":[{"label":"Username","name":"username","type":"text"},{"label":"Password","name":"password","type":"text"},{"label":"Customer Name","name":"customer_name","type":"text"},{"label":"Contact Name","name":"contact_name","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"email","rankings":{"quality":0,"quality_ranking":0.0,"speed":2,"speed_ranking":1561.0,"popularity":2,"popularity_ranking":14.42,"primary":2,"primary_ranking":14.42},"specializations":[],"countries":[],"redirect_to_ts?":true},{"id":22,"name":"SDL Language Cloud","description":"SDL Language Cloud has been translating content for small to medium-size businesses for more than 25 years. It employs 15,000 in-territory translators which specialize in automotive, banking and e-commerce among other industries.","url":"hidden link","logo_url":"hidden link","project_details_url":"hidden link","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":"e050f3d3a0bfccd551c2286233d60837","doc_url":"https://wpml.org/translation-service/sdl-language-cloud/","notification":true,"tms":false,"has_language_pairs":true,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"Your username and password are the same as the credentials you use to login to SDL Language Cloud","how_to_get_credentials_url":"https://wpml.org/translation-service/sdl-language-cloud/#connecting-to-language-cloud","client_create_account_page_url":"hidden link","partner":false,"custom_fields":[{"label":"Username","name":"username","type":"text"},{"label":"Password","name":"password","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"manual","rankings":{"quality":0,"quality_ranking":0.0,"speed":4,"speed_ranking":1803.0,"popularity":2,"popularity_ranking":14.05,"primary":2,"primary_ranking":14.05},"specializations":[],"countries":[],"redirect_to_ts?":true},{"id":39,"name":"Avilínga","description":"Avilínga is a Swiss company which has been translating content for companies in the aviation industry since 2006. In particular, it specializes in technical aviation translations.","url":"hidden link","logo_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":"f38976dca685689ebf19fd516fb4e918","doc_url":"https://wpml.org/translation-service/avilinga/","notification":true,"tms":false,"has_language_pairs":true,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"An Avilinga team member will email you a unique API Token","how_to_get_credentials_url":"https://wpml.org/translation-service/avilinga/#retrieving-api-token","client_create_account_page_url":"https://wpml.org/translation-service/avilinga/#requesting-an-avilinga-account","partner":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":2,"popularity_ranking":13.83,"primary":2,"primary_ranking":13.83},"specializations":[],"countries":[],"redirect_to_ts?":false},{"id":8,"name":"Gengo","description":"Gengo’s people-powered translation platform helps you translate content into over 36 languages through a selective, global network of translators.","url":"hidden link","logo_url":"hidden link","project_details_url":"hidden link","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":"63f155572eb659a462aac247ee1bbf8d","doc_url":"https://wpml.org/translation-service/gengo/","notification":true,"tms":false,"has_language_pairs":true,"deadline":false,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"Your public and secret keys are found on your Gengo Customer Dashboard","how_to_get_credentials_url":"https://wpml.org/translation-service/gengo/#generate-api-keys","client_create_account_page_url":"https://wpml.org/translation-service/gengo/#create-gengo-account","partner":false,"custom_fields":[{"label":"Public key","name":"public_key","type":"text"},{"label":"Private key","name":"private_key","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"email","rankings":{"quality":0,"quality_ranking":0.0,"speed":1,"speed_ranking":1452.0,"popularity":2,"popularity_ranking":9.33,"primary":2,"primary_ranking":9.33},"specializations":[{"name":"Business","key":"business"},{"name":"e-Commerce","key":"e-commerce"},{"name":"Tourism & Travel","key":"tourism_travel"}],"countries":[{"name":"Japan","code":"JP"},{"name":"Philippines","code":"PH"},{"name":"United States","code":"US"}],"redirect_to_ts?":true},{"id":43,"name":"GPI","description":"GPI is a team of language, technology, project management and business professionals with over 20 years of extensive experience in translation services helping companies communicate and conduct business in more than 100 languages and 15 disciplines.","url":"hidden link","logo_url":"hidden link","project_details_url":"URL from request to GPI","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":"bbfd2c9ae5d6d34b08719f8fcbde80d6","doc_url":"https://wpml.org/translation-service/gpi/","notification":false,"tms":false,"has_language_pairs":false,"deadline":true,"oauth":false,"oauth_url":"","popup_message":"","how_to_get_credentials_desc":"A GPI team member will email an API Key and API Secret Key","how_to_get_credentials_url":"https://wpml.org/translation-service/gpi/#receiving-api-keys","client_create_account_page_url":"https://wpml.org/translation-service/gpi/#requesting-an-account","partner":false,"custom_fields":[{"label":"API Key","name":"api_key","type":"text"},{"label":"API Secret Key","name":"api_secret_key","type":"text"}],"default_service":0,"translation_feedback":true,"feedback_forward_method":"email","rankings":{"quality":0,"quality_ranking":0.0,"speed":1,"speed_ranking":1477.0,"popularity":1,"popularity_ranking":8.85,"primary":1,"primary_ranking":8.85},"specializations":[{"name":"Technical","key":"technical"},{"name":"Marketing & Branding","key":"marketing_branding"},{"name":"Tourism & Travel","key":"tourism_travel"}],"countries":[],"redirect_to_ts?":true}]
}

August 20, 2019 at 1:30 pm #4423937

mahmoodH-3

Hi Bobby,

I just delete the plugins and re-install. But the problem still not solve.

Thanks.

August 20, 2019 at 8:09 pm #4426287

Bobby
Supporter

Languages: English (English )

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

If possible i would like to take a closer look at the backend to further test this issue

**Before we proceed I recommend to please take FULL BACKUP of your database and your website.**
I often use the Duplicator plugin for this purpose See: http://wordpress.org/plugins/duplicator/

I would like to request temporary access (wp-admin and FTP) to your site to fix the issue.
(preferably to a test site where the problem has been replicated if possible)

You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you will enter is private which means only you and I can see and have access to it.

Thank you,
Bobby

August 21, 2019 at 9:49 pm #4435161

Bobby
Supporter

Languages: English (English )

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

Hello,

i have test this on our cloudways staging server and i get the following errors logged in the error log

[Wed Aug 21 19:26:16.707464 2019] [core:error] [pid 30399] [client 127.0.0.1:56839] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: hidden link

it looks like something is calling a redirect due to configuration, most likely within the theme. When switching to a standard theme such as twenty19 i am not able to reproduce.

Also please test the following

Go to WPML->languages-> Language URL Format and switch it to "parameters" rather than "directories" what are your results ?

The topic ‘[Closed] 500 internal error when I switch the languages’ is closed to new replies.