Snog Well-known member Aug 19, 2015 #1 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: Aug 19, 2015
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.
Jeremy in memoriam 1991-2020 Aug 19, 2015 #2 The only default structure to support tagging has a default value: PHP: $data[$structure['table']]['tags'] = array('type' => self::TYPE_SERIALIZED, 'default' => 'a:0:{}'); What content type is throwing this error?
The only default structure to support tagging has a default value: PHP: $data[$structure['table']]['tags'] = array('type' => self::TYPE_SERIALIZED, 'default' => 'a:0:{}'); What content type is throwing this error?
Snog Well-known member Aug 19, 2015 #3 It appears to just be a simple database write that is triggering the error. At first I thought it was a datawriter causing it. Code: $db->query(' INSERT INTO `xf_thread` (' . $fields . ') VALUES (' . $values . ') ');
It appears to just be a simple database write that is triggering the error. At first I thought it was a datawriter causing it. Code: $db->query(' INSERT INTO `xf_thread` (' . $fields . ') VALUES (' . $values . ') ');
Mike XenForo developer Staff member Aug 19, 2015 #4 If you're inserting into a table directly, it's something you'd need to handle. Using a datawriter handles this for you.
If you're inserting into a table directly, it's something you'd need to handle. Using a datawriter handles this for you.
Snog Well-known member Aug 19, 2015 #5 Yes, like I said I thought it was the datawriter. It's not a bug in XF.