Problem: After setting up WPML on the production site, the client encountered a 404 error on the homepage and could not access any pages, whether draft or published. The pages section showed the correct number of pages but did not display them. Solution: We installed a local copy of the client's site and noticed that all pages were in the same language. We recommended re-importing the pages and translations following the guide on WPML export and import. After applying troubleshooting steps, we were able to retrieve the pages, posts, and products on the client's site.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum.