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

MG 2.0 Server error log

ALMUSA

Active member
#1
Server error log

  • XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'last_comment_id' in 'field list'
  • src/XF/Db/AbstractStatement.php:212
  • Generated by:
  • Nov 11, 2017 at 12:35 PM
Stack trace
UPDATE xf_mg_media_item SET `comment_count` = ?, `last_comment_date` = ?, `last_comment_id` = ?, `last_comment_user_id` = ?, `last_comment_username` = ? WHERE `media_id` = 64
------------

#0 src/XF/Db/Mysqli/Statement.php(174): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(36): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(46): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(69): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(230): XF\Db\AbstractAdapter->query('UPDATE xf_mg_m...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1348): XF\Db\AbstractAdapter->update('xf_mg_media_ite...', Array, '`media_id` = 64')
#6 src/XF/Mvc/Entity/Entity.php(1085): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/addons/XFMG/Entity/Comment.php(454): XF\Mvc\Entity\Entity->save()
#8 src/addons/XFMG/Entity/Comment.php(437): XFMG\Entity\Comment->updateContentRecord()
#9 src/XF/Mvc/Entity/Entity.php(1109): XFMG\Entity\Comment->_postSave()
#10 src/addons/XFMG/Service/Comment/Creator.php(121): XF\Mvc\Entity\Entity->save()
#11 src/XF/Service/ValidateAndSavableTrait.php(40): XFMG\Service\Comment\Creator->_save()
#12 src/addons/XFMG/Pub/Controller/AbstractComment.php(186): XFMG\Service\Comment\Creator->save()
#13 src/XF/Mvc/Dispatcher.php(249): XFMG\Pub\Controller\AbstractComment->actionAddComment(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XFMG:MediaComme...', 'add-comment', 'json', Object(XF\Mvc\ParameterBag), 'xfmg', Object(XFMG\Pub\Controller\MediaComment), NULL)
#15 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(1845): XF\Mvc\Dispatcher->run()
#17 src/XF.php(328): XF\App->run()
#18 index.php(13): XF::runApp('XF\\Pub\\App')
#19 {main}


Can not add media or comment on media.
 

Chris D

XenForo developer
Staff member
#2
I see your site is currently being upgraded, does this mean that perhaps you were still on Beta 8? If so, this is a known issue and resolved in RC 1.