What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Server error log - [XFA] Core 1.2.1

Server error log after upgrade to [XFA] Core 1.2.1
when I attach a file

Server error log
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'xfa_do' in 'field list' src/XF/Db/AbstractStatement.php:212
Generated by: cяiмiиαℓ Jun 18, 2018 at 03:58
Stack trace
INSERT INTO `xf_attachment_data` (`user_id`, `filename`, `file_size`, `file_hash`, `file_path`, `width`, `height`, `data_id`, `upload_date`, `thumbnail_width`, `thumbnail_height`, `attach_count`, `xfa_do`, `xfa_url`) 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(79): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(159): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1389): XF\Db\AbstractAdapter->insert('xf_attachment_d...', Array, false)
#6 src/XF/Mvc/Entity/Entity.php(1121): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/XF/Service/Attachment/Preparer.php(67): XF\Mvc\Entity\Entity->save(true, false)
#8 src/XF/Service/Attachment/Preparer.php(16): XF\Service\Attachment\Preparer->insertDataFromFile(Object(XF\FileWrapper), 1, Array)
#9 src/XF/Attachment/Manipulator.php(170): XF\Service\Attachment\Preparer->insertAttachment(Object(XFRM\Attachment\ResourceVersion), Object(XF\FileWrapper), Object(SV\UserMentionsImprovements\XF\Entity\User), 'cc574963e5f0d01...')
#10 src/XF/Pub/Controller/Attachment.php(86): XF\Attachment\Manipulator->insertAttachmentFromUpload(Object(XF\Http\Upload), NULL)
#11 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Attachment->actionUpload(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(87): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Upload', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Attachment), NULL)
#13 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#15 src/XF.php(328): XF\App->run()
#16 index.php(13): XF::runApp('XF\\Pub\\App')
#17 {main}
Request state
array(4) {
["url"] => string(104) "/attachments/upload?type=resource_version&context[resource_id]=649&hash=cc574963e5f0d010242fc6661dc29895"
["referrer"] => string(68) "https://www.xxxxxx.com/resources/bp-mosteveronline.649/post-update"
["_GET"] => array(3) {
["type"] => string(16) "resource_version"
["context"] => array(1) {
["resource_id"] => string(3) "649"
}
["hash"] => string(32) "cc574963e5f0d010242fc6661dc29895"
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["flowChunkNumber"] => string(1) "1"
["flowChunkSize"] => string(10) "4294967296"
["flowCurrentChunkSize"] => string(5) "10359"
["flowTotalSize"] => string(5) "10359"
["flowIdentifier"] => string(30) "10359-BP-MostEverOnline-103zip"
["flowFilename"] => string(27) "BP-MostEverOnline-1.0.3.zip"
["flowRelativePath"] => string(27) "BP-MostEverOnline-1.0.3.zip"
["flowTotalChunks"] => string(1) "1"
}
}
 

Clement

Freaky Coder
Staff member
@Fredxd, it was in the core code which I recently merged. It was working right ?

I havent commit 1.2.1 changes yet.
 
Top