This issue occurs in the following scenario:
- Any content type use field_image entity reference, if you try to edit the image and upload an image instead current, some views that use view modes uses this field will still retrieve the old image.
- Another case I think it's related to this issue:
When you go to /admin/content/media and try to update an image the thumbnail still shows the old image after the update.

--
After the fix;

It should look as follow for Varbase 8.5.x
Media list page Varbase 8.5.x

It should look as follow for Varbase 8.4.x

Media list page Varbase 8.4.x

Comments

mahmoud-zayed created an issue. See original summary.

rajab natshah’s picture

Title: When update media image, it's still retrive the old image instead of updated one » [Entity Media] When update media image, it's still retrieve the old image instead of updated one
Version: 8.x-5.x-dev » 8.x-4.x-dev

Hi Mahmoud,
Thank you for reporting this issue.

I think it's from

#1239558: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger

We will work to fix this issue in the Media (Media) content page view

admin/structure/views/view/media/edit/media_page_list?destination=admin/content/media
admin/content/media
rajab natshah’s picture

Title: [Entity Media] When update media image, it's still retrieve the old image instead of updated one » [Media entity] When update media image, it's still retrieve the old image instead of updated one
Issue tags: +media entity, +media
rajab natshah’s picture

Title: [Media entity] When update media image, it's still retrieve the old image instead of updated one » [Media entity] When update media image, When update media image, it still retrieves the old image instead of the updated one
rajab natshah’s picture

Title: [Media entity] When update media image, When update media image, it still retrieves the old image instead of the updated one » Fixed [Media entity] issue when we update media image, it still retrieves the old image instead of the updated one
rajab natshah’s picture

Project: Varbase - The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) » Varbase Media
rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new195.92 KB

  • RajabNatshah committed 3aa267e on 8.x-5.x
    Issue #2980408: Fixed [Media entity] issue when we update media image,...
rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new162.83 KB

  • RajabNatshah committed 083d832 on 8.x-4.x
    Issue #2980408: Fixed [Media entity] issue when we update media image,...
rajab natshah’s picture

StatusFileSize
new28.54 KB

Patch for Varbase Media 8.4.x

rajab natshah’s picture

StatusFileSize
new3.63 KB

Patch for Varbase Media 8.5.x

rajab natshah’s picture

Version: 8.x-4.x-dev » 8.x-5.x-dev
Assigned: Unassigned » mohammed j. razem
Status: Active » Needs review
Issue tags: +varbase-8.4.22, +varbase-8.5.0-alpha2
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Title: Fixed [Media entity] issue when we update media image, it still retrieves the old image instead of the updated one » Fix [Media entity] issue when we update media image, it still retrieves the old image instead of the updated one