Skip to content

Instantly share code, notes, and snippets.

@kamaulynder
Last active August 29, 2015 14:03
Show Gist options
  • Save kamaulynder/fe3b5081ef94a8cfa602 to your computer and use it in GitHub Desktop.
Save kamaulynder/fe3b5081ef94a8cfa602 to your computer and use it in GitHub Desktop.
{"errors":[{"message":"Cannot add or update a child row: a foreign key constraint fails (`lindalinda`.`tags`, CONSTRAINT `fk_tags_role` FOREIGN KEY (`role`) REFERENCES `roles` (`name`) ON DELETE SET NULL) [ UPDATE `tags` SET `role` = '[\\\"admin\\\",\\\"user\\\"]' WHERE `id` = '2' ]","code":1452,"class":"Database_Exception","file":"\/private\/var\/wwwdocs\/Lamu\/application\/classes\/Database\/MySQLi.php","line":155,"trace":[{"file":"\/private\/var\/wwwdocs\/Lamu\/modules\/database\/classes\/Kohana\/Database\/Query.php","line":251,"function":"query","class":"Database_MySQLi","type":"->","args":[3,"UPDATE `tags` SET `role` = '[\\\"admin\\\",\\\"user\\\"]' WHERE `id` = '2'",false,[]]},{"file":"\/private\/var\/wwwdocs\/Lamu\/application\/classes\/Ushahidi\/Repository.php","line":123,"function":"execute","class":"Kohana_Database_Query","type":"->","args":[{"last_query":"SELECT COUNT(*) AS `total` FROM `tags` WHERE `slug` IS NULL"}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/application\/classes\/Ushahidi\/Repository\/Tag.php","line":121,"function":"update","class":"Ushahidi_Repository","type":"->","args":[{"id":"2"},{"role":"[\"admin\",\"user\"]"}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/src\/Ushahidi\/Usecase\/Tag\/Update.php","line":48,"function":"updateTag","class":"Ushahidi_Repository_Tag","type":"->","args":["2",{"role":"[\"admin\",\"user\"]"}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/application\/classes\/Controller\/Api\/Tags.php","line":193,"function":"interact","class":"Ushahidi\\Usecase\\Tag\\Update","type":"->","args":[{"id":"2","parent_id":"0","tag":"Duplicate","slug":"duplicate","type":"category","color":null,"icon":"tag","description":null,"priority":"0","created":"0","role":"user"},{"tag":"Duplicate","slug":"duplicate","description":"","type":"category","color":null,"icon":"tag","priority":"0","role":"[\"admin\",\"user\"]"}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Controller.php","line":84,"function":"action_put_index","class":"Controller_Api_Tags","type":"->","args":[]},{"function":"execute","class":"Kohana_Controller","type":"->","args":[]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Request\/Client\/Internal.php","line":97,"function":"invoke","class":"ReflectionMethod","type":"->","args":[{"request":{},"response":{},"acl":{"_guest_role":"guest"},"auth":{},"user":{}}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Request\/Client.php","line":114,"function":"execute_request","class":"Kohana_Request_Client_Internal","type":"->","args":[{},{}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/Request.php","line":985,"function":"execute","class":"Kohana_Request_Client","type":"->","args":[{}]},{"file":"\/private\/var\/wwwdocs\/Lamu\/httpdocs\/index.php","line":23,"function":"execute","class":"Kohana_Request","type":"->","args":[]}]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment