{"action":"opened","issue":{"url":"https://api.github.com/repos/dg9vh/MMDVMHost-Dashboard/issues/32","repository_url":"https://api.github.com/repos/dg9vh/MMDVMHost-Dashboard","labels_url":"https://api.github.com/repos/dg9vh/MMDVMHost-Dashboard/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/dg9vh/MMDVMHost-Dashboard/issues/32/comments","events_url":"https://api.github.com/repos/dg9vh/MMDVMHost-Dashboard/issues/32/events","html_url":"https://github.com/dg9vh/MMDVMHost-Dashboard/issues/32","id":166315333,"number":32,"title":"Error initializing YSF Infos if disabled","user":{"login":"phl0","id":7112907,"avatar_url":"https://avatars.githubusercontent.com/u/7112907?v=3","gravatar_id":"","url":"https://api.github.com/users/phl0","html_url":"https://github.com/phl0","followers_url":"https://api.github.com/users/phl0/followers","following_url":"https://api.github.com/users/phl0/following{/other_user}","gists_url":"https://api.github.com/users/phl0/gists{/gist_id}","starred_url":"https://api.github.com/users/phl0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phl0/subscriptions","organizations_url":"https://api.github.com/users/phl0/orgs","repos_url":"https://api.github.com/users/phl0/repos","events_url":"https://api.github.com/users/phl0/events{/privacy}","received_events_url":"https://api.github.com/users/phl0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-19T12:08:14Z","updated_at":"2016-07-19T12:08:14Z","closed_at":null,"body":"Even if YSFGateway is not enabled the dashboard tries to read the YSF configs and logs. That results in an error message in the logs of the web server:\r\n\r\n--- %< ---\r\n2016-07-19 12:01:24: (mod_fastcgi.c.2695) FastCGI-stderr: PHP Warning:  fopen(/etc/YSFGateway//YSFGateway.ini): failed to open stream: No such file or directory in /var/www/include/functions.php on line 37\r\n2016-07-19 12:01:24: (mod_fastcgi.c.2695) FastCGI-stderr: PHP Warning:  fopen(/var/log/YSFGateway/YSFGateway-2016-07-19.log): failed to open stream: No such file or directory in /var/www/include/functions.php on line 114\r\n--- %< ---\r\n\r\nSo I created PR #31 to only initialize the YSF Info if the Gateway is enabled. That should save from useless error messages :)"}}
{"actor":{"display_login":"phl0"}}