{"action":"closed","issue":{"url":"https://api.github.com/repos/directus/directus/issues/2235","repository_url":"https://api.github.com/repos/directus/directus","labels_url":"https://api.github.com/repos/directus/directus/issues/2235/labels{/name}","comments_url":"https://api.github.com/repos/directus/directus/issues/2235/comments","events_url":"https://api.github.com/repos/directus/directus/issues/2235/events","html_url":"https://github.com/directus/directus/issues/2235","id":377612075,"node_id":"MDU6SXNzdWUzNzc2MTIwNzU=","number":2235,"title":"Setting up translation interface","user":{"login":"olinescu","id":44788834,"node_id":"MDQ6VXNlcjQ0Nzg4ODM0","avatar_url":"https://avatars0.githubusercontent.com/u/44788834?v=4","gravatar_id":"","url":"https://api.github.com/users/olinescu","html_url":"https://github.com/olinescu","followers_url":"https://api.github.com/users/olinescu/followers","following_url":"https://api.github.com/users/olinescu/following{/other_user}","gists_url":"https://api.github.com/users/olinescu/gists{/gist_id}","starred_url":"https://api.github.com/users/olinescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olinescu/subscriptions","organizations_url":"https://api.github.com/users/olinescu/orgs","repos_url":"https://api.github.com/users/olinescu/repos","events_url":"https://api.github.com/users/olinescu/events{/privacy}","received_events_url":"https://api.github.com/users/olinescu/received_events","type":"User","site_admin":false},"labels":[{"id":1104799006,"node_id":"MDU6TGFiZWwxMTA0Nzk5MDA2","url":"https://api.github.com/repos/directus/directus/labels/build","name":"build","color":"c62828","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-05T22:34:09Z","updated_at":"2018-11-17T03:43:47Z","closed_at":"2018-11-17T03:43:47Z","author_association":"NONE","body":"# Version Info\r\nDirectus version: master branch (7.0.5)\r\nPHP version: PHP 7.2.10-0ubuntu0.18.04.1\r\nMySQL version: 5.7.23-0ubuntu0.18.04.1\r\nWeb server: Apache/2.4.29 (Ubuntu)\r\nOS name and version: Ubuntu 18.04.1 LTS\r\n\r\n# Behavior\r\nI tried to set up a collection (\"tokens\") using a related translation collection (\"tokens_translations\"). \r\n- In the \"Editing Item\" view the dropdown of \"translations\" lists the language.name elements. Selecting however switches to the language.code elements\r\n- When I try to save I get a \"Call to a member function getType() on null\" error\r\n\r\n# Schema Dump, Logs, or Screenshots\r\nTable directus_relations:\r\n\r\n![directus_relations](https://user-images.githubusercontent.com/44788834/48031058-46bb1100-e153-11e8-8c3f-22c28895ec5c.png)\r\n\r\nTable directus_fields (custom rows):\r\n\r\n![directus_fields](https://user-images.githubusercontent.com/44788834/48031060-46bb1100-e153-11e8-9fbb-92e4536850fa.png)\r\n\r\nDirectus Log on this:\r\n`api[_].ERROR: Error: Call to a member function getType() on null in /var/www/api/src/core/Directus/Application/CoreServicesProvider.php:564\r\nStack trace:\r\n#0 [internal function]: Directus\\Application\\CoreServicesProvider->Directus\\Application\\{closure}(Object(Directus\\Hook\\Payload))\r\n#1 /var/www/api/src/core/Directus/Hook/Emitter.php(291): call_user_func_array(Object(Closure), Array)\r\n#2 /var/www/api/src/core/Directus/Hook/Emitter.php(151): Directus\\Hook\\Emitter->executeListeners(Array, Array, 1)\r\n#3 /var/www/api/src/core/Directus/Database/TableGateway/BaseTableGateway.php(1524): Directus\\Hook\\Emitter->apply('item.create:bef...', Array, Array)\r\n#4 /var/www/api/src/core/Directus/Database/TableGateway/BaseTableGateway.php(774): Directus\\Database\\TableGateway\\BaseTableGateway->applyHook('item.create:bef...', Array, Array)\r\n#5 /var/www/api/vendor/zendframework/zend-db/src/TableGateway/AbstractTableGateway.php(264): Directus\\Database\\TableGateway\\BaseTableGateway->executeInsert(Object(Zend\\Db\\Sql\\Insert))\r\n#6 /var/www/api/src/core/Directus/Database/TableGateway/BaseTableGateway.php(385): Zend\\Db\\TableGateway\\AbstractTableGateway->insert(Array)\r\n#7 /var/www/api/src/core/Directus/Database/TableGateway/BaseTableGateway.php(359): Directus\\Database\\TableGateway\\BaseTableGateway->addRecordByArray(Array)\r\n#8 /var/www/api/src/core/Directus/Database/TableGateway/RelationalTableGateway.php(189): Directus\\Database\\TableGateway\\BaseTableGateway->addOrUpdateRecordByArray(Array)\r\n#9 /var/www/api/src/core/Directus/Database/TableGateway/RelationalTableGateway.php(676): Directus\\Database\\TableGateway\\RelationalTableGateway->manageRecordUpdate('tokens_translat...', Array, Array, Array, false, Array)\r\n#10 /var/www/api/src/core/Directus/Database/TableGateway/RelationalTableGateway.php(511): Directus\\Database\\TableGateway\\RelationalTableGateway->addOrUpdateToManyRelationships(Object(Directus\\Database\\Schema\\Object\\Collection), Array, Array, false, Array)\r\n#11 /var/www/api/src/core/Directus/Services/ItemsService.php(154): Directus\\Database\\TableGateway\\RelationalTableGateway->updateRecord('1', Array, Array)\r\n#12 /var/www/api/src/endpoints/Items.php(126): Directus\\Services\\ItemsService->update('tokens', '1', Array, Array)\r\n#13 [internal function]: Directus\\Api\\Routes\\Items->update(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Array)\r\n#14 /var/www/api/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Array)\r\n#15 /var/www/api/vendor/slim/slim/Slim/Route.php(356): Slim\\Handlers\\Strategies\\RequestResponse->__invoke(Array, Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Array)\r\n#16 /var/www/api/src/core/Directus/Application/Http/Middleware/AbstractRateLimitMiddleware.php(34): Slim\\Route->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))\r\n#17 [internal function]: Directus\\Application\\Http\\Middleware\\AbstractRateLimitMiddleware->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Slim\\Route))\r\n#18 /var/www/api/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Directus\\Application\\Http\\Middleware\\UserRateLimitMiddleware), Array)\r\n#19 [internal function]: Slim\\DeferredCallable->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Slim\\Route))\r\n#20 /var/www/api/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Slim\\Route))\r\n#21 /var/www/api/src/core/Directus/Application/Http/Middleware/AuthenticationMiddleware.php(80): Slim\\Route->Slim\\{closure}(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))\r\n#22 [internal function]: Directus\\Application\\Http\\Middleware\\AuthenticationMiddleware->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Closure))\r\n#23 /var/www/api/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Directus\\Application\\Http\\Middleware\\AuthenticationMiddleware), Array)\r\n#24 [internal function]: Slim\\DeferredCallable->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Closure))\r\n#25 /var/www/api/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Closure))\r\n#26 /var/www/api/src/core/Directus/Application/Http/Middleware/TableGatewayMiddleware.php(25): Slim\\Route->Slim\\{closure}(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))\r\n#27 [internal function]: Directus\\Application\\Http\\Middleware\\TableGatewayMiddleware->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Closure))\r\n#28 /var/www/api/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Directus\\Application\\Http\\Middleware\\TableGatewayMiddleware), Array)\r\n#29 [internal function]: Slim\\DeferredCallable->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Closure))\r\n#30 /var/www/api/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response), Object(Closure))\r\n#31 /var/www/api/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\\Route->Slim\\{closure}(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))\r\n#32 /var/www/api/vendor/slim/slim/Slim/Route.php(334): Slim\\Route->callMiddlewareStack(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))\r\n#33 /var/www/api/vendor/slim/slim/Slim/App.php(515): Slim\\Route->run(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))\r\n#34 /var/www/api/src/core/Directus/Application/Http/Middleware/AbstractRateLimitMiddleware.php(34): Slim\\App->__invoke(Object(Directus\\Application\\Http\\Request), Object(Directus\\Application\\Http\\Response))`"}}
{"actor":{"display_login":"rijkvanzanten"}}