This thread is resolved. Here is a description of the problem and solution.
Problem:
You are unable to activate the WPML plugin on your site after a critical error occurred during an update. The plugin now generates a fatal error message whenever you attempt to activate it.
Solution:
We recommend deleting the plugin files from your site and installing a fresh copy. You can download the latest version of the plugin from https://wpml.org/account/downloads/. After installation, try activating the plugin again to see if the issue persists.
If this solution does not resolve your issue or seems outdated, please check for 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 continues, we highly recommend opening a new support ticket at WPML support forum for further assistance.
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.
Tagged: Exception
This topic contains 0 replies, has 1 voice.
Last updated by Shekhar Bhandari 1 day, 2 hours ago.
Assisted by: Shekhar Bhandari.
Author | Posts |
---|---|
February 13, 2025 at 3:46 pm #16703587 | |
sbsP |
Background of the issue: Symptoms: Questions: |
February 13, 2025 at 3:51 pm #16703635 | |
Mihai Apetrei Supporter
Languages: English (English ) Timezone: Europe/Bucharest (GMT+02:00) |
Hi there. Before this ticket gets assigned to one of my colleagues, I will try to help. That is a general error message and we can't know what is causing the error until we don't dig a bit deeper. Let us share the steps that you can use to find out more about what is the actual error when you see a general error message like that one. We can enable the WordPress debug log and recreate the issue to see if we are getting a longer error message that is more specific. This will allow us to see if any PHP errors are being produced. In order to do that, we can edit the wp-config.php file inside our WordPress directory and insert the following lines: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); Now, we can try to reproduce the issue once again. We should now be able to locate the debug log in: /wp-content/debug.log Paste the content (if any) on a site like pastebin.com and then share the link with us (only you and us will see the URL you are sharing, it is automatically hidden for anyone else). Relevant Documentation: Please let us know how things go. Mihai Apetrei |
February 13, 2025 at 4:02 pm #16703684 | |
sbsP |
Hi, Thanks |
February 14, 2025 at 10:52 am #16705855 | |
Andrey Supporter Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+02:00) |
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. If I need to look the problem further, I want to ask you about the possibility of replicating your site locally. I'll need to install a "Duplicator" temporarily or "All In One Migration" plugin on your site. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide the snapshot and send me the zipped package you downloaded. Let me know how you feel about this. |
February 14, 2025 at 2:37 pm #16706872 | |
sbsP |
Hi, Have you managed to find a solution? Thanks |
February 14, 2025 at 3:59 pm #16707252 | |
Andrey Supporter Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+02:00) |
I appreciate your patience. I successfully activated the WPML plugins locally without any issues, and I have attached a screenshot for your reference. I have not yet tried activating the plugins on your live site because I do not have FTP access; without it, I won't be able to restore the site if necessary. I suggest that you clear all caches on your website and then try to activate WPML again. Please remember to back up your database before proceeding. |
February 14, 2025 at 4:11 pm #16707372 | |
sbsP |
Hi, I clear all cache and try to activate WPML again but is the same error: "'It was not possible to activate the plugin because it generated a fatal error." |
February 14, 2025 at 4:17 pm #16707391 | |
sbsP |
I have the FTP access now, but i can't edit the private message to add it |
February 14, 2025 at 4:34 pm #16707507 | |
Andrey Supporter Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+02:00) |
I have activated a new private message. |
February 17, 2025 at 9:36 am #16712478 | |
Shekhar Bhandari Supporter
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello 🙂 Andrey is not feeling well today, so I am taking care of this ticket further, I hope that's okay. I checked your ftp and it points to a blank folder, can you please correct it and let me know before I make changes on the site. Look forward to your reply. Thanks |
February 17, 2025 at 10:32 am #16713162 | |
Shekhar Bhandari Supporter
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, I can login to the ftp but it still points to the empty folder, can you check it? Look forward to your reply. Thanks |
February 17, 2025 at 3:57 pm #16715494 | |
sbsP |
Hi, Could you activated a new private message please? |
February 17, 2025 at 4:24 pm #16715620 | |
Shekhar Bhandari Supporter
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello, Enabled a private reply. Thanks |
February 18, 2025 at 5:10 am #16716855 | |
Shekhar Bhandari Supporter
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, I deleted the plugins file from the site and installed a fresh copy downloaded from https://wpml.org/account/downloads/ and the issue doesn't exists for me, can you check and verify it. Look forward to your reply. Thanks |
February 18, 2025 at 8:18 am #16717273 | |
sbsP |
Hi, Yes, is working again 🙂 If this error occurs again, should I delete the plugin and install a fresh version? Aren't the translations lost in the process? Thanks |