Since updating to 2.2.2587, anytime I edit an entry by adding a block on certain Matrix fields, it throws the following error:

Internal Server Error

CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_text_markdown' cannot be null

It seems to throw the error if any of the blocks in that field contain a lightswitch field. It doesn't matter if the block with the lightswitch is actually added to the entry or not. In this case, my Matrix contains two switches, which are off by default.

Throws the error whether the blocks with the switches are present or not… and doesn't seem to matter if I add the blocks with the switches and turn them on or off.


  • This is going to end up being a bug with a change in the last update. Can you submit a ticket from your dashboard's Get Help widget and let it send along the database?
    – Brad Bell
    Commented Sep 24, 2014 at 0:12

1 Answer 1


Fixed in Craft 2.2 build 2588!

  • Thank ya! Works perfectly again. Commented Sep 24, 2014 at 0:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.