I'm using CiviCRM 5.50.4 on Drupal 7 with MariaDB. The NGO I volunteer for uses French language. When a user creates an event, we have the following error (debugging mode):
UserInfo INSERT INTO `civicrm_price_set_fr_FR` (`name` , `title` , `is_active` , `extends` , `financial_type_id` , `is_quick_config` , `is_reserved` , `min_amount` ) VALUES ('apprice_set_508' , 'AP [Copie id 508]' , 1 , '1' , 4 , 1 , 0 , 0.00 ) [nativecode=1423 ** Field of view 'drupal.civicrm_price_set_fr_FR' underlying table doesn't have a default value]
Thanks to PhpMyadmin, I discovered the civicrm_price_set_fr_FR
is a view based on the table civicrm_price_set
and two of the view fields don't have a default value.
Question 1 - I identified two resolution possibilities:
- I could set MariaDb to ignore that with the STRICT_TRANS_TABLES parameter - but it means not catching abnormal queries anymore
- I could work to set a default value - but I still haven't figure out how to do so
Any advice?
Question 2 - Despite this error message, the actual issue is that I can't register Contacts on new Events since I can't save mandatory pricing information: I don't know if the above issue is the root cause of that or equally a consequence of another issue ...
Question 3 - Should I, someday, report this as a bug or an evolution request to avoid this issue to happen to other users?
Thanks for your help, have a nice day!