This thread is resolved. Here is a description of the problem and solution.
Problem:
I am trying to: I want to use WPML but as soon as I activate the plugin I am getting a database error - Deadlock error stated below.
Solution:
Please check this response: https://wpml.org/forums/topic/as-soon-as-i-turn-on-wpml-i-am-getting-deadlock-warning-and-wp-admin-is-too-slow/#post-13095239
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.
Our next available supporter will start replying to tickets in about 8.10 hours from now. Thank you for your understanding.
Tagged: Exception
This topic contains 7 replies, has 2 voices.
Last updated by Prosenjit Barman 1 year, 8 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
February 17, 2023 at 7:15 am #13054699 | |
noahB-4 |
I am trying to: I want to use WPML but as soon as I activate the plugin I am getting database error - Deadlock error stated below. Error - WordPress database error Deadlock found when trying to get lock; try restarting transaction for query INSERT IGNORE INTO wpvj_icl_translations (`element_type`, `element_id`, `trid`, `language_code`) Link to a page where the issue can be seen: As soon as you turn on WPML from plugins page I expected to see: WPML gets activated withthout any issues Instead, I got: PHP database error and plugin not activating |
February 17, 2023 at 6:14 pm #13059027 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, First of all, I'm very sorry for the unusual experience. The Deadlock error happens mostly after migrating the site from a local environment to the production environment. In order to solve the issue, Please create a full website backup and then- Please do the same for the "WPML String Translation" plugin, too. I hope it will help. Let me know if further assistance is required in this case. I will be happy to assist you. Best Regards, |
February 18, 2023 at 8:48 am #13061063 | |
noahB-4 |
Hi, I deleted WPML and string translation and then added the lastest WPML again. But the issue still persists - as soon as I activate WPML - Its loads for 4-5 minutes and the fails and php logs shows deadlock error. Also, this started to happen after I performed a full WPML reset from support -> troubleshooting -> reset and deactivate WPML. Let me know, what should I do next to solve the issue asap. Thanks. |
February 19, 2023 at 1:55 pm #13064561 | |
noahB-4 |
Also, one more thing - wpml is disabled and still there are a lot of duplicate categories for post shows up - those categories were made before reset by taxanomy translation and now all of the categories are showing up. Please help and get the issue resolved asap. New threads created by Prosenjit Barman and linked to this one are listed below: |
February 20, 2023 at 12:50 pm #13069771 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, As the issue with Deadlock didn't get solved even after reinstalling the WPML plugin, then a closer inspection of your site is required. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Please note that to maintain clarity and organization, it is important to keep discussions focused on one issue per thread. For that reason, the query about duplicate categories has been split into another thread. A response will be sent to that query very soon. Best Regards, |
February 20, 2023 at 1:12 pm #13069923 | |
noahB-4 |
Please turn on private box as I dont see the fields to enter login details. |
February 22, 2023 at 4:51 am #13084859 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Sorry for the inconvenience. I have marked the next reply as private for you so that you can securely share the information. Looking forward to your response. Best Regards, |
February 23, 2023 at 7:50 am #13095239 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I'm happy to inform you that the WPML Plugin on your site is now activated and the Deadlock error is no longer appearing. While trying to activate the WPML plugin by keeping other plugins activate, I encounter an error from Cloudflare after a few minutes. Once I tried to activate the WPML plugin by keeping other plugins deactivated on your site, I found the Deadlock error(hidden link). As the first step of resolving the Deadlock error, I cleared the WPML cache by visiting the "WPML > Support > Troubleshooting" page. This action resulted in the immediate disappearance of the Deadlock error. However, while activating the plugins one at a time, I observed that previously activated plugins were now showing as deactivated, and the Deadlock error was once again visible on the site. This type of issue usually arises due to caching. I noticed that the "CDN-Cache" was added to your site as a must-use plugin, and I suspected that it might be causing the issue. Once I disabled the plugin from the file, everything began to display correctly. As a result, no error notices were visible on the dashboard, all plugins were activated properly. Also, I haven't found any signs of the WPML in the debug log. It's possible that the caching plugin cached a SQL query related to the WordPress Posts and attempted to execute it while activating WPML. However, Please check now and let me know if you can access the features of WPML. I also have kept the Debug mode enabled so that you can verify if any deadlock error is appearing or not. As the caching plugin is a must-use plugin, it got activated after some time but be assured that it is not showing any error on the site. If you need further assistance in this matter, please let me. I will be happy to assist you. Best Regards, |