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.
This topic contains 1 replies, has 2 voices.
Last updated by 1 year, 9 months ago.
Assisted by: Lauren.