{"action":"created","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2195","repository_url":"https://api.github.com/repos/pi-hole/pi-hole","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2195/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2195/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2195/events","html_url":"https://github.com/pi-hole/pi-hole/issues/2195","id":327076794,"node_id":"MDU6SXNzdWUzMjcwNzY3OTQ=","number":2195,"title":"[ERROR]: Unable to parse results from queryads.php: Unhandled error message ()","user":{"login":"silv3rr","id":20193226,"node_id":"MDQ6VXNlcjIwMTkzMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/20193226?v=4","gravatar_id":"","url":"https://api.github.com/users/silv3rr","html_url":"https://github.com/silv3rr","followers_url":"https://api.github.com/users/silv3rr/followers","following_url":"https://api.github.com/users/silv3rr/following{/other_user}","gists_url":"https://api.github.com/users/silv3rr/gists{/gist_id}","starred_url":"https://api.github.com/users/silv3rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silv3rr/subscriptions","organizations_url":"https://api.github.com/users/silv3rr/orgs","repos_url":"https://api.github.com/users/silv3rr/repos","events_url":"https://api.github.com/users/silv3rr/events{/privacy}","received_events_url":"https://api.github.com/users/silv3rr/received_events","type":"User","site_admin":false},"labels":[{"id":846644355,"node_id":"MDU6TGFiZWw4NDY2NDQzNTU=","url":"https://api.github.com/repos/pi-hole/pi-hole/labels/triage:%20Issue","name":"triage: Issue","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-05-28T16:41:00Z","updated_at":"2018-08-21T05:53:16Z","closed_at":null,"author_association":"NONE","body":"**In raising this issue, I confirm the following:** `{please fill the checkboxes, e.g: [X]}`\r\n\r\n- [x] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).\r\n- [x] The issue I am reporting can be *replicated*.\r\n- [x] The issue I am reporting isn't a duplicate (see [FAQs](https://github.com/pi-hole/pi-hole/wiki/FAQs), [closed issues](https://github.com/pi-hole/pi-hole/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), and [open issues](https://github.com/pi-hole/pi-hole/issues)).\r\n\r\n**How familiar are you with the the source code relevant to this issue?:**\r\n\r\n`7`\r\n\r\n---\r\n**Expected behaviour:**\r\n\r\n`\"Website blocked\" page`\r\n\r\n**Actual behaviour:**\r\n\r\n`[ERROR]: Unable to parse results from queryads.php: Unhandled error message ()`\r\n\r\n**Steps to reproduce:**\r\n\r\n`Goto blocked/blacklisted domain.\r\nFor me the error is caused by having lighttpd listening (`server.bind`) on a specific network interface alias, not localhost.`\r\n\r\n**Debug token provided by [uploading `pihole -d` log](https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738#debug):**\r\n\r\n`N/A`\r\n\r\n**Troubleshooting undertaken, and/or other relevant information:**\r\n\r\nSaw this already mentioned by @Amunak in issue #2172. Actually diff problem than @KnightTim, so created new issue:\r\n\r\nhttps://github.com/pi-hole/pi-hole/blob/fbee18e24d56b418e3329a56ae4156dbe8fe5e1f/advanced/index.php#L133\r\n\r\nIt's fixed by replacing 127.0.0.1 with the IP of that interfaces or using `$_SERVER['SERVER_ADDR']` var like @Amunak said:\r\n   `$serverAddr = htmlspecialchars($_SERVER['SERVER_ADDR']);`\r\n   `$queryAds = file(\"http://$serverAddr/admin/scripts/pi-hole/php/queryads.php?domain=$serverName&bp\", FILE_IGNORE_NEW_LINES);`\r\n\r\nTo be 100% safe perhaps add a check if that var doesn't exist to use http://**pi.hole**/admin/scripts/pi-hole/php/queryads.php instead"},"comment":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/comments/414557953","html_url":"https://github.com/pi-hole/pi-hole/issues/2195#issuecomment-414557953","issue_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2195","id":414557953,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDU1Nzk1Mw==","user":{"login":"Sh4d1","id":990310,"node_id":"MDQ6VXNlcjk5MDMxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/990310?v=4","gravatar_id":"","url":"https://api.github.com/users/Sh4d1","html_url":"https://github.com/Sh4d1","followers_url":"https://api.github.com/users/Sh4d1/followers","following_url":"https://api.github.com/users/Sh4d1/following{/other_user}","gists_url":"https://api.github.com/users/Sh4d1/gists{/gist_id}","starred_url":"https://api.github.com/users/Sh4d1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sh4d1/subscriptions","organizations_url":"https://api.github.com/users/Sh4d1/orgs","repos_url":"https://api.github.com/users/Sh4d1/repos","events_url":"https://api.github.com/users/Sh4d1/events{/privacy}","received_events_url":"https://api.github.com/users/Sh4d1/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T05:53:16Z","updated_at":"2018-08-21T05:53:16Z","author_association":"NONE","body":"Any updates here ? Having the same issue as @bolausson : \r\n```\r\n$ curl -g -6 \"[pi hole ipv6 address]\"\r\n[ERROR]: Unable to parse results from <i>queryads.php</\r\ni>: <code>Unhandled error message (<code>Invalid domain\r\n!</code>)</code>%\r\n```"}}
{"actor":{"display_login":"Sh4d1"}}