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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Tagged: 

This topic contains 20 replies, has 3 voices.

Last updated by Lauren 1 year, 7 months ago.

Assisted by: Lauren.

Author Posts
April 13, 2023 at 8:12 pm #13468309

vadimP

hidden link returns 500 error on every other refresh.

[Thu Apr 13 22:55:38.056266 2023] [core:error] [pid 3262910:tid 140549784860416] [client 189.73.54.167:0] 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

April 13, 2023 at 10:36 pm #13468915

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support!

I was able to see the internal server error.

Could you please check the fix from the following erratum page and check if te issue is still there: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/?

Looking forward to hearing back from you.

April 13, 2023 at 10:38 pm #13468923

vadimP

Hi Ahmed,

no, we don't have any artifacts in htaccess. Here how it looks:

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

April 13, 2023 at 10:39 pm #13468925

vadimP

Just yesterday I updated WPML and I'm pretty sure we didn't had this issue before.

April 14, 2023 at 12:13 pm #13473555

vadimP

Ahmed, this is an urgent issue for us, we need assistance

April 14, 2023 at 4:17 pm #13475295

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Let's try and check a few things to see if we can find some clues as to what is causing the error. It seems the error is happening only on translated pages - can you confirm that?

Often times these type of issues can be related to a conflict with WPML and another plugin/theme. Do you have a staging site where we can test minimal settings to rule this out? If not, we can set one up for you, just let me know.

Lastly, WordPress includes a debug mode that helps reveal PHP problems. Let's enable this and see if there are any errors we can locate.

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
If you open wp-config.php and that define statement is not there, you can add it right before this line:

/* That's all, stop editing! Happy blogging. */

Please note that you’ll see everything, not only related to our Plugins. This will most likely include messages from other plugins, your theme, and sometimes even WordPress core. The messages appear all over the place.
Sometimes they appear right on top, but they can also appear in the middle of the page.

DOC:
https://codex.wordpress.org/Debugging_in_WordPress

After enabling the debug mode, please try to replicate the issue. Navigate to the page where the error message being displayed. The errors will be either displayed on the screen or logged in the debug.log log file inside the /wp-content/directory.

Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

I look forward to your reply.Let's try and check a few things to see if we can find some clues as to what is causing the error. It seems the error is happening only on translated pages - can you confirm that?

Often times these type of issues can be related to a conflict with WPML and another plugin/theme. Do you have a staging site where we can test minimal settings to rule this out? If not, we can set one up for you, just let me know.

Lastly, WordPress includes a debug mode that helps reveal PHP problems. Let's enable this and see if there are any errors we can locate.

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
If you open wp-config.php and that define statement is not there, you can add it right before this line:

/* That's all, stop editing! Happy blogging. */

Please note that you’ll see everything, not only related to our Plugins. This will most likely include messages from other plugins, your theme, and sometimes even WordPress core. The messages appear all over the place.
Sometimes they appear right on top, but they can also appear in the middle of the page.

DOC:
https://codex.wordpress.org/Debugging_in_WordPress

After enabling the debug mode, please try to replicate the issue. Navigate to the page where the error message being displayed. The errors will be either displayed on the screen or logged in the debug.log log file inside the /wp-content/directory.

Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

I look forward to your reply.

April 14, 2023 at 4:43 pm #13475363

vadimP

It seems the error is happening only on translated pages - can you confirm that?

Yes, error happens only on translated pages - /en, /ru

Do you have a staging site where we can test minimal settings to rule this out? If not, we can set one up for you, just let me know.

We can use current server at hidden link we have backups

Lastly, WordPress includes a debug mode that helps reveal PHP problems. Let's enable this and see if there are any errors we can locate.

Debug us enabled, but we are not getting errors on the frontend, however is server log I see:

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

I don't have any new lines with debug.log when this error happens

I can provide you with wp-admin access as well as server FTP access

April 14, 2023 at 4:51 pm #13475409

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Okay great, let's use your testing site and set it up in minimal settings, meaining only WPML active with a default theme such as Twenty Twenty Two. If you want me to login and test that, I'm happy to do that, and i have marked the next reply as private so that you can provide credentials to the test site.

I will need permission to disable plugins/theme and install File Management plugin if needed to access files. Let me know if that's okay. Thanks!

April 14, 2023 at 5:11 pm #13475473

vadimP

Are you sure my previous reply is private?

April 14, 2023 at 6:45 pm #13475993

vadimP

Are you still here? I see my reply is not private, I see pass open to public here. I will delete the message

April 14, 2023 at 7:13 pm #13476139

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I am here and can confirm the previous reply is private. This is the live site, correct? I thought we were testing on a staging site, but if you want me to test on the live site please confirm. Thank you.

April 14, 2023 at 7:20 pm #13476145

vadimP

Yes, please go ahead with testing on the live site. We have backups and maintenance mode plugin is enabled now. Once you login to wp-admin you will see frontend as usual

April 14, 2023 at 7:59 pm #13476243

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thank you. I currently have WPML and WooCommerce plugins only active and I"m not seeing the issue anymore. Can you confirm? I'll begin activating the others to see when it comes back.

April 14, 2023 at 8:00 pm #13476245

vadimP

checking

April 14, 2023 at 8:01 pm #13476247

vadimP

Yes, all looks good. I can not trigger the error