Sauter la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The client is experiencing intermittent Internal Server Errors when navigating to the English version of their website, particularly when clicking on the FAQ or CONTACT pages in the menu.

Solution:
We recommend increasing the maximum execution time from 30 to 300 to avoid such errors. If you're not sure how to do this, please review the following documentation: How to Increase Maximum Execution Time for WordPress Site.

If the problem persists, enable the WordPress Debug log by editing the

wp-config.php

file. Change:

define('WP_DEBUG', false);

to:

define('WP_DEBUG', true);<br />define('WP_DEBUG_LOG', true);<br />define('WP_DEBUG_DISPLAY', false);<br />@ini_set('display_errors',0);

Then, try to reproduce the issue and check the

debug.log

file in the

/wp-content/

directory for any errors. If possible, share the debug.log contents via https://pastebin.com/ and provide us with the link.

If this solution doesn't look relevant, please open a new support ticket in our WPML support forum.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Ilyes Il y a 1 année et 6 mois.

Assisté par: Ilyes.

Auteur Articles
décembre 3, 2023 à 5:07 pm #14980605

maximeb-12

Hi,

I'm going in circle with this.
I have instal WPML on a new wordpress and it doesnt work properly.
My website is in french and I want also english pages. So i have add with WPML the flag in the menu. This part work great.
But when I'm in the english side and try to click on the FAQ page in the menu or CONTACT page in the menu. I have this 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 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.

And the worst part is that it's random. It works 40/50% of the time... sometimes i click it works sometimes i have the message if you go on my website in the english part :
lien caché and try it you will see.
Even lien caché dont work sometimes. I have no clue what is the problem.
Thank you

décembre 4, 2023 à 9:07 pm #14991579

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Thank you for contacting WPML support team,

After checking your website configuration, I found out that there are a couple of improvement you could do to avoid such error, please increase your time limit from 30 to 300.

if you are not familiar with how to do this please review the following documentation or contact your hosting provider.

lien caché

----

If the issue occurs again after this change, please check if you are getting any errors or warnings related to WPML in the WordPress Debug log or Server Error Log while having this issue. May you need your hosting team's support to access the server error log file.

To enable WP debug log, open your wp-config.php file and look for:

define('WP_DEBUG', false);

And 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 which is recommended on a live site.

define('WP_DEBUG_DISPLAY', false);

@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory

If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!

Best,