Skip to content Skip to sidebar

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

Problem:
The client is experiencing multiple issues with WPML on their site. These include a cPanel error when accessing the wp-config.php file, a non-functional URL when switching to Dutch language (?lang=nl), and a PHP error related to preg_match when using PHP 8.1. The Dutch language page works when reverting back to PHP 7.4.
Solution:
1. For the cPanel error, we recommend checking the file permissions and ownership of the wp-config.php file to ensure it is readable by the server. Adjusting these settings might resolve the access issue.
2. Regarding the Dutch language page not working with PHP 8.1, this is likely due to compatibility issues between PHP 8.1 and the current version of WPML or other plugins/themes. We suggest temporarily using PHP 7.4 while waiting for updates that ensure compatibility with PHP 8.1.
3. For the preg_match error, please apply the workaround provided in the WPML errata page: https://wpml.org/errata/php-warning-preg_match-unknown-modifier/

If these solutions do not resolve your issues or if they seem outdated or irrelevant 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 WPML support forum for further assistance.

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

Last updated by Lauren 1 year, 9 months ago.

Assisted by: Lauren.

Author Posts
July 29, 2024 at 2:03 pm #16016450

dA-2

Background of the issue:
I am experiencing issues with WPML on my site hidden link. This is related to a cPanel error: :2083/cpsess8804684800/json-api/cpanel?cpanel_jsonapi_module=Encoding&cpanel_jsonapi_func=guess_file&cpanel_jsonapi_apiversion=2&file=%2Fhome%2Fbeniouar%2Fpublic_html%2Fwp-config.php:1. Additionally, the URL hidden link is not working. I also encountered an issue described in this forum post: https://wpml.org/forums/topic/warning-preg_match-unknown-modifier-2/. If I drop the PHP version to 7.4 from 8.1, the NL page starts working.

Symptoms:
Failed to load resource: the server responded with a status of 403. Uncaught TypeError: Cannot read properties of undefined (reading 'encoding').

Questions:
How can I resolve the cPanel error related to WPML?
Why is the NL page not working with PHP 8.1 but works with PHP 7.4?
How can I fix the issue mentioned in the forum post?

July 29, 2024 at 4:05 pm #16017201

Lauren

Please let me know if the workaround from here resolves the issue:
https://wpml.org/errata/php-warning-preg_match-unknown-modifier/