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.

This topic contains 4 replies, has 2 voices.

Last updated by Itamar 1 year ago.

Assisted by: Itamar.

Author Posts
June 1, 2024 at 3:51 pm #15694805

Karsten

Background of the issue:
After updates for WPML-plugins, the site crashes consistently.

I was attempting to update the WPML plugins on my WordPress site, which runs updates automatically. The issue occurs only on one specific site, suggesting a possible plugin conflict. Though I never could find out which one. Previously, I could resolve the issue by deleting and reinstalling all WPML plugins using the OTGS installer, but this approach failed with version 4.6.11. The site in question is hidden link

Symptoms:
After updating WPML plugins, the site consistently crashes and displays a fatal error message:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

Questions:
What could be causing the plugin conflict leading to the site crash after WPML updates?
How can I resolve the fatal error occurring after updating to WPML version 4.6.11?

June 2, 2024 at 6:11 am #15695123

Karsten

I tried several things which worked in the past, but didn't today:
1. Step-by-step-reinstallation of plug-ins
2. Removing all WPML plug-ins, then reinstalling newest versions.

As nothing worked, I had to remove all plugins, to be able and show a maintenance screen.

Help much appreciated.

June 2, 2024 at 2:49 pm #15695701

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

You have the following setup.

A. WordPress is installed in a subfolder -> hidden link.

B. In WPML -> Languages -> Language URL format, you set the option to have the default language (English) in a directory like this: hidden link.

Did you intend to have English as a sub-directory?
You can read about it in our guide here.

https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/

Please try to see if things work when you disable this option.

Also, please be aware of the following known issues. If you delete the root page, it will result in a fatal error. Please read about this known issue and its workaround here.

https://wpml.org/errata/deleting-directory-for-default-language-root-page-leads-to-fatal-error-uncaught-typeerror-get_object_vars/

If the above does not help solve the issue on your site, please proceed with the following steps.

Please share WordPress's debug log (not WPML debug information).

Please check this page for instructions.

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

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

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

After this, repeat the action that causes the problem on your site. The errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us.

Thanks,
Itamar.

June 5, 2024 at 4:58 am #15704752

Karsten

Hello,

I realize my answer to this last post did not arrive properly.

I solved the basic problem by switching back to: default language without a subdirectory. So far, so good.

Background
The basic setup of the site was German (default language) and English (2nd language). This year, I added Dutch (3rd language), while switching the main language to English. As I have quite a few links out there with English in a subdirectory (…/en/), I wanted to maintain that characteristic.

What can I do best to reactivate the subdirectory for the default language, English? Is this stable, when creating a home page for the root directory?

Thx

June 5, 2024 at 9:42 am #15706006

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

You asked: "Is this stable, when creating a home page for the root directory?"

Creating a root page is important from WPML's aspect. Please try to see if it solves the problem.

1. When German was the default language, was it also in a subdirectory /de/?

I think that WordPress and WPML should be able to handle the links to /en/ you have out there. For example, if you have this link: hidden link and the user clicks, he/she will automatically get redirected to hidden link. I tried it with this link and also with hidden link, and it worked. I'm not sure it will work for all the links.

If it does not work with specific links, you can also use a redirection plugin like the Redirection plugin by John Godley, which is officially compatible with WPML.

https://wpml.org/plugin/redirection/

https://wordpress.org/plugins/redirection/

2. If you downgrade WPML to version 4.6.10 with the same setup, does it work?

Regards,
Itamar.

June 6, 2024 at 5:32 am #15709272

Karsten

Thank you!

I checked your finding that WPML redirects. That is correct and probably solves the issue by itself. I will further investigate, but as it works for now, and I am stuck in a project, it might take a few days. I will test the suggestions and close this ticket.

🙂

Karsten