Skip Navigation

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

Problem:
You are trying to activate WPML on your site. When using PHP 7.4, WPML works but other vital plugins do not. Switching to PHP 8.0 allows other plugins to function, but then WPML does not work and displays a large error message.
Solution:
We recommend enabling debugging to identify the specific issues with WPML on PHP 8.0. To do this, modify your site’s wp-config.php file:
1. Locate the line

define('WP_DEBUG', false);

and change it to:

define('WP_DEBUG', true);

2. To log errors to a file, add:

define('WP_DEBUG_LOG', true);

Errors will be recorded in the debug.log file within the /wp-content/ directory. For more detailed instructions on debugging WPML, visit https://wpml.org/documentation/support/debugging-wpml/

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket at our support forum.

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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Andrey 2 months ago.

Assisted by: Andrey.

Author Posts
March 21, 2025 at 1:12 pm #16844547

sofie-julienV

Background of the issue:
I am trying to activate WPML on my site. When I use a PHP level of 7.4, WPML works but other vital plugins don't. When I switch to PHP 8.0, other plugins work but WPML does not.

Symptoms:
When using PHP 8.0, WPML does not work and a huge error message appears on my site.

Questions:
Does WPML not work with a PHP version higher than 7.4?

March 21, 2025 at 10:06 pm #16846529

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

WPML plugin works with newer PHP versions. Are you getting any fatal errors or just the warnings in the screenshot?

The first step is to enable debugging. You can add a few lines to the site’s wp-config.php file. With the error log enabled, you will see the actual problem.

To enable it, open your wp-config.php file and look for define('WP_DEBUG', false);. Change it to:

define('WP_DEBUG', true);

To enable the error logging to a file on the server, you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

The errors will be saved to a debug.log file inside the /wp-content/directory.

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

Let me know what you see after the debug mode has been enabled.