Hi, I desperately need some assistance, I have been banging my head against the wall for a week trying to solve a 404 error I am getting sometimes on translated pages. It had been mostly appearing on dialogo-americas.com/es/, although now I only notice it on dialogo-americas.com/pt-br/, and it occurs on mobile most of the time. For some reason the error clears when I purge the cache on the site using the cloudways breeze plugin, but only momentarily. I have it setup to clear automatically every minute, which is keeping it mostly functional but it still returns a 404 at times.
After updating and troubleshooting I am still getting the error and I don't know what else to try at this point. I've reached out to cloudways support as well but they haven't been able to help me as of yet. I uploaded a photo of the 404 page when visiting dialogo-americas.com/pt-br/ on mobile. Thank you so much for your time.
Thank you for the resources! Sorry for the delay, I didn't see the response. I won't be able to test if that is the error occurring by plugin deactivation as suggested in the link because I'm unable to replicate the error in the staging environment, but I will try the quick workaround by adding the suggested code to the functions.php file on the live site during lower usage times to see if it fixes the issue.
I would also suggest enabling the debug.log file to see if there's anything in it when the error occurs. To enable debugging, add these lines to your wp-config.php file: