Skip to content Skip to sidebar

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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 6 replies, has 1 voice.

Last updated by Bruno Kos 1 year ago.

Assisted by: Prosenjit Barman.

Author Posts
December 5, 2024 at 2:51 pm #16482430

petiaK

Background of the issue:
I am trying to use WPML on my website, but when it is activated, I encounter issues. The problem occurs on different pages and from time to time. You can see the issue on this page: hidden link.

Symptoms:
I get an 'Internal Server Error' when WPML is activated.

Questions:
How to get it solved?

December 5, 2024 at 8:27 pm #16483713

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

While one of my teammates takes care of your ticket, I will provide you with the first debugging steps.

It means there is an error in the PHP code that your site runs. You need to see what the errors are. The first step is to enable debug.log. You can add a few lines to the site’s wp-config.php file. With the error log enabled, you will see the actual problem.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

To enable the error logging to a file on the server, you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

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

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

Let us know what you see in the debug.log after the debug mode has been enabled at the moment of the error.

December 6, 2024 at 8:40 am #16485022

petiaK

Hi!

I did that before opening the ticket. Turning on the debugging didn't show anything on the pages that open Internal Server Error.

The debug_log doesn't show anything different than the past 14 days, yet the problem was present yesterday.

The only difference that was made is updating the translation of a page. This website is a redesign project. The whole redesign was made in the main language and when I started updating one page in the other langugage - it started loading the error.

December 9, 2024 at 9:09 am #16491451

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi There!
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for providing additional details. After reviewing the WPML Debug Info, I noticed that some server-related variables are not set to sufficient values. For example, the "Max Upload Limit", "Max Post Limit", and "Max Execution Time" are below the recommended levels. Having these values set too low can sometimes lead to issues, as processes requiring more server resources may fail to complete, potentially resulting in internal server errors.

Could you please increase the value of the mentioned variables by checking the link below and then try again?

- https://wordpress.org/support/topic/increase-parameters-using-wp-config/#post-17407675

If the issue persists, it’s best to contact your hosting support and request the "server error log" generated after the "internal server error" occurs. Since this is a server-related issue, the error log may contain more detailed information, which can help pinpoint the root cause and assist in debugging the problem more accurately.

Once you have the error log, please share it in your next response. I’ll review it and do my best to assist you further with this issue.

Looking forward to your response and I'm always here to help!

Best regards,
Prosenjit

December 13, 2024 at 9:13 am #16510537

petiaK

Hello!

All the variables were increased.

If I keep the English (it's the additional language for the website) hidden - then there is no problem with it. The WPML plugin is activated, but the English is hidden - works fine.

When I activate English, then I continue getting Internal Server Error.

December 13, 2024 at 11:12 am #16511000

petiaK

I found out that if I use the option:
Different languages in directories ( (hidden link - Bulgarian, hidden link - English) ) - the problem is present.

If I turn on the option:
Language name added as a parameter (hidden link - English)

Then it works fine.

I resaved permalinks, regenerated .htaccess file - nothing works, unless I turn on the parameter option.

December 16, 2024 at 9:45 am #16516461

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

I’m stepping in for Prosenjit today and will be responding to your ticket.

Given that it happens with directories only, can you try this workaround?
https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/#how-can-i-identify-the-plugin-causing-this-and-fix-the-issue

The topic ‘[Closed] Internal Server Error from time to time and on different pages when WPML is activated’ is closed to new replies.