Skip to content Skip to sidebar

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

Problem:
The client is inquiring whether the

eval()

function is still necessary for their WordPress site using WPML, as they did not encounter any issues after activating WPML without noticing the

eval()

function in their code.
Solution:
We confirmed that the

eval()

PHP function is indeed still required for WPML to function properly. We recommend checking the minimum requirements for running WPML effectively, which can be found here: WPML Minimum Requirements.

If this solution does not resolve your issue or seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML 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.

This topic contains 1 reply, has 0 voices.

Last updated by rhettY 1 week, 3 days ago.

Assisted by: Andrey.

Author Posts
August 31, 2025 at 2:04 pm #17360498

rhettY

Background of the issue:
I am trying to determine if the eval() function is still necessary for my WordPress site using WPML. I checked for the eval() function in my code, and it wasn't there. After activating WPML, I didn't notice any issues or indications that this function is needed.
if (function_exists('eval')) {
$result = eval('return "eval() is enabled!";');
echo $result;
} else {
echo "eval() is disabled.";
}

Symptoms:
No specific issue or error message was mentioned after activating WPML.

Questions:
Is the eval() function still required for WPML?
Why didn't I notice any issues after activating WPML without the eval() function?

August 31, 2025 at 8:19 pm #17360900

Andrey
WPML Supporter since 06/2013

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

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

Thank you for contacting WPML support.

Yes, the eval() PHP function is still required.

Please have a look at the minimum requirements:
https://wpml.org/home/minimum-requirements/

September 3, 2025 at 1:46 am #17367887

rhettY

I just realized the eval function detecting code is wrong.
eval() function is live in my server.