mangolozolo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Media Library Problem after update to WordPress 7.0Just to update. I have been in contact with Avada support and also Siteground (my web hosting). Neither has managed to come up with a solution other than a code snippet added to child theme that hides the “uploading” text which I will use till there is a wordpress patch that will deal with it. This is the code snippet that siteground support team provided:
add_action(‘admin_head’, ‘fix_wp7_media_uploading_bug’); function fix_wp7_media_uploading_bug() { echo ‘<style> /* Hides the visual uploading state if the item has an ID (meaning it is fully uploaded) */ .media-frame .attachment[data-id] .uploading-text, .media-frame .attachment[data-id]::before, .media-frame .attachment[data-id]::after { display: none !important; } </style>’; }
Siteground has investigated the problem and ruled out any conflict with Avada theme. I have also gone through all the steps of disabling all the plugin, checking for plugin conflicts, emptying all caches with Avada theme and within Siteground Admin, and changing themes – the problem persists.
Siteground initially thought it was this and provided this solution which didn’t resolve the issue: (pasted from chat with them)
“I have investigated the ongoing issue with your Media Library thumbnails showing an “Uploading” status, and I found that the root cause is related to an error in your website’s database. My check of the server logs revealed that WordPress is currently unable to save or update settings in your options table because of a duplicate entry conflict.
When you upload a file or perform actions in the dashboard, WordPress needs to update the ujj_options table to reflect the current state. Because this table is currently reporting a duplicate entry error, the updates are failing, which leaves the Media Library user interface stuck in a “pending” or “uploading” state even after the files have physically arrived on the server.”
“To resolve this, I recommend performing a repair of your database tables to clear these index conflicts. You can do this by logging into your Site Tools and navigating to Site, then MySQL, and opening phpMyAdmin. Once inside, select your database from the left-hand sidebar, scroll to the bottom of the table list to click “Check All,” and then select “Repair table” from the dropdown menu. This process will rebuild the table indexes and should allow WordPress to resume saving options correctly.”
“After the repair is complete, it would also be beneficial to flush your site’s cache from the Speed, then Caching section of Site Tools and from the caching plugins, to ensure the dashboard reflects the corrected database state.”
So for me the code snippet has removed the text in the media library, which is just a bug that seems to be purely visual and does not affect the use of images on the website. So for me this will do till a permanent solution can be found.
Kind regards
Mangolozolo
- This reply was modified 1 week, 4 days ago by mangolozolo.
Forum: Fixing WordPress
In reply to: Media Library Problem after update to WordPress 7.0I have exactly the same issue on my website: [ link deleted ] and have not found a solution. I use Avada Theme and their support has suggested that I need to add Titles to each image in the media Library. But it was never a problem before this update to WordPress 7. Any suggestions? It is very annoying having that text at the bottom of every image in the media library.