[NOT A BUG] Server error log: Unknown column 'xfa_tt_template' in 'field list'

Brettflan

Member
I guess that column is maybe added by some other addon I don't have?
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'xfa_tt_template' in 'field list' - src/XF/Db/AbstractStatement.php:228

Stack trace:
Code:
INSERT  INTO `xf_node` (`node_type_id`, `title`, `description`, `parent_node_id`, `display_order`, `node_id`, `node_name`, `style_id`, `effective_style_id`, `display_in_list`, `breadcrumb_data`, `navigation_id`, `effective_navigation_id`, `xfa_tt_template`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(218): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1510): XF\Db\AbstractAdapter->insert('xf_node', Array, false)
#6 src/XF/Mvc/Entity/Entity.php(1242): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#8 src/XF/Mvc/FormAction.php(187): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#9 src/addons/Truonglv/Groups/Pub/Controller/Forum.php(67): XF\Mvc\FormAction->run()
#10 src/XF/Mvc/Dispatcher.php(350): Truonglv\Groups\Pub\Controller\Forum->actionAdd(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('Truonglv\\Groups...', 'Add', Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Forum), NULL)
#13 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#15 src/XF.php(488): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}

Request state:
Code:
array(4) {
  ["url"] => string(40) "/index.php?group-forums/add&group_id=385"
  ["referrer"] => string(56) "https://forums.taleworlds.com/index.php?forums/info.761/"
  ["_GET"] => array(2) {
    ["group-forums/add"] => string(0) ""
    ["group_id"] => string(3) "385"
  }
  ["_POST"] => array(10) {
    ["node"] => array(3) {
      ["title"] => string(4) "VW 2"
      ["description"] => string(0) ""
      ["parent_node_id"] => string(1) "0"
    }
    ["min_tags"] => string(1) "0"
    ["allowed_watch_notifications"] => string(3) "all"
    ["default_sort_order"] => string(14) "last_post_date"
    ["default_sort_direction"] => string(4) "desc"
    ["list_date_limit_days"] => string(1) "0"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(27) "/index.php?forums/info.761/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

This error seems to be new to Social Groups 3.0.7.
 

Truonglv

♥♥ √εgετα ♥♥
Staff member
Tech Support
That seem belong to your custom add-ons. Try to disable one by one to get that.
 

Brettflan

Member
Ah, confirmed. I forgot we recently installed the "[XFA] Thread Template" addon, and the errors were only showing up in relation to social groups creating new discussion forums. I tried creating a new node in the admin panel and got the same error.

Apologies, will take it up with that addon dev.
 

Thread view new threads

Top