{"action":"created","issue":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/900","repository_url":"https://api.github.com/repos/RESTful-Drupal/restful","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/900/comments","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/900/events","html_url":"https://github.com/RESTful-Drupal/restful/issues/900","id":150239223,"number":900,"title":"Null derivatives results in invalid foreach()","user":{"login":"krisgraham","id":1225424,"avatar_url":"https://avatars.githubusercontent.com/u/1225424?v=3","gravatar_id":"","url":"https://api.github.com/users/krisgraham","html_url":"https://github.com/krisgraham","followers_url":"https://api.github.com/users/krisgraham/followers","following_url":"https://api.github.com/users/krisgraham/following{/other_user}","gists_url":"https://api.github.com/users/krisgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/krisgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisgraham/subscriptions","organizations_url":"https://api.github.com/users/krisgraham/orgs","repos_url":"https://api.github.com/users/krisgraham/repos","events_url":"https://api.github.com/users/krisgraham/events{/privacy}","received_events_url":"https://api.github.com/users/krisgraham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T01:34:53Z","updated_at":"2016-04-26T05:02:10Z","closed_at":"2016-04-26T05:02:10Z","body":"Using 8.x-3.x\r\n\r\nGetting this warning:\r\n`Invalid argument supplied for foreach() in                                                                            [warning]\r\nDrupal\\Component\\Plugin\\Discovery\\DerivativeDiscoveryDecorator-&gt;getDerivatives() (line 101 of\r\ncore/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php).`\r\n\r\nIt looks like getDerivativeDefinitions() is returning null when RESTful is first enabled, and getDerivatives() expects something if a deriver is returned from getDeriver for the plugin (restful_entity). Any advice on the best way to fix this? Maybe don't return a $deriver if there are no definitions for the plugin in RESTful or add better handling of this in core?"},"comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments/214617056","html_url":"https://github.com/RESTful-Drupal/restful/issues/900#issuecomment-214617056","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/900","id":214617056,"user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T05:02:10Z","updated_at":"2016-04-26T05:02:10Z","body":"Hello @krisgraham.\r\n\r\nAt the moment the 8.x-3.x branch is not very useful, since I'm finding the time to work on it. I'll rename the branch so this confusion doesn't keep happening.\r\n\r\nSorry for the inconveniences."}}