Skip Navigation

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - -
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

Tagged: 

This topic contains 22 replies, has 5 voices.

Last updated by Nigel 9 months ago.

Assisted by: Itamar.

Author Posts
January 30, 2024 at 11:38 am #15242990

Philip

Hi! We found in the logs of our website that WPML sometimes leads to critical database errors (called deadlocks) Could you check the log (below) and give us your recommendations - how can we avoid this and what is the cause of these deadlocks?

FastCGI: server "/var/run/hcgi/18256" stderr: WordPress database error Deadlock found when trying to get lock; try restarting transaction for query INSERT IGNORE INTO wp_options ( `option_name`, `option_value`, `autoload` ) VALUES ('wpml.WPML\\TM\\Settings\\ProcessNewTranslatableFields.lock', '1706460346', 'no') / LOCK / made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}, WPML\FP\Promise->resolve, WPML\FP\Right->chain, WPML\FP\Right->map, WPML\BackgroundTask\BackgroundTaskLoader->WPML\BackgroundTask\{closure}, WPML\BackgroundTask\BackgroundTaskLoader->getSerializedTasks, WPML\FP\Fns::__callStatic, call_user_func_array, WPML\FP\Fns::WPML\FP\{closure}, call_user_func_array, WPML\FP\Fns::WPML\FP\{closure}, array_map, WPML\BackgroundTask\BackgroundTaskLoader->WPML\BackgroundTask\{closure}, WPML\BackgroundTask\BackgroundTaskViewModel::get, WPML\Utilities\Lock->create, WPML\Utilities\Lock->create, referer hidden link

January 30, 2024 at 12:17 pm #15243246

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Philip,

Reference to our recent chat, meanwhile this ticket is attended by one of my colleagues, please prepare a staging/test site where we can debug/observe the issue in detail.

I've set your next reply as private to share this information safely.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

January 31, 2024 at 3:19 pm #15250106

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'll continue to help you with this issue.

Please share with us the access to your staging site when it is ready.

I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Thanks,
Itamar.

February 1, 2024 at 9:44 am #15253596

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

There is a server restriction on this site, and you didn't send me the access details for this. Please edit the last private message and add the access details to this server.

Thanks,
Itamar.

February 1, 2024 at 9:47 am #15253603

Philip

Hi Itamar,
Done

February 1, 2024 at 8:33 pm #15256919

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

We need to check the DB of your site. For this, we need your approval to install the Adminer script. hidden link. But I get this error when I try to connect to your site with FTP.

Response:	530 Login authentication failed
Error:	Critical error: Could not connect to server

I want to ask you please:

A. To correct the FTP access.
B. Allow me to install Adminer and check the site's DB.

Thanks,
Itamar.

February 4, 2024 at 9:43 pm #15263976

garethM-3

I too am experiencing deadlock issues (https://wpml.org/forums/topic/database-deadlock-bringing-site-down/), each fix supplied by the support team either works temporarily or doesn't work at all, so I am interested to see if this one can be resolved for Philip.

In my ticket, one of the engineers says this is a known bug they're working on.

February 5, 2024 at 9:25 am #15264910

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Regarding my last reply, alternatively, please allow me to install the WP phpMyAdmin plugin.
https://wordpress.org/plugins/wp-phpmyadmin-extension/

I'm also consulting our second-tier supporters regarding this issue.

Regards,
Itamar.

February 5, 2024 at 1:20 pm #15266303

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

In addition to the above, our developers are asking if this error is happening repeatedly or if it happened only once.

Can you please answer this question?

Thanks,
Itamar.

February 5, 2024 at 2:49 pm #15266736

Philip

Hello Itamar,

Thank you for your reply.

I have removed the FTP access restriction so you should now be able to connect.

As for access to the database - I need 1-2 days of preparation.

Regarding your question about the frequency of the issues - yes, it happens periodically/repeatedly (we see it once a week or once every 2 weeks).

February 5, 2024 at 8:24 pm #15268343

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Thanks.

I can see now that the FTP access works.

Please let us know when we can install the Adminer script and inspect the DB.

Regards,
Itamar.

February 6, 2024 at 1:32 pm #15272045

Philip

Hi Itamar,

Please feel free to install the Adminer script or WP phpMyAdmin plugin.

A solution to the issue would be greatly appreciated.

Have a good day.

February 7, 2024 at 5:20 pm #15278117

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I installed the Adminer script through FTP and can now access your site's DB. I've passed this information to our second-tier supporter, who will check the DB further. However, the WordPress admin access does not work for me anymore. I get this message:

Fehler: Der Benutzername admin_wpml ist auf dieser Website nicht registriert. Falls Sie über Ihren Benutzernamen unsicher sind, versuchen Sie es stattdessen mit Ihrer E-Mail-Adresse.

Could you please check and correct this?
You can edit the last private reply if needed.

Regards,
Itamar.

February 7, 2024 at 7:30 pm #15278820

Philip

Hi Itamar,

Sorry. I have corrected WP Admin access for you.

Have a good day.

February 8, 2024 at 10:19 pm #15283674

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Our second-tier supporters and developers have identified a potential problem with stuck WPML cron (background) jobs on your site. They made a change, and the issue might be resolved because of that change.

We want to ask you to share a DB dump PRIOR to the fix that we did today - so that we can identify properly the issue and try to prevent future such issues. For this, I'll enable private messages for the next reply.

Regards,
Itamar.

The topic ‘[Closed] WordPress database error Deadlock found’ is closed to new replies.