{"action":"closed","issue":{"url":"https://api.github.com/repos/ColdTrick/menu_builder/issues/24","labels_url":"https://api.github.com/repos/ColdTrick/menu_builder/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ColdTrick/menu_builder/issues/24/comments","events_url":"https://api.github.com/repos/ColdTrick/menu_builder/issues/24/events","html_url":"https://github.com/ColdTrick/menu_builder/issues/24","id":85933872,"number":24,"title":"tested latest version in 1.11.2 elgg and got a fatal error on activation","user":{"login":"propertunist","id":513903,"avatar_url":"https://avatars.githubusercontent.com/u/513903?v=3","gravatar_id":"","url":"https://api.github.com/users/propertunist","html_url":"https://github.com/propertunist","followers_url":"https://api.github.com/users/propertunist/followers","following_url":"https://api.github.com/users/propertunist/following{/other_user}","gists_url":"https://api.github.com/users/propertunist/gists{/gist_id}","starred_url":"https://api.github.com/users/propertunist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/propertunist/subscriptions","organizations_url":"https://api.github.com/users/propertunist/orgs","repos_url":"https://api.github.com/users/propertunist/repos","events_url":"https://api.github.com/users/propertunist/events{/privacy}","received_events_url":"https://api.github.com/users/propertunist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-07T19:57:03Z","updated_at":"2015-12-11T11:11:01Z","closed_at":"2015-12-11T11:11:01Z","body":"the plugin is activated, however, there are no visual effects in the gui of the site to show that menu_builder is active.\r\n\r\n```\r\nFatal Error.\r\n\r\nDuplicate entry '52-active_plugin-1' for key 'guid_one'\r\n\r\nQUERY: INSERT INTO entity_relationships\r\n(guid_one, relationship, guid_two, time_created)\r\nVALUES (52, 'active_plugin', 1, 1433706691)\r\n\r\nDatabaseException Object\r\n(\r\n[message:protected] => Duplicate entry '52-active_plugin-1' for key 'guid_one'\r\n\r\nQUERY: INSERT INTO entity_relationships\r\n(guid_one, relationship, guid_two, time_created)\r\nVALUES (52, 'active_plugin', 1, 1433706691)\r\n[string:Exception:private] => exception 'DatabaseException' with message 'Duplicate entry '52-active_plugin-1' for key 'guid_one'\r\n\r\nQUERY: INSERT INTO entity_relationships\r\n(guid_one, relationship, guid_two, time_created)\r\nVALUES (52, 'active_plugin', 1, 1433706691)' in /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Database.php:406\r\nStack trace:\r\n#0 /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Database.php(215): Elgg\\Database->executeQuery('INSERT INTO ent...', Resource id #73)\r\n#1 /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Database/RelationshipsTable.php(115): Elgg\\Database->insertData('INSERT INTO ent...')\r\n#2 /var/www/html/dev.ureka.1.11.2/engine/lib/relationships.php(74): Elgg\\Database\\RelationshipsTable->add(52, 'active_plugin', 1)\r\n#3 /var/www/html/dev.ureka.1.11.2/engine/classes/ElggPlugin.php(972): add_entity_relationship(52, 'active_plugin', 1)\r\n#4 /var/www/html/dev.ureka.1.11.2/engine/classes/ElggPlugin.php(654): ElggPlugin->setStatus(true, NULL)\r\n#5 /var/www/html/dev.ureka.1.11.2/actions/admin/plugins/activate.php(29): ElggPlugin->activate()\r\n#6 /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/ActionsService.php(88): include('/var/www/html/d...')\r\n#7 /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/ActionsService.php(70): Elgg\\ActionsService::includeFile('/var/www/html/d...')\r\n#8 /var/www/html/dev.ureka.1.11.2/engine/lib/actions.php(20): Elgg\\ActionsService->execute('admin/plugins/a...')\r\n#9 [internal function]: _elgg_action_handler(Array, 'action')\r\n#10 /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Router.php(80): call_user_func('_elgg_action_ha...', Array, 'action')\r\n#11 /var/www/html/dev.ureka.1.11.2/index.php(60): Elgg\\Router->route(Object(Elgg\\Http\\Request))\r\n#12 {main}\r\n[code:protected] => 0\r\n[file:protected] => /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Database.php\r\n[line:protected] => 406\r\n[trace:Exception:private] => Array\r\n(\r\n[0] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Database.php\r\n[line] => 215\r\n[function] => executeQuery\r\n[class] => Elgg\\Database\r\n[type] => ->\r\n[args] => Array\r\n(\r\n[0] => INSERT INTO entity_relationships\r\n(guid_one, relationship, guid_two, time_created)\r\nVALUES (52, 'active_plugin', 1, 1433706691)\r\n[1] => Resource id #73\r\n)\r\n\r\n)\r\n\r\n[1] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Database/RelationshipsTable.php\r\n[line] => 115\r\n[function] => insertData\r\n[class] => Elgg\\Database\r\n[type] => ->\r\n[args] => Array\r\n(\r\n[0] => INSERT INTO entity_relationships\r\n(guid_one, relationship, guid_two, time_created)\r\nVALUES (52, 'active_plugin', 1, 1433706691)\r\n)\r\n\r\n)\r\n\r\n[2] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/lib/relationships.php\r\n[line] => 74\r\n[function] => add\r\n[class] => Elgg\\Database\\RelationshipsTable\r\n[type] => ->\r\n[args] => Array\r\n(\r\n[0] => 52\r\n[1] => active_plugin\r\n[2] => 1\r\n)\r\n\r\n)\r\n\r\n[3] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/ElggPlugin.php\r\n[line] => 972\r\n[function] => add_entity_relationship\r\n[args] => Array\r\n(\r\n[0] => 52\r\n[1] => active_plugin\r\n[2] => 1\r\n)\r\n\r\n)\r\n\r\n[4] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/ElggPlugin.php\r\n[line] => 654\r\n[function] => setStatus\r\n[class] => ElggPlugin\r\n[type] => ->\r\n[args] => Array\r\n(\r\n[0] => 1\r\n[1] =>\r\n)\r\n\r\n)\r\n\r\n[5] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/actions/admin/plugins/activate.php\r\n[line] => 29\r\n[function] => activate\r\n[class] => ElggPlugin\r\n[type] => ->\r\n[args] => Array\r\n(\r\n)\r\n\r\n)\r\n\r\n[6] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/ActionsService.php\r\n[line] => 88\r\n[args] => Array\r\n(\r\n[0] => /var/www/html/dev.ureka.1.11.2/actions/admin/plugins/activate.php\r\n)\r\n\r\n[function] => include\r\n)\r\n\r\n[7] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/ActionsService.php\r\n[line] => 70\r\n[function] => includeFile\r\n[class] => Elgg\\ActionsService\r\n[type] => ::\r\n[args] => Array\r\n(\r\n[0] => /var/www/html/dev.ureka.1.11.2/actions/admin/plugins/activate.php\r\n)\r\n\r\n)\r\n\r\n[8] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/lib/actions.php\r\n[line] => 20\r\n[function] => execute\r\n[class] => Elgg\\ActionsService\r\n[type] => ->\r\n[args] => Array\r\n(\r\n[0] => admin/plugins/activate\r\n)\r\n\r\n)\r\n\r\n[9] => Array\r\n(\r\n[function] => _elgg_action_handler\r\n[args] => Array\r\n(\r\n[0] => Array\r\n(\r\n[0] => admin\r\n[1] => plugins\r\n[2] => activate\r\n)\r\n\r\n[1] => action\r\n)\r\n\r\n)\r\n\r\n[10] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/engine/classes/Elgg/Router.php\r\n[line] => 80\r\n[function] => call_user_func\r\n[args] => Array\r\n(\r\n[0] => _elgg_action_handler\r\n[1] => Array\r\n(\r\n[0] => admin\r\n[1] => plugins\r\n[2] => activate\r\n)\r\n\r\n[2] => action\r\n)\r\n\r\n)\r\n\r\n[11] => Array\r\n(\r\n[file] => /var/www/html/dev.ureka.1.11.2/index.php\r\n[line] => 60\r\n[function] => route\r\n[class] => Elgg\\Router\r\n[type] => ->\r\n[args] => Array\r\n(\r\n[0] => Elgg\\Http\\Request Object\r\n(\r\n[attributes] => Symfony\\Component\\HttpFoundation\\ParameterBag Object\r\n(\r\n[parameters:protected] => Array\r\n(\r\n)\r\n\r\n)\r\n\r\n[request] => Symfony\\Component\\HttpFoundation\\ParameterBag Object\r\n(\r\n[parameters:protected] => Array\r\n(\r\n)\r\n\r\n)\r\n\r\n[query] => Symfony\\Component\\HttpFoundation\\ParameterBag Object\r\n(\r\n[parameters:protected] => Array\r\n(\r\n[__elgg_uri] => /action/admin/plugins/activate\r\n[plugin_guids] => Array\r\n(\r\n[0] => 52\r\n)\r\n\r\n[__elgg_ts] => 1433706683\r\n[__elgg_token] => AoE57oh1uy626-8rvRg5_A\r\n)\r\n\r\n)\r\n\r\n[server] => Symfony\\Component\\HttpFoundation\\ServerBag Object\r\n(\r\n[parameters:protected] => Array\r\n(\r\n[USER] => nginx\r\n[HOME] => /var/lib/nginx\r\n[FCGI_ROLE] => RESPONDER\r\n[SCRIPT_FILENAME] => /var/www/html/dev.ureka.1.11.2/index.php\r\n[QUERY_STRING] => __elgg_uri=/action/admin/plugins/activate&plugin_guids%5B0%5D=52&__elgg_ts=1433706683&__elgg_token=AoE57oh1uy626-8rvRg5_A\r\n[REQUEST_METHOD] => GET\r\n[CONTENT_TYPE] =>\r\n[CONTENT_LENGTH] =>\r\n[SCRIPT_NAME] => /index.php\r\n[REQUEST_URI] => /action/admin/plugins/activate?plugin_guids%5B0%5D=52&__elgg_ts=1433706683&__elgg_token=AoE57oh1uy626-8rvRg5_A\r\n[DOCUMENT_URI] => /index.php\r\n[DOCUMENT_ROOT] => /var/www/html/dev.ureka.1.11.2\r\n[SERVER_PROTOCOL] => HTTP/1.1\r\n[GATEWAY_INTERFACE] => CGI/1.1\r\n[SERVER_SOFTWARE] => nginx/1.9.1\r\n[REMOTE_ADDR] => 127.0.0.1\r\n[REMOTE_PORT] => 45675\r\n[SERVER_ADDR] => 127.0.0.1\r\n[SERVER_PORT] => 80\r\n[SERVER_NAME] => dev.new.ureka.org\r\n[REDIRECT_STATUS] => 200\r\n[HTTP_HOST] => dev.new.ureka.org\r\n[HTTP_USER_AGENT] => Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0\r\n[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n[HTTP_ACCEPT_LANGUAGE] => en-GB,en;q=0.5\r\n[HTTP_ACCEPT_ENCODING] => gzip, deflate\r\n[HTTP_REFERER] => http://dev.new.ureka.org/admin/plugins\r\n[HTTP_COOKIE] => Elgg_install=jeb2iifklljdqttnrhm990smm3; Elgg=gb8ikaemoqap01nconfhjjeqd6; _pk_id.1.5a03=216c0111b630adba.1433698796.2.1433706686.1433706667.; _pk_ses.1.5a03=*\r\n[HTTP_CONNECTION] => keep-alive\r\n[PHP_SELF] => /index.php\r\n[REQUEST_TIME_FLOAT] => 1433706690.1296\r\n[REQUEST_TIME] => 1433706690\r\n)\r\n\r\n)\r\n\r\n[files] => Symfony\\Component\\HttpFoundation\\FileBag Object\r\n(\r\n[parameters:protected] => Array\r\n(\r\n)\r\n\r\n)\r\n\r\n[cookies] => Symfony\\Component\\HttpFoundation\\ParameterBag Object\r\n(\r\n[parameters:protected] => Array\r\n(\r\n[Elgg_install] => jeb2iifklljdqttnrhm990smm3\r\n[Elgg] => gb8ikaemoqap01nconfhjjeqd6\r\n[_pk_id_1_5a03] => 216c0111b630adba.1433698796.2.1433706686.1433706667.\r\n[_pk_ses_1_5a03] => *\r\n)\r\n\r\n)\r\n\r\n[headers] => Symfony\\Component\\HttpFoundation\\HeaderBag Object\r\n(\r\n[headers:protected] => Array\r\n(\r\n[content-type] => Array\r\n(\r\n[0] =>\r\n)\r\n\r\n[content-length] => Array\r\n(\r\n[0] =>\r\n)\r\n\r\n[host] => Array\r\n(\r\n[0] => dev.new.ureka.org\r\n)\r\n\r\n[user-agent] => Array\r\n(\r\n[0] => Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0\r\n)\r\n\r\n[accept] => Array\r\n(\r\n[0] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n)\r\n\r\n[accept-language] => Array\r\n(\r\n[0] => en-GB,en;q=0.5\r\n)\r\n\r\n[accept-encoding] => Array\r\n(\r\n[0] => gzip, deflate\r\n)\r\n\r\n[referer] => Array\r\n(\r\n[0] => http://dev.new.ureka.org/admin/plugins\r\n)\r\n\r\n[cookie] => Array\r\n(\r\n[0] => Elgg_install=jeb2iifklljdqttnrhm990smm3; Elgg=gb8ikaemoqap01nconfhjjeqd6; _pk_id.1.5a03=216c0111b630adba.1433698796.2.1433706686.1433706667.; _pk_ses.1.5a03=*\r\n)\r\n\r\n[connection] => Array\r\n(\r\n[0] => keep-alive\r\n)\r\n\r\n)\r\n\r\n[cacheControl:protected] => Array\r\n(\r\n)\r\n\r\n)\r\n\r\n[content:protected] =>\r\n[languages:protected] =>\r\n[charsets:protected] =>\r\n[encodings:protected] =>\r\n[acceptableContentTypes:protected] =>\r\n[pathInfo:protected] =>\r\n[requestUri:protected] => /action/admin/plugins/activate?plugin_guids%5B0%5D=52&__elgg_ts=1433706683&__elgg_token=AoE57oh1uy626-8rvRg5_A\r\n[baseUrl:protected] =>\r\n[basePath:protected] =>\r\n[method:protected] =>\r\n[format:protected] =>\r\n[session:protected] =>\r\n[locale:protected] =>\r\n[defaultLocale:protected] => en\r\n)\r\n\r\n)\r\n\r\n)\r\n\r\n)\r\n\r\n[previous:Exception:private] =>\r\n)\r\n```"}}