{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/12482","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12482/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12482/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12482/events","html_url":"https://github.com/WordPress/gutenberg/issues/12482","id":386337887,"node_id":"MDU6SXNzdWUzODYzMzc4ODc=","number":12482,"title":"TypeError: Cannot read property 'prefix' of null","user":{"login":"petenelson","id":1757075,"node_id":"MDQ6VXNlcjE3NTcwNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1757075?v=4","gravatar_id":"","url":"https://api.github.com/users/petenelson","html_url":"https://github.com/petenelson","followers_url":"https://api.github.com/users/petenelson/followers","following_url":"https://api.github.com/users/petenelson/following{/other_user}","gists_url":"https://api.github.com/users/petenelson/gists{/gist_id}","starred_url":"https://api.github.com/users/petenelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petenelson/subscriptions","organizations_url":"https://api.github.com/users/petenelson/orgs","repos_url":"https://api.github.com/users/petenelson/repos","events_url":"https://api.github.com/users/petenelson/events{/privacy}","received_events_url":"https://api.github.com/users/petenelson/received_events","type":"User","site_admin":false},"labels":[{"id":630674253,"node_id":"MDU6TGFiZWw2MzA2NzQyNTM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Status]%20Needs%20More%20Info","name":"[Status] Needs More Info","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-30T20:26:05Z","updated_at":"2018-12-03T16:50:22Z","closed_at":null,"author_association":"NONE","body":"When adding a new custom post type, upon hitting \"Save Draft\", the \"The editor has encountered an unexpected error.\" message appears, and this is the error message. This had been working in 4.5\r\n\r\nEditing an existing custom post type shows the error immediately.\r\n\r\n```\r\nTypeError: Cannot read property 'prefix' of null\r\n    at http://devsite.local/wp-content/plugins/gutenberg/build/edit-post/index.js?ver=1543608571:12:54832\r\n    at mountIndeterminateComponent (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:14687:13)\r\n    at beginWork (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:15187:16)\r\n    at performUnitOfWork (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:17944:12)\r\n    at workLoop (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:17984:24)\r\n    at renderRoot (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:18070:7)\r\n    at performWorkOnRoot (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:18961:7)\r\n    at performWork (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:18873:7)\r\n    at performSyncWork (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:18847:3)\r\n    at requestWork (http://devsite.local/wp-content/plugins/gutenberg/vendor/react-dom.60482cc7.js:18716:5)\r\n```\r\n\r\n**Additional context**\r\n- Gutenberg 4.6.0"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/443781306","html_url":"https://github.com/WordPress/gutenberg/issues/12482#issuecomment-443781306","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12482","id":443781306,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzc4MTMwNg==","user":{"login":"petenelson","id":1757075,"node_id":"MDQ6VXNlcjE3NTcwNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1757075?v=4","gravatar_id":"","url":"https://api.github.com/users/petenelson","html_url":"https://github.com/petenelson","followers_url":"https://api.github.com/users/petenelson/followers","following_url":"https://api.github.com/users/petenelson/following{/other_user}","gists_url":"https://api.github.com/users/petenelson/gists{/gist_id}","starred_url":"https://api.github.com/users/petenelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petenelson/subscriptions","organizations_url":"https://api.github.com/users/petenelson/orgs","repos_url":"https://api.github.com/users/petenelson/repos","events_url":"https://api.github.com/users/petenelson/events{/privacy}","received_events_url":"https://api.github.com/users/petenelson/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T16:50:22Z","updated_at":"2018-12-03T16:50:22Z","author_association":"NONE","body":"Here's the args for the post type.\r\n\r\n```\r\n$args = [\r\n\t'labels'              => $labels,\r\n\t'exclude_from_search' => true,\r\n\t'publicly_queryable'  => true,\r\n\t'show_in_nav_menus'   => false,\r\n\t'show_ui'             => true,\r\n\t'show_in_menu'        => true,\r\n\t'menu_position'       => 2,\r\n\t'menu_icon'           => 'dashicons-admin-home',\r\n\t'has_archive'         => false,\r\n\t'supports'            => [\r\n\t\t'title',\r\n\t\t'editor',\r\n\t\t'revisions',\r\n\t],\r\n\t'rewrite'             => false,\r\n\t'capability_type'     => get_post_type_name(),\r\n\t'map_meta_cap'        => true,\r\n\r\n\t// Needs to be true for Gutenberg.\r\n\t'show_in_rest'        => true,\r\n];\r\n\r\n$args = apply_filters( get_post_type_name() . '_args', $args );\r\n\r\n\\register_post_type( get_post_type_name(), $args );\r\n```"}}
{"actor":{"display_login":"petenelson"}}