Problem: The client was experiencing an error when switching from the Latvian (LV) to Lithuanian (LT) language on certain custom post type (CPT) product URLs after editing or removing the LV CPT URL slug. The issue was specifically tied to a user-created Avada template.
Solution: 1. We recommended refreshing the permalink structure by navigating to Settings -> Permalinks and clicking Save Changes without altering any settings. 2. We verified that the CPT translation settings were set to Translatable with translated slugs enabled. 3. We checked that Avada Builder and Avada templates were configured as translatable in WPML. 4. We suggested ensuring that the Lithuanian and Latvian versions of the affected items were linked as translations of one another. 5. If these steps did not resolve the issue, we advised the client to provide access for further investigation and possibly contact the support teams for the caching and security plugins, as the issue seemed related to outdated cached data or plugin configuration.
Please note that this solution might be outdated or not applicable to your specific 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 the problem persists, please open a new support ticket for personalized assistance.