{"action":"created","issue":{"url":"https://api.github.com/repos/tuupola/slim-basic-auth/issues/61","repository_url":"https://api.github.com/repos/tuupola/slim-basic-auth","labels_url":"https://api.github.com/repos/tuupola/slim-basic-auth/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/tuupola/slim-basic-auth/issues/61/comments","events_url":"https://api.github.com/repos/tuupola/slim-basic-auth/issues/61/events","html_url":"https://github.com/tuupola/slim-basic-auth/issues/61","id":315493672,"number":61,"title":" PHP Fatal error:  Uncaught Error: Class 'Slim\\\\Middleware\\\\HttpBasicAuthentication' not found ","user":{"login":"fernandocassola","id":4292409,"avatar_url":"https://avatars0.githubusercontent.com/u/4292409?v=4","gravatar_id":"","url":"https://api.github.com/users/fernandocassola","html_url":"https://github.com/fernandocassola","followers_url":"https://api.github.com/users/fernandocassola/followers","following_url":"https://api.github.com/users/fernandocassola/following{/other_user}","gists_url":"https://api.github.com/users/fernandocassola/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandocassola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandocassola/subscriptions","organizations_url":"https://api.github.com/users/fernandocassola/orgs","repos_url":"https://api.github.com/users/fernandocassola/repos","events_url":"https://api.github.com/users/fernandocassola/events{/privacy}","received_events_url":"https://api.github.com/users/fernandocassola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-18T14:02:31Z","updated_at":"2018-04-18T17:15:19Z","closed_at":null,"author_association":"NONE","body":"Im having a strange error.\r\n\r\nOn my localhost (windows10 with xampp) all my slim api is working fine, but when i put it on my server (ubuntu) i've got the error:\r\n PHP Fatal error:  Uncaught Error: Class 'Slim\\\\Middleware\\\\HttpBasicAuthentication' not found /var/www/html ...\r\n\r\nSome useful notes:\r\nMy composer.php\r\n{\r\n    \"require\": {\r\n        \"slim/slim\": \"^3.9\",\r\n        \"tuupola/slim-basic-auth\": \"^3.0\",\r\n        \"slim/middleware\": \"*\",\r\n        \"firebase/php-jwt\": \"^5.0\",\r\n        \"tuupola/slim-jwt-auth\": \"^3.0\",\r\n        \"tuupola/base62\": \"^0.10.0\",\r\n        \"tuupola/cors-middleware\": \"^0.7.0\"\r\n    }\r\n}\r\n\r\nMy bootstrap.php\r\n$app->add(new \\Tuupola\\Middleware\\HttpBasicAuthentication([\r\n\r\n    \"users\" => [\r\n        \"root\" => \"toor\"\r\n    ],\r\n    \"path\" => [\"/\"],\r\n    /**\r\n     * Whitelist - Protege todas as rotas e só libera as de dentro do array\r\n     */\r\n    \"passthrough\" => [\"/auth\"]\r\n]));\r\n\r\nCan you please give some tips?\r\nThank you"},"comment":{"url":"https://api.github.com/repos/tuupola/slim-basic-auth/issues/comments/382461881","html_url":"https://github.com/tuupola/slim-basic-auth/issues/61#issuecomment-382461881","issue_url":"https://api.github.com/repos/tuupola/slim-basic-auth/issues/61","id":382461881,"user":{"login":"tuupola","id":21913,"avatar_url":"https://avatars0.githubusercontent.com/u/21913?v=4","gravatar_id":"","url":"https://api.github.com/users/tuupola","html_url":"https://github.com/tuupola","followers_url":"https://api.github.com/users/tuupola/followers","following_url":"https://api.github.com/users/tuupola/following{/other_user}","gists_url":"https://api.github.com/users/tuupola/gists{/gist_id}","starred_url":"https://api.github.com/users/tuupola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuupola/subscriptions","organizations_url":"https://api.github.com/users/tuupola/orgs","repos_url":"https://api.github.com/users/tuupola/repos","events_url":"https://api.github.com/users/tuupola/events{/privacy}","received_events_url":"https://api.github.com/users/tuupola/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T17:15:19Z","updated_at":"2018-04-18T17:15:19Z","author_association":"OWNER","body":"The error message has a line number. What code is there?"}}
{"actor":{"display_login":"tuupola"}}