This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is using different domains per language and experiencing a 403 error when switching languages on their website.
Solution:
This error is caused by WPML triggering a mod_security rule (218500) from COMODO WAF, which is interpreted as an SQLmap attack.
We recommend the client contact the hosting support and ask them to whitelist the website for this mod_security rule.
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: Bug
This topic contains 7 replies, has 3 voices.
Last updated by Long Nguyen 10 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
January 11, 2024 at 8:34 pm #15176553 | |
geoffreyR-5 |
WPML appears to be crashing my site -- it happens when simply navigating from English to French (or back) and through the site. From the error log of the site: [11-Jan-2024 20:14:17 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/ccc/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/class-wpml-language-per-domain-sso.php on line 123 |
January 11, 2024 at 10:57 pm #15176832 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-08:00) |
Hello, While waiting for a supporter to be assigned to this ticket, please try the following: 1. Deactivate and delete WPML This will ensure that the version you are using at the moment is not corrupted. also, please review your PHP Time Limit and verify that it's set to 30 or higher. If the issue persists, go to WPML->Languages and verify that there are a minimum of 2 languages enabled and one of the languages is set as 'default' Let us know your results, please. |
January 12, 2024 at 12:41 am #15177035 | |
geoffreyR-5 |
Thank you. We had already carried out all those suggestions so the errors reported before were occurring after all those steps. |
January 12, 2024 at 4:52 am #15177206 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info. ❌ IMPORTANT: Please backup your database and website before proceeding ❌ Look forward to your reply. |
January 13, 2024 at 2:53 pm #15181571 | |
geoffreyR-5 |
Have you had a chance to look at this yet? |
January 14, 2024 at 9:26 am #15181928 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I can switch the language to French and English in both admin area and frontend as well, without any errors. Here is the screen record hidden link Can you please recheck this and the error log again? |
January 14, 2024 at 6:44 pm #15182616 | |
geoffreyR-5 |
Still doesn't work. From the front end, not logged in, I switched from English (hidden link) to French (hidden link), which worked, but when switching back, it tried to load this URL: "hidden link" which led to a 403 error. |
January 15, 2024 at 7:29 am #15183155 | |
Long Nguyen Supporter
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Now I see the site is not working. However, I don't see the same error in the debug.log or error_log file on Jan 15. Please try to copy your site to a staging site and I can troubleshoot the issue, or try to take the backup file again and exclude some unnecessary folders like /wp-content/uploads/, /wp-content/cache/ ... to reduce the file size and share it again. I also suggest you disable the option Look forward to your reply. |
January 15, 2024 at 6:38 pm #15186543 | |
geoffreyR-5 |
Thanks for your help. |