• Resolved wesleyj

    (@wesleyj)


    I setup a website. The site had 2 admin roles. When I deleted one admin; the one that uploaded the test images, I could not see any images in the Media Library anymore. I guess I deleted them all or most ( Some other images where still in the uploads directory) .

    I used a backup service to restore my public_html directory. My images got back and I can see them on my website. However I can’t see any image in the media library. The backup service offers database restore for 1 day back, I need restore of at least 5 days back, so I cant use this option anymore.

    I can’t determine what causes this. I have not attributed the images to another (new) user, so it could be the deleted one.

    How can I solve this and get my images visible in the Media Library again?

    • This topic was modified 1 year, 1 month ago by wesleyj.
Viewing 13 replies - 1 through 13 (of 13 total)
  • If you have restored all the media files (which should have happened when you restored your home directory) you can use a plugin to regenerate all your thumbnails. I’m not sure I can reccomend specific plugins in this forum, but there are some popular free options you can easily find in the official plugin directory. This should hopefully solve your problem.

    Thread Starter wesleyj

    (@wesleyj)

    I used the regen. plugin from Alex Mills, but it did not work for me. It has nothing to do with existing images in the Media Lib. From what I have been researching online about this subject I read it could be caused by either a user wrongly attributed to an image or a url path set wrong. Which mysql tables in the database store these data?

    Edit 1: I found image meta data at the frontpage and checked in phpmyadmin Search to find it. No result! Where are the metadata of an image usually stored in a database?

    • This reply was modified 1 year, 1 month ago by wesleyj.

    They are stored in your posts table (media is a just post type).

    I reccomend next checking post permissions, or for code that alters post permissions. Look for anything that has been added to functions.php or wp-config that would restrict media post type to the usuer that uploaded it, such as the function “edit_others_posts“.

    There are also plugins that can manage permissions on a user basis, so you could try that, it might get you a simple one click fix.

    Thread Starter wesleyj

    (@wesleyj)

    I can’t find this. I have more issues after removing the Admin user. In Yoast plugin I can’t see the keywords phrase box for instance. Could this be read/write/execute issue? I’m looking for a solution to attribute all the former admin settings to the new one. (despite having removed the old user already)

    Probably best to start a post in the Yoast forum for that.

    I think it is more likely a permissions issue. Did you delete the old admin account through the wordpress dashboard and also reassign their content to the new account?

    If not, it is possible that their ID number is still assigned to posts and you need to reassign yourself to them. There are plugins that can help reassign content. Do you know the ID number of the old admin account? You can check who is assigned to content by looking at the posts table and the ID number of the author is in the post_author column.

    Thread Starter wesleyj

    (@wesleyj)

    I created a user with Author role. I only attributed posts and pages to this user. I discovered the posts attributed to this user do have Yoast SEO keyword phrase editing possibilities. Images however I don’t see in the image library. Despite a load a drew in with a plugin called media sync but this does not work and is not related to the images online.

    The new Admin user has ID 2. The old Admin user had ID 1.

    • This reply was modified 1 year, 1 month ago by wesleyj.
    Thread Starter wesleyj

    (@wesleyj)

    I also saw the existing images have 644 set as permissions, is that correct? But what plugin is used to reassign images access to a user?

    I also saw the existing images have 644 set as permissions, is that correct?

    Yes

     But what plugin is used to reassign images access to a user?

    I would go to posts table in your database, find an image, change post_author for that single image from 1 (old admin) to 2 (new admin). Go to your dashboard and see if that single image now shows in your media library. If it does then the problem is author permissions.

    Thread Starter wesleyj

    (@wesleyj)

    I have LiteSpeed and the images are in a LiteSpeed table. And there is no post_author number in this table.

    It would be useful if WordPress offered an option ( plugin) to reset all the old ( orphaned) content to at least 1 user. Whether this is and admin or not, but you need control.

    I run LiteSpeed on some servers too but the posts table is the one where your original media post data is stored. In the post_type column they will be identified as an attachment. You will see the post_author column in that table. Are you able to post a URL to your site to see some example images? Are the images definitely hosted on your site and not external hotlinked?

    Thread Starter wesleyj

    (@wesleyj)

    I see nothing in the posts table. The table with the images is called : wp_litespeed_img_optiming . The CDN is quic.cloud; so the images are also stored on the remote CDN servers. Though I do see the post_title in the wp_posts but with an .bk extension.

    There are now 3 things not working properly for the new made main user:

    1. I can’t see the Image Library
    2. I can’t see the featured image option field while creating a post
    3. I don’t see yoast SEO keyphrase and analysis settings

    Thread Starter wesleyj

    (@wesleyj)

    I solved my issues. I had to upload all images again. I hope developers create a plugin that makes it possible to assign / reassign images to a specific user.

    Glad you solved it and sorry I could not be more help! I was trying to find out more and I saw people with Quic Cloud CDN have had similar issues. I don’t know how common it this is and you probably searched already, but if you search something like “quic cloud disappeared media library” there are people experiencing similar. It might be worth posting your issue with https://wordpress.org/support/plugin/litespeed-cache/ so you can hopefully ensure whatever caused it does not happen again.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Images not visible in Media Library after deleting Admin’ is closed to new replies.