🇵🇰Pakistan @Mansoor Aziz

Account created on 17 November 2022, almost 2 years ago
#

Recent comments

🇵🇰Pakistan Mansoor Aziz

i have the same issue as this is my error:

User warning: Missing file with ID 150. in Drupal\image\Plugin\Field\FieldType\ImageItem->preSave() (line 331 of core/modules/image/src/Plugin/Field/FieldType/ImageItem.php).

And here is it solution:

  • Just jump to your DB phpmyadmin:
  • Open all the image tables inside database
  • Search for missing file ID, In my case it's 150.
  • When you find out the file id in the database there will be the entity id mentioned in front of it (i have attached the screenshot).
  • So, From here just visit this entity id and update or remove the image

Hope this help and error will be fixed.

Production build 0.71.5 2024