{"action":"created","issue":{"url":"https://api.github.com/repos/getherbert/herbert/issues/152","repository_url":"https://api.github.com/repos/getherbert/herbert","labels_url":"https://api.github.com/repos/getherbert/herbert/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/getherbert/herbert/issues/152/comments","events_url":"https://api.github.com/repos/getherbert/herbert/issues/152/events","html_url":"https://github.com/getherbert/herbert/issues/152","id":174388114,"number":152,"title":"Error Suppresion causes difficulty debugging","user":{"login":"designforhumans","id":2145256,"avatar_url":"https://avatars.githubusercontent.com/u/2145256?v=3","gravatar_id":"","url":"https://api.github.com/users/designforhumans","html_url":"https://github.com/designforhumans","followers_url":"https://api.github.com/users/designforhumans/followers","following_url":"https://api.github.com/users/designforhumans/following{/other_user}","gists_url":"https://api.github.com/users/designforhumans/gists{/gist_id}","starred_url":"https://api.github.com/users/designforhumans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designforhumans/subscriptions","organizations_url":"https://api.github.com/users/designforhumans/orgs","repos_url":"https://api.github.com/users/designforhumans/repos","events_url":"https://api.github.com/users/designforhumans/events{/privacy}","received_events_url":"https://api.github.com/users/designforhumans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T21:51:52Z","updated_at":"2016-08-31T21:55:48Z","closed_at":null,"body":"I created a new folder (named 'Tools') for some extraneous custom classes at `/wp-content/plugins/herbert/app/ `\r\n\r\nWhen I moved this plugin to a new environment, the plugin caused my site to white screen with no error messages posted to screen. I had to spend around 3 hours painfully going through plugins and files eventually finding out that the file at `/plugins/herbert/vendor/getherbert/framework/Herbert/Framework/Application.php` has many instances of using `require` with preceding `@` to suppress errors.\r\n\r\nThe plugin does some kind of file pre-loading / caching, and it was `@require`'ing my files , for some reason using the lowercase version of the folder name e.g. `/tools/file1.php` - instead of `Tools/file1.php` as the required file did not exist it then throws a silent fatal error. \r\n\r\nPlease fix this. 1) Don't use error suppression. 2) Why does your preloaded modify the filepath? "},"comment":{"url":"https://api.github.com/repos/getherbert/herbert/issues/comments/243915074","html_url":"https://github.com/getherbert/herbert/issues/152#issuecomment-243915074","issue_url":"https://api.github.com/repos/getherbert/herbert/issues/152","id":243915074,"user":{"login":"designforhumans","id":2145256,"avatar_url":"https://avatars.githubusercontent.com/u/2145256?v=3","gravatar_id":"","url":"https://api.github.com/users/designforhumans","html_url":"https://github.com/designforhumans","followers_url":"https://api.github.com/users/designforhumans/followers","following_url":"https://api.github.com/users/designforhumans/following{/other_user}","gists_url":"https://api.github.com/users/designforhumans/gists{/gist_id}","starred_url":"https://api.github.com/users/designforhumans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designforhumans/subscriptions","organizations_url":"https://api.github.com/users/designforhumans/orgs","repos_url":"https://api.github.com/users/designforhumans/repos","events_url":"https://api.github.com/users/designforhumans/events{/privacy}","received_events_url":"https://api.github.com/users/designforhumans/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T21:55:48Z","updated_at":"2016-08-31T21:55:48Z","body":"I fixed this by hardcoding  `$require = str_replace('tools', 'Tools', $require);` on line 316 of \r\n`/plugins/herbert/vendor/getherbert/framework/Herbert/Framework/Application.php` a clumsy hack for sure, but it was 3am... a better solution is much needed."}}
{"actor":{"display_login":"designforhumans"}}