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: Compatibility
This topic contains 21 replies, has 2 voices.
Last updated by Itamar 2 years, 5 months ago.
Assisted by: Itamar.
Author | Posts |
---|---|
November 14, 2022 at 4:16 pm #12456337 | |
nathanO-4 |
I am running a WPML site which is constantly giving random Litespeed 404 errors. It happens on various pages, and then resolves after some time. It seems to happen only on pages that are not the default language. Also, other pages will load while other give a 404. |
November 14, 2022 at 5:12 pm #12457067 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Please share WordPress's debug log (not WPML debug information). Please check this page for instructions. https://wpml.org/documentation/support/debugging-wpml/ To enable it, open your wp-config.php file and look for define('WP_DEBUG', false); Change it to: define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors', 0); After this, repeat the action that causes the problem on your site (the 404 error). The errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with me. Thanks, |
November 14, 2022 at 6:06 pm #12457311 | |
nathanO-4 |
hidden link |
November 15, 2022 at 11:16 am #12462341 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Thanks for sharing the debug.log with me. I'm consulting our second-tier supporters regarding this issue and will update you here when I have news from them. Regards, |
November 15, 2022 at 1:37 pm #12464027 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Our second-tier supporter is still not sure why this problem happens. He says that in the header, he sees the server response coming from CloudFlare. So, Perhaps this is the issue – combining Cloudflare with Lightspeed cache. Could you please temporarily deactivate the LiteSpeed cache plugin and check if the problem persists? Thanks, |
November 15, 2022 at 4:00 pm #12465279 | |
nathanO-4 |
We have been trying to isolate the issue in a staging environment. We have been running without Litespeed and are still experiencing the 404 issues. |
November 15, 2022 at 4:12 pm #12465343 | |
nathanO-4 |
I would appreciate it if there is any way to escalate / expedite support on this issue. We are running a time-sensitive public-awareness campaign with wide media support and it's really tragic every day that this error impacts our audience. |
November 15, 2022 at 6:41 pm #12466457 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, and thanks for trying my suggestions. Please also try the following on the staging site. I suspect that there is a collision with the theme or another plugin that might cause this problem. If possible, get your site into a minimum environment. A minimum environment means switching to a default WordPress theme like TwentyTwenty-One and no plugins activated except WPML. First, you will need to check if the problem persists when just the theme is switched to TwentyTwenty-One (for example). If it persists, then deactivate all plugins except the WPML and its add-ons. Then please check if the problem persists. If it does not persist, start by activating the plugins one by one and check when the problem comes back, then report to me which was the culprit plugin. |
November 16, 2022 at 12:31 am #12467599 | |
nathanO-4 |
After extensive testing, it appears that two separate plugins are both conflicting with WPML: PixelYourSite and WP Activity Log If either or both are active then WPML quickly throws a 404 on any non-default language page (like whatever.com is always fine but whatever.com/en/ would quickly fail). Now that both plugins are disabled, the site appears to be stable, but we will continue testing. We will also need to find a replacement method for injecting the FB Pixel. The Activity Log we can live without. |
November 16, 2022 at 11:43 am #12472139 | |
nathanO-4 |
Update: still getting random 404's on non-default language pages |
November 16, 2022 at 12:01 pm #12472271 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, and thanks for the access details. I'm confused. On your staging site, I don't see this problem now. I also checked your live site, switched between languages and pages, and I don't get the 404 error as I could see yesterday. 1. Where do you get the random 404 error on the staging or live site? 2. You said that you found that the WP Activity Log and PixelYourSite plugins are the culprits. But it is unclear to me if you still get the 404 errors when these two plugins are deactivated. Regards, |
November 16, 2022 at 12:58 pm #12473033 | |
nathanO-4 |
Those plugins had an immediate effect on the frequency of 404's. Both are now disabled on live and staging. However, the live site is still suffering random 404's. You can easily trigger the issue by rapidly switching between /en/ and /fr/ versions of the site. I usually get the error after about 10 reloads. One clue seems to be that when the 404 comes up, regenerating permalinks seems to solve the problem immediately. The site will then work for me for about 10 page reloads between the different languages before failing again. |
November 16, 2022 at 1:02 pm #12473171 | |
nathanO-4 |
Here is a screen recording illustrating the issue (73MB): |
November 16, 2022 at 1:27 pm #12473453 | |
nathanO-4 |
There seems to be reports of similar issues here: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/ https://wpml.org/forums/topic/woocommerce-category-page-returns-404-after-a-few-hours/ |
November 16, 2022 at 8:42 pm #12476605 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, and thanks for sharing the video and the links. I've tried what you suggested and showed on the video. I constantly switched between pages and languages for more than one minute, and I didn't get the 404 error even once. Did you add the suggested code from the errata page? https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/ I read in our internal records about this case that under certain circumstances, this problem still can occur. Please check for any PHP errors and share WordPress's debug log if the problem still occurs. Please check this page for instructions. https://wpml.org/documentation/support/debugging-wpml/ To enable it, open your wp-config.php file and look for define('WP_DEBUG', false); Change it to: define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors', 0); After this, repeat the action that causes the problem on your site (the random 404 errors). The errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us. Thanks, |