There was a call to $this->input->_remove_invisible_characters($str); It should have been: $this->input->CI->_remove_invisible_characters($str);
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index d48165e..64f95d6 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -191,7 +191,7 @@
}
$sql = $this->_create_table($this->db->dbprefix.$table, $this->fields, $this->primary_keys, $this->keys, $if_not_exists);
-
+
$this->_reset();
return $this->db->query($sql);
}