{"action":"created","issue":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/1084","repository_url":"https://api.github.com/repos/bcosca/fatfree","labels_url":"https://api.github.com/repos/bcosca/fatfree/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/bcosca/fatfree/issues/1084/comments","events_url":"https://api.github.com/repos/bcosca/fatfree/issues/1084/events","html_url":"https://github.com/bcosca/fatfree/issues/1084","id":285882798,"number":1084,"title":"404 after framework upgrade","user":{"login":"v2k","id":608250,"avatar_url":"https://avatars3.githubusercontent.com/u/608250?v=4","gravatar_id":"","url":"https://api.github.com/users/v2k","html_url":"https://github.com/v2k","followers_url":"https://api.github.com/users/v2k/followers","following_url":"https://api.github.com/users/v2k/following{/other_user}","gists_url":"https://api.github.com/users/v2k/gists{/gist_id}","starred_url":"https://api.github.com/users/v2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v2k/subscriptions","organizations_url":"https://api.github.com/users/v2k/orgs","repos_url":"https://api.github.com/users/v2k/repos","events_url":"https://api.github.com/users/v2k/events{/privacy}","received_events_url":"https://api.github.com/users/v2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-01-04T05:05:45Z","updated_at":"2018-03-13T10:19:28Z","closed_at":null,"author_association":"NONE","body":"Upgraded framework and can't seem to get by this 404; not sure where the extra \"/\" is coming from.  Rolling back the upgrade works fine.\r\n\r\n```\r\nNot Found\r\nHTTP 404 (GET //mydomain.com/)\r\n\r\n[/var/www/mydomain.com/vendor/bcosca/fatfree/lib/base.php:1660] Base->error()\r\n[index.php:21] Base->run()\r\n```\r\n\r\nTried this in index.php:\r\n\r\n```\r\nrequire '../vendor/autoload.php';\r\n$f3 = \\Base::instance();\r\n$f3->route('GET /',\r\n    function() {\r\n        echo 'Hello, world!';\r\n    }\r\n);\r\n$f3->run();\r\n```\r\n\r\nAlso tried adding a `$f3->clear('CACHE');`\r\n"},"comment":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/comments/372615856","html_url":"https://github.com/bcosca/fatfree/issues/1084#issuecomment-372615856","issue_url":"https://api.github.com/repos/bcosca/fatfree/issues/1084","id":372615856,"user":{"login":"xfra35","id":1838531,"avatar_url":"https://avatars2.githubusercontent.com/u/1838531?v=4","gravatar_id":"","url":"https://api.github.com/users/xfra35","html_url":"https://github.com/xfra35","followers_url":"https://api.github.com/users/xfra35/followers","following_url":"https://api.github.com/users/xfra35/following{/other_user}","gists_url":"https://api.github.com/users/xfra35/gists{/gist_id}","starred_url":"https://api.github.com/users/xfra35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfra35/subscriptions","organizations_url":"https://api.github.com/users/xfra35/orgs","repos_url":"https://api.github.com/users/xfra35/repos","events_url":"https://api.github.com/users/xfra35/events{/privacy}","received_events_url":"https://api.github.com/users/xfra35/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T10:19:28Z","updated_at":"2018-03-13T10:19:28Z","author_association":"COLLABORATOR","body":"The framework expects `SERVER_NAME` to be properly set on several places, not only on this line.\r\n\r\nIf this variable is not set, the framework falls back to the host name (`gethostname()`).\r\n\r\nIn your case, the variable is set to an empty string, in which case the fallback doesn't apply.\r\n\r\nTell me if https://github.com/bcosca/fatfree-core/commit/8bf3b4c580a4cf24307b095fb8515fc22ba40c56 fixes the issue."}}
{"actor":{"display_login":"xfra35"}}