Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: error 500


Relevant Documentation:

Este é o fórum de suporte técnico para o WPML — o plugin de WordPress multilíngue.

Todos podem ler, mas apenas clientes do WPML podem postar aqui. A equipe do WPML responde no fórum 6 dias por semana, 22 horas por dia.

This topic contains 6 respostas, has 2 vozes.

Last updated by Softexpert software S.A. 2 mes, 2 weeks atrás.

Assigned support staff: Bobby.

Autor Posts
agosto 5, 2020 às 5:29 pm #6743225

Softexpert software S.A.

Estou tentando:
change language
Link de uma página em que o problema pode ser visto:
hidden link
Espero ver:
full page

Em vez disso, o que acontece é: error 500

agosto 5, 2020 às 9:56 pm #6744199


Languages: Inglês (English )

Timezone: America/Los_Angeles (GMT-07:00)


I would need to see the detail of the error. You can see how to enable debug logging here:

Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);

Edit your wp-config.php file and add these lines, just before it says 'stop editing here':

ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '');

This will create an error_log.txt file in your site's root directory. Please send me its contents.

agosto 6, 2020 às 6:38 pm #6751781

Softexpert software S.A.

Hi Bobby, thanks for the support, there is only one error in the log:

[06-Aug-2020 18:13:38 UTC] PHP Notice: register_rest_route was called incorrectly. Namespace must not start or end with a slash. Please see <a href="">Debugging in WordPress</a> for more information. (This message was added in version 5.4.2.) in /home3/zemogc46/ on line 5167

agosto 6, 2020 às 8:09 pm #6752115


Languages: Inglês (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me!

Both your WP MEMORY LIMIT and Time Limit look adequate, therefore I wonder if this is being caused by a 3rd party compatibility issue.

If you have a staging site I recommend performing the following steps, this is not recommended to test on a live site.

-Back up your site first
-Deactivate all non WPML related plugins
-Switch for a moment to a WordPress default theme like Twenty Fourteen.
-If the issue is gone, activate one by one to see with which one there is an interaction issue

Let me know your results, please.

Kind Regards,

agosto 6, 2020 às 9:56 pm #6752345

Softexpert software S.A.

Bobby, I followed the guidelines but even if I disable all plugins the error persisted.

I got the correction using this tutorial from you:

can i keep it like this?

Because following the tutorial's orientation, error 500 no longer occurs.


agosto 6, 2020 às 10:55 pm #6752409


Languages: Inglês (English )

Timezone: America/Los_Angeles (GMT-07:00)

That's great!

That would of been my next instruction. The solution you implemented is accepted and you can keep it like that as long as the error is resolved.

agosto 7, 2020 às 1:04 pm #6756851

Softexpert software S.A.

My issue is resolved now. Thank you!