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 1 reply, has 2 voices.

Last updated by Ahmed Mohammed 1 year, 9 months ago.

Author Posts
July 13, 2023 at 12:16 pm #14032649

evaK-2

Hello,

Today i installed and activated WPML on my project. However i get a lot of 500 errors that the page cannot load in correctly, but on a page reload it is fixed. I saw that the htaccess file was constantly written over and so i read and used this https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/ but it is not working i think? The 500 errors occurs on the frontend and in the admin panel which is not fun because very often the changes are not saved correctly.

Kind regards

Niels

July 13, 2023 at 6:50 pm #14035735

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Niels,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can help with the issue quickly.

I understand that you have applied the workaround from this page: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/ - and you're still getting 500 Internal Server Error intermittently on the frontend and the backend of your website.

Could you please enable the WordPress debug log?

This will allow us to see if any PHP errors are being produced.

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

In order to do that, edit the wp-config.php file inside your WordPress directory and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Now please reproduce the issue once again until the error reappears.

Locate the debug.log in: /wp-content/debug.log. You can log in to your website via FTP or install a plugin such as File Manager to find that debug.log file.

Paste the content (if any) on a site like pastebin.com and then share the link here with us (only you and us will see the URL you are sharing).

Additionally, after checking the website's debug information, I see that the WP Memory Limit is set to 40MB; please follow this doc: https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-to-increase-your-sites-memory-limit - to increase it to at least 256MB.

Looking forward to hearing back from you.

July 14, 2023 at 8:05 am #14038023

evaK-2

Hello,

I think it is fixed, i increased the memory limit to 256M and i did not get a 500 internal error anymore.

Thanks for the help

Kind regards

Niels