• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug XF 1.5: Field 'tags' Does Not Have A Default Value


Well-known member
XF 1.5...

Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Field 'tags' doesn't have a default value - library/Zend/Db/Statement/Mysqli.php:214

This will affect anything that uses the datawriters for various purposes.
Last edited:


Well-known member
The only default structure to support tagging has a default value:
            $data[$structure['table']]['tags'] = array('type' => self::TYPE_SERIALIZED, 'default' => 'a:0:{}');
What content type is throwing this error?


Well-known member
It appears to just be a simple database write that is triggering the error. At first I thought it was a datawriter causing it.

       INSERT INTO `xf_thread`
       (' . $fields . ')
       VALUES (' . $values . ')


XenForo developer
Staff member
If you're inserting into a table directly, it's something you'd need to handle. Using a datawriter handles this for you.