kixe/FieldtypeButton

Missing database column for languages created after the field

Opened this issue · 0 comments

Hi,

I came across a strange issue today. I have several button fields assigned to different pages, and today I created a new language. After that, the pages which have the button field assigned display errors at the top warning me of missing columns for the new language. The error looks like this:
WireDatabasePDO: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_cta_button_1.data2094' in 'field list'
2094 is the ID of the language I created. If I manually create the column, the error goes away. Same if I remove the new language.

The worst part is that the field stops working everywhere, regardless of the active site language.

Cheers!