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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
- | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
Tagged: Bug
This topic contains 11 replies, has 3 voices.
Last updated by Long Nguyen 1 year, 2 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
April 12, 2024 at 5:15 pm #15513671 | |
Luka |
Hello, We're running the website on 8 cores with 16 gb of ram with nvme ssd and I've checked the Query Monitor plugin - everything feels in order. This can be reproduced on both our Production and Staging server. Do you have any idea why this could be the issue? |
April 13, 2024 at 12:45 pm #15514793 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Do I understand right, that only deleting one media file including its translations does take various minutes or are you deleting various images in bulk? I can currently not confirm a similar issue on the following test site: Please feel free to use this test site and try to recreate the issue. Did you try already running a test by deactivating anything apart from WPML and our add-ons? Maybe a third plugin is causing the issue when running with WPML? Did you already try to enable WP_DEBUG and check for errors when deleting the image(s)? Please try to run this test and send us the results form the debug.log. Best regards |
April 15, 2024 at 8:26 am #15517818 | |
Luka |
In both cases (bulk delete and one file only) it takes a lot of time. Debug log: (probably not related to the problem) Communication log: |
April 16, 2024 at 3:16 am #15522216 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi Luka, Thank you for contacting WPML support, I’m happy to help you with this issue. I suggest you enable a minimal environment as below and see if it helps: If it does not help, 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. Your next reply is set to private to share the info. Looking forward to your reply. |
April 17, 2024 at 6:59 am #15529599 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I tried some troubleshooting steps on your site but don't see it help. You can download the plugin Duplicator in the link below Please take a backup of your site and database, exclude some unnecessary folders like /wp-content/uploads/, /wp-content/cache/ ... and database of other subsites to reduce the file size then share it in your next reply. Also, please try with PHP version 8.1 or lower 8.0, 7.4 to see if it helps. Looking forward to your reply. |
April 19, 2024 at 3:42 am #15541644 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, After restoring your site on my localhost, I delete a single image or images in bulk and don't see that issue. The image is deleted quickly, here is the screen record hidden link I also tried with both PHP versions 8.2.0 and 7.4, and there was no difference. So I think there could be an issue with your hosting. Please try to contact your hosting support and ask them to observe the error log in the hosting while deleting the images and share the information with me. Looking forward to your reply. |
April 19, 2024 at 9:28 am #15542598 | |
Luka |
From what i could see you've restored only one website, not the whole Multisite so maybe that could also be why you're seeing speed improvements. We're hosting the servers so we can make any changes - production website is on 16cores/64gb ram server (nginx). Can you suggest what should we check on our configuration? It's probably the issue with a lot of files in a Media Library since it doesnt happen on other sites in MU where there is few hundred of images, only here where we have 60k. When i click "Delete Permanently" there is nothing in the error log of this website, and i've also enabled php-fpm slow log to see what takes the longest time, but nothing came up. Also, the error.log from MySQL is empty. |
April 20, 2024 at 10:35 am #15545899 | |
Luka |
I can confirm that immidiately when i remove the uploads folder and when there are no files on the disk the website starts to "delete permanently" in a normal speed. |
April 22, 2024 at 2:40 am #15547886 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I can confirm that immediately when I remove the uploads folder and when there are no files on the disk the website starts to "delete permanently" in a normal speed. That could be the issue because I see the uploads folder on your site has around 43GB of data and no data in the backup file so I can delete the images in the Media Library normally on the localhost. Let me discuss this issue with our 2nd tier support, I will update you here when I have something to share. Thanks. |
April 22, 2024 at 10:22 am #15549536 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Our 2nd tier support suggests you use the Blackfire or Xdebug Profiler to observe the performance issue when deleting an image on your site. If you are not familiar with that, please contact the hosting support and ask them to implement it on your site, observe the performance and share the profiler with us. Looking forward to your reply. |
April 22, 2024 at 10:48 am #15549698 | |
Luka |
Hello, |
April 23, 2024 at 1:12 am #15553314 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
I'm waiting for your feedback. Thanks. |
The topic ‘[Closed] WPML – Media Library "Delete permanently" takes a long time’ is closed to new replies.