XF\Db\Exception: MySQL query error [1364]: Field 'xfa_rmmp_cgv' doesn't have a default value
src/XF/Db/AbstractStatement.php:212
Трассировка стека
INSERT INTO `xf_rm_resource` (`resource_category_id`, `user_id`, `username`, `resource_state`, `title`, `prefix_id`, `tag_line`, `external_url`, `alt_support_url`, `resource_type`, `rating_weighted`, `rating_avg`, `resource_id`, `resource_date`, `current_version_id`, `description_update_id`, `discussion_thread_id`, `external_purchase_url`, `price`, `currency`, `download_count`, `rating_count`, `rating_sum`, `update_count`, `review_count`, `last_update`, `custom_fields`, `icon_date`, `tags`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(78): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(161): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1389): XF\Db\AbstractAdapter->insert('xf_rm_resource', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1121): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/addons/XFRM/Service/ResourceItem/Create.php(288): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(40): XFRM\Service\ResourceItem\Create->_save()
#8 src/addons/XFRM/Pub/Controller/Category.php(268): XFRM\Service\ResourceItem\Create->save()
#9 src/XF/Mvc/Dispatcher.php(249): XFRM\Pub\Controller\Category->actionAdd(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XFRM:Category', 'add', 'json', Object(XF\Mvc\ParameterBag), 'xfrm', Object(XFRM\Pub\Controller\Category), NULL)
#11 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#13 src/XF.php(328): XF\App->run()
#14 index.php(13): XF::runApp('XF\\Pub\\App')
#15 {main}
Содержимое запроса
array(4) {
["url"] => string(55) "/resources/categories/plaginy-dlja-left-4-dead-2.17/add"
["referrer"] => string(70) "http://test.ru/resources/categories/plaginy-dlja-left-4-dead-2.17/add"
["_GET"] => array(0) {
}
["_POST"] => array(17) {
["prefix_id"] => string(1) "2"
["title"] => string(20) "l4d2_Hud_Server_Logo"
["tag_line"] => string(20) "l4d2_Hud_Server_Logo"
["resource_type"] => string(14) "download_local"
["version_attachment_hash"] => string(32) "05985ef65eb44b3a6b8a7b25dc83f0f6"
["version_attachment_hash_combined"] => string(107) "{"type":"resource_version","context":{"resource_category_id":17},"hash":"05985ef65eb44b3a6b8a7b25dc83f0f6"}"
["version_string"] => string(1) "1"
["description_html"] => string(3723) "<p><u>Functions</u>:</p><p>- Round statistics like killed zombies, spawned, took, used items...</p><p>- Personal statistics:</p><p>---> infected: dmg per life and dmg per round</p><p>---> survivors: kills per round</p><p>- Anti corner camping with slap function</p><p>- Markersystem to mark as an infected survivors for better coordination (via panel notification)</p><p>- Messages for connection, disconnection and friendly fire</p><p><br></p><p><u>Todo:</u></p><p>- Infected stats like pounced, scratched, incaped...</p><p>- Boomer damage through common infected</p><p><br></p><p><u>Cvars:</u></p><p>epiclite_version --> Version</p><p>epiclite_corner_camping --> Checks for Cornercamping and will slap players if continues camping</p><p>epiclite_corner_camping_check_interval --> Cornercamping check interval</p><p>epiclite_corner_camping_radius --> Cornercamping check radius from group middle point to players</p><p>epiclite_corner_camping_slap -->Hp loss if cornercamping is detected</p><p>epiclite_target_interval --> Display interval of marked survivors</p><p><br></p><p><u>Commands:</u></p><p>epiclite_list_changes --> Lists all changes of epicmodlite. (clients)</p><p>epiclite_check_corner_camping --> Force to check if there is cornercamping (server)</p><p>epiclite_dump_stats --> Dump the stats arrays for survivor and infected (server) (Only if debug ist enabled)</p><p><br></p><p><u>Changelog:</u></p><p>1.0.0.1 </p><p>- Initial Release</p><p><br></p><p>1.0.0.2</p><p>- Fixed bug, no stats after team change to survivors</p><p><br></p><p>1.0.0.3</p><p>- Fixed really the bug</p><p>- Debug output in file and command epiclite_dump_stats are now optional through global debug variable</p><p><br></p><p>1.0.0.4</p><p>- List changes via say !epiclite</p><p>- Change of welcome message</p><p>- Creation of config file</p><p>- Stop of recording stats after end round to avoid failure messages</p><p>- Infected bots stats record stopped</p><p><br></p><p>1.0.0.5</p><p>- Fixed bug, that bots stats deletion is not abort</p><p>- Fixed bug, where an infected killed an infected leads to an out of bound array failure</p><p>- Moved the debug file to the sourcemod logs </p><p>- Debug file default off</p><p><br></p><p>1.0.0.6</p><p>- Adding Cvar flag FCVAR_DONTRECORD1.0.0.7</p><p>- Adding Cvar flag FCVAR_DONTRECORD only to version cvar</p><p>- Adding name for configfile with versionnumber</p><p>- Removing Cvar Flag FCVAR_SPONLY- Print the list of changes in the chat</p><p><br></p><p>1.0.0.7</p><p>- Adding Cvar flag FCVAR_DONTRECORD only to version cvar</p><p>- Adding name for configfile with versionnumber</p><p>- Removing Cvar Flag FCVAR_SPONLY</p><p>- Print the list of changes in the chat</p><p><u><br>Compatibility:</u></p><p>- not working with mods enabling more than 8 players</p><p>- not working with mods enabling to change the models</p><p><br></p><p><u>Credits:</u></p><p>- Cellwick, mesaya, daoka, Nos/Ghostbuster</p><p>- sourcemod.net</p><p>- wiki.alliedmods.net</p><p>- and many others for ideas</p><p><br></p><p>I couldn't really tested the infected and survivor stats on a real server with 4vs4 players, so i hope it will work, otherwise tell me. The plugin in this version creates a debug file named "epicmodlite_debug.txt", to show the failure(s) in the stats part.</p><p>The next days i will be on something like holiday (W:O:A!), so i will see your postings hopefully in one week. I hope, i added some interessing ideas to Left 4 Dead.</p><p>This mod is the "little brother" of my epicmod, which is messing around with the convars and adding some other ideas like the blind luck plugin, so the difficulty in versus mode is increasing to 200%. </p>"
["attachment_hash"] => string(32) "880034bb0605d3f51449168590561e4f"
["attachment_hash_combined"] => string(106) "{"type":"resource_update","context":{"resource_category_id":17},"hash":"880034bb0605d3f51449168590561e4f"}"
["tags"] => string(0) ""
["external_url"] => string(0) ""
["alt_support_url"] => string(0) ""
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(55) "/resources/categories/plaginy-dlja-left-4-dead-2.17/add"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}