{"action":"created","issue":{"url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap/issues/22","repository_url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap","labels_url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap/issues/22/comments","events_url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap/issues/22/events","html_url":"https://github.com/getgrav/grav-plugin-sitemap/issues/22","id":165810545,"number":22,"title":"Possible conflict with a particular config on Related Pages plugin","user":{"login":"nepomuk13","id":12809352,"avatar_url":"https://avatars.githubusercontent.com/u/12809352?v=3","gravatar_id":"","url":"https://api.github.com/users/nepomuk13","html_url":"https://github.com/nepomuk13","followers_url":"https://api.github.com/users/nepomuk13/followers","following_url":"https://api.github.com/users/nepomuk13/following{/other_user}","gists_url":"https://api.github.com/users/nepomuk13/gists{/gist_id}","starred_url":"https://api.github.com/users/nepomuk13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nepomuk13/subscriptions","organizations_url":"https://api.github.com/users/nepomuk13/orgs","repos_url":"https://api.github.com/users/nepomuk13/repos","events_url":"https://api.github.com/users/nepomuk13/events{/privacy}","received_events_url":"https://api.github.com/users/nepomuk13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T15:13:42Z","updated_at":"2016-07-22T14:55:47Z","closed_at":null,"body":"Hi, \r\nIt seems like sitemap can not be generated when related pages plugin is set with @self.siblings whereas it works with @self or @taxonomy.\r\nI got the message `Call to a member function children() on null`.\r\n\r\n\r\nHere is my config:\r\nRelated pages v1.1.3\r\nSitemap v1.6.2\r\nGrav v1.1.0 - Admin v1.1.1 \r\n(Had the same problem with Grav v1.0.10)\r\n\r\n**Page.php**\r\n```\r\n                            break;\r\n                        case 'all':\r\n                            $results = $this->children();\r\n                            break;\r\n                        case 'parent':\r\n                            $collection = new Collection();\r\n                            $results = $collection->addPage($this->parent());\r\n                            break;\r\n                        case 'siblings':\r\n                            $results = $this->parent()->children()->remove($this->path());\r\n                            break;\r\n                        case 'descendants':\r\n                            $results = $pages->all($this)->remove($this->path())->nonModular();\r\n                            break;\r\n                    }\r\n                }\r\n \r\n                $results = $results->published();\r\n                break;\r\n \r\n```\r\nHere is the yaml just in case:\r\n```\r\nenabled: true\r\nlimit: 3\r\nshow_score: false\r\nscore_threshold: 20\r\nfilter:\r\n  items: '@self.siblings'\r\n  order:\r\n    by: date\r\n    dir: desc\r\npage_in_filter: false\r\nexplicit_pages:\r\n  process: true\r\n  score: 100\r\ntaxonomy_match:\r\n  taxonomy: tag\r\n  taxonomy_taxonomy:\r\n    process: true\r\n    score_scale:\r\n      1: '50'\r\n      2: '75'\r\n      3: '100'\r\n  taxonomy_content:\r\n    process: true\r\n    score_scale:\r\n      1: '20'\r\n      2: '30'\r\n      3: '45'\r\n      4: '60'\r\n      5: '70'\r\n      6: '80'\r\n      7: '90'\r\n      8: '100'\r\ncontent_match:\r\n  process: true\r\n\r\n```\r\n\r\nAnd obviously the yaml for sitemap:\r\n```\r\nenabled: true\r\nroute: '/sitemap'\r\nignores:\r\n  - /blog/blog-post-to-ignore\r\n  - /ignore-this-route\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap/issues/comments/234566375","html_url":"https://github.com/getgrav/grav-plugin-sitemap/issues/22#issuecomment-234566375","issue_url":"https://api.github.com/repos/getgrav/grav-plugin-sitemap/issues/22","id":234566375,"user":{"login":"flaviocopes","id":11783388,"avatar_url":"https://avatars.githubusercontent.com/u/11783388?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviocopes","html_url":"https://github.com/flaviocopes","followers_url":"https://api.github.com/users/flaviocopes/followers","following_url":"https://api.github.com/users/flaviocopes/following{/other_user}","gists_url":"https://api.github.com/users/flaviocopes/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviocopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviocopes/subscriptions","organizations_url":"https://api.github.com/users/flaviocopes/orgs","repos_url":"https://api.github.com/users/flaviocopes/repos","events_url":"https://api.github.com/users/flaviocopes/events{/privacy}","received_events_url":"https://api.github.com/users/flaviocopes/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T14:55:47Z","updated_at":"2016-07-22T14:55:47Z","body":"Replicated the issue. \r\n\r\nThe Related Pages plugin should really have a configuration option to be enabled only on some routes (e.g. on `/blog` and children) and not simply run on every page."}}
{"actor":{"display_login":"flaviocopes"}}