This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing a fatal error after installing WPML on your site running PHP 8.1, WordPress, and Bricks with the latest update. Solution: If you're encountering this issue, we recommend you try the following steps: 1. Navigate to the file located at:
file and change "private" to "public" on line 169. It should read:
public function build_migration_required() {
3. Log in to your site, activate the WPML plugin, and complete the setup process. 4. Go to WPML → Translation Management → Translators and deactivate the old translation service. 5. Then, navigate to WPML → Support → Troubleshooting and perform the following actions: - Select "Reset professional translation state." - If there are no translations available, choose "Reset and deactivate WPML." After completing these steps, you should be able to activate WPML and set it up without encountering any errors in the future.
Please note that this solution might be irrelevant if it’s outdated or not applicable to your 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 issue persists, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I am trying to use WPML on my site hidden link, which is running PHP 8.1, WordPress, Bricks, and WPML with the latest update. After installing WPML, I encountered an error.
Symptoms:
Fatal error when using WPML. Here's the screenshot: hidden link
Questions:
How can I fix the fatal error after installing WPML?
If you have just activated WPML but have no translations yet, I suggest resetting WPML and reconfiguring it.
1. Go to WPML → Support and click the Troubleshooting link.
2. In the Reset section of the Troubleshooting page, select the I am about to reset all translation and language data checkbox. Then, click the Reset and deactivate WPML button.
But before doing this, go to WPML → Translation Management → Translators and deactivate the old translation service (if activated). Then, navigate to WPML → Support → Troubleshooting and perform the following actions: Select "Reset professional translation state."
Before making any changes, please ensure that you back up your database first.
There's nothing I can do, just activate and get that fatal error.
Can I send you login (other site, same server) so that you can try to activate by yourself to see what happens?
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.
Here’s a step-by-step outline to resolve this issue:
1. Navigate to the file located at: `wp-content/plugins/sitepress-multilingual-cms/classes/ICL-20-migration/ui/class-wpml-tm-icl20-migration-notices.php` and go to line 169.
2. Open the `class-wpml-tm-icl20-migration-notices.php` file and change "private" to "public" on line 169. It should read:
public function build_migration_required() {
3. Log in to your site, activate the WPML plugin, and complete the setup process.
4. Go to WPML → Translation Management → Translators and deactivate the old translation service.
5. Then, navigate to WPML → Support → Troubleshooting and perform the following actions:
- Select "Reset professional translation state."
- If there are no translations available, choose "Reset and deactivate WPML."
After completing these steps, you should be able to activate WPML and set it up without encountering any errors in the future.