Buenos dias espero que esten bien, tengo un error en mi sitio web con el tema del redireccionamiento en ingles, al momento de cambiar el idioma con el selector en mi sitio web me traduce correctamente el sitio pero cuando voy a nevar a otro enlace en mi menu me genera un error 500 y no carga la pagina, esto pasa cuando esta activa la opcion de diferentes idiomas en directorios que es la opcion que necesito, Adjunto imagen, espero pronta repuesta muchas gracias
This ticket has been inactive for quite a while. I didn't get a reply from you. So, I've transformed this chat into a support ticket because you may still need our help.
Please try my suggestions from the chat and see if you find the source of the problem.
I still need help, as the chat support did not solve my problem. When I enable the second language on my website using the selector and navigate between pages, I get a 500 error. This error appeared both in my development environment on my hosting server and in production on my Siteground server. This happens when I have directory-based URL formatting enabled, but when it is parameter-based, the error does not appear. I need urgent help.
It is unclear to me. Have you already tried my following suggestion from the chat?
We suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment, switching to a default WordPress theme like TwentyTwenty-Four and activating only WPML.
First, check whether the problem persists when only the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except WPML and its add-ons. Then, please check if the problem persists. If it does not persist, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***
If the problem still persists even in a minimal environment, then we need more details about the 500 error. For this, please follow these steps. Please share the WordPress 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 -- trigger the 500 error by going to one of the pages in the secondary language. In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us. If debug.log was already active, please share only the error you encountered during your test to keep the log concise and avoid unrelated errors.