[2.0] An error occurred during rendering the "data_table" hook in the "sylius_admin.common.index.content.grid" hookable.
Sylius version affected: 2.0.5
Description
I did a fresh installation with sample data. I added nl_NL as a locale and EUR as currency.
Steps to reproduce
- log in as admin
- click on products
- the below error is thrown
An error occurred during rendering the "data_table" hook in the "sylius_admin.common.index.content.grid" hookable. An exception has been thrown during the rendering of a template ("Warning: strtr(): Ignoring replacement of empty string").
Hi @Aquive! 👋
First off, apologies for the long silence on this ticket.
I’ve just tried to reproduce the issue on fresh installations of Sylius 2.0. Unfortunately, I couldn’t reproduce the issue you had.
Could you let us know if you can still reproduce this problem on the latest Sylius 2.0 or 2.1? If so, any extra details would be really helpful.
Thanks a lot, and sorry again for the delay!
Think it's related to the Taxon's not having a Dutch translations and this line triggering the error:
https://github.com/Sylius/Sylius/blob/593e2091b1d07df9cb10e6dbac589df4a69fdbec/src/Sylius/Bundle/AdminBundle/templates/product/grid/field/main_taxon.html.twig#L2C51-L2C70
I just got the same issue with Sylius 2.1, using composer create-project sylius/sylius-standard AcmeStore