Shopware 5: Empty snippet file

In DatabaseWriter.php line 75:
You called write() but provided no data to be written

This error occurs, when your snippet file does not contain snippets. In my case my file is living in src/Resources/snippets/plugins/backend/plugin.ini and looked like this:

[en_GB]

[de_DE]

Which doesn’t look empty, but is ?

I changed the file to this:

[en_GB]
"Empty throws error","Empty throws error"
[de_DE]
"Empty throws error","Leer wirft Fehler"

But if you don’t need it you could just delete it.

Leave a Reply