WordPress 6.7: Critical translation file loading error.
Introduction
WordPress 6.7 brought a host of new features and improvements, but it also introduced some challenges. One common issue users face after updating is broken translations. If you've noticed missing or incorrect translations on your site, don't worry - we'll guide you through the most common causes and solutions to get your translations back on track.
Solutions
To resolve this issue, please follow these steps:
-
Update your theme and Addons plugin to the latest versions. Refer to your theme's documentation for specific update instructions. Here are examples for the Razzi theme:
- Updating the Razzi Theme: https://razziwp.com/doc/#/update/update-theme
- Updating the Razzi Addons plugin: https://razziwp.com/doc/#/update/update-plugin
- Navigate to Loco Translate > Plugins and select your Addons plugin (e.g., Razzi Addons) https://prnt.sc/MNMGGD08vYV-
Within the Addons plugin settings, locate the "Advanced" tab. https://prnt.sc/Pc2DJdNzN7zc
-
In the "Advanced" configuration, modify all settings as shown in the following screenshot: https://prnt.sc/nJkqVMg2txAR
-
Still within the Addons plugin, edit your preferred language. https://prnt.sc/jNMpJSjXW9hF
-
Under the "Language" tab, click the "Relocate" tab to find the location of the translation files. https://prnt.sc/pdeIU2g62-yL
-
Use an FTP client or a File Manager plugin to locate the translation files (e.g., languages/plugins/razzi-en_US.po).
-
Rename the translation files as follows:
- razzi-en_US.l10n.php to razzi-addons-en_US.l10n.php
- razzi-en_US.mo to razzi-addons-en_US.mo
- razzi-en_US.po to razzi-addons-en_US.po
Please note that these steps are specific to the Razzi theme and its Addons plugin. The process might differ for other themes.