# Mediendatenbank reindizieren

**URL:** <https://forum.shopware.com/t/mediendatenbank-reindizieren/68919>\
**Category:** Administration\
**Created:** [12. August 2020 um 11:36 UTC](https://forum.shopware.com/t/mediendatenbank-reindizieren/68919 "2020-08-12T11:36:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinSerdar](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MartinSerdar](https://forum.shopware.com/u/MartinSerdar)\
**Post date:** [12. August 2020 um 11:36 UTC](https://forum.shopware.com/t/mediendatenbank-reindizieren/68919/1 "2020-08-12T11:36:20Z")

</div>

Hallo,&nbsp;

gibt es ein Kommando oder eine Funktion im Backend, damit ich die Medienbibliothek neu indizieren lassen kann? Ich habe ein paar Leichen mit nem dicken “X” als Thumbnail und wenn ich die löschen möchte, gibt’s ne Fehlermeldung, dass die Datei nicht existiert - logischerweise, sonst wäre ja ein Thumbnail vom Bild zu sehen.

Für einen Tipp wäre ich sehr dankbar. Möchte ungern in der DB rumfummeln müssen…

Herzlichen Gruß

Martin

---

<div class="post-metadata">

**Author:** ![MartinSerdar](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MartinSerdar](https://forum.shopware.com/u/MartinSerdar)\
**Post date:** [12. August 2020 um 14:15 UTC](https://forum.shopware.com/t/mediendatenbank-reindizieren/68919/2 "2020-08-12T14:15:41Z")

</div>

Keiner? Es werden immer mehr kaputte Icons…&nbsp;

---

<div class="post-metadata">

**Author:** ![MartinSerdar](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MartinSerdar](https://forum.shopware.com/u/MartinSerdar)\
**Post date:** [14. August 2020 um 10:28 UTC](https://forum.shopware.com/t/mediendatenbank-reindizieren/68919/3 "2020-08-14T10:28:36Z")

</div>

Push

---

<div class="post-metadata">

**Author:** ![MaxW](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MaxW](https://forum.shopware.com/u/MaxW)\
**Post date:** [17. August 2020 um 20:50 UTC](https://forum.shopware.com/t/mediendatenbank-reindizieren/68919/4 "2020-08-17T20:50:08Z")

</div>

Meine Installation:

- v6.3.0.1 (Production Template)
- APP\_ENV=dev
- TWIG: cache: false

Also bei mir&nbsp;wurde folgendes Verzeichnis “ausversehen” gelöscht: “public/thumbnail”. Dieser Ordner war bei mir bis auf die .gitkeep komplett leer. Demenstrechend wurden bei mir im Backend vorallem bei Produkten nur ein rotes X angezeigt und in der Storefront wurden auch keine Thumbnails angezeigt.

Der Konsolenbefehl “bin/console media:generate-thumbnails” hat einfach nichts neues generiert und alles als “skipped” angezeigt.

Dann habe ich einfach über PhpMyAdmin die Tabelle **“media\_thumbnail”&nbsp;** geleert (truncate) und danach wieder " **bin/console media:generate-thumbnails"** ausgeführt. Diesmal mit Erfolg. Jetzt werden wieder alle Thumbnails in der Administration & in der Storefront angezeigt.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/e/edd24a1abfc7828b8d7c0bd8c73c9ff7de04f863.png)

Wenn das irgendwer nachmachen möchte (1) ein Backup erstellen (2) am besten nur in einem Testsystem ausprobieren.

---

<div class="post-metadata">

**Author:** ![FloC3](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@FloC3](https://forum.shopware.com/u/FloC3)\
**Post date:** [7. September 2020 um 09:32 UTC](https://forum.shopware.com/t/mediendatenbank-reindizieren/68919/5 "2020-09-07T09:32:05Z")

</div>

der&nbsp; **bin/console media:generate-thumbnails&nbsp;** funktioniert bei mir irgendwie nicht…&nbsp; was läuft da falsch?

```
09:29:20 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:21 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:21 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:21 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:22 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:22 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:22 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:23 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:23 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]
09:29:23 WARNING [php] Warning: exif_read_data(): Unable to open file ["exception" => ErrorException { â€¦}]

```

irgendwie verwendet das Listing bei uns im Shop immer das Originalbild und keine Thumbnails… woran kann das liegen?

sogar im Backend werden direkt die Originalbilder genutzt statt Thumbnails

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/e/eae76fa4bd590c981d94c1a1819c6f439ea9558d.png)
