This is the error I receive, give any setting and press save equals:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'type' cannot be null: UPDATE {field_conditional_states_group} SET type=:db_update_placeholder_0 WHERE (group_id = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => [:db_condition_placeholder_0] => 1 ) in field_conditional_state_settings_form_submit() (line 321 of /home/e-smith/files/ibays/sota4/html/sites/all/modules/field_conditional_state/field_conditional_state.admin.inc).

Comments

Tobias Xy’s picture

Did you migrate from 1.x or did you make a clean 2.x installation?

Could you provide me the contents of your field_conditional_states_group and field_conditional_state database tables?

Tobias Xy’s picture

Status: Active » Fixed

Found the problem: Because of a bug the states of groups were not being saved lowercased. It is fixed in the latest version now.

But the existing data must be fixed too. Run the following mysql command:
UPDATE field_conditional_states_group SET state = LOWER(state)

Afterwards the error shouldn't appear anymore.

antonyanimator’s picture

Great thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.