{"action":"created","issue":{"url":"https://api.github.com/repos/DutchCodeGeeks/MATA-PHP/issues/17","labels_url":"https://api.github.com/repos/DutchCodeGeeks/MATA-PHP/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/DutchCodeGeeks/MATA-PHP/issues/17/comments","events_url":"https://api.github.com/repos/DutchCodeGeeks/MATA-PHP/issues/17/events","html_url":"https://github.com/DutchCodeGeeks/MATA-PHP/issues/17","id":35233876,"number":17,"title":"Study guide API not working","user":{"login":"therbom","id":1478577,"avatar_url":"https://avatars.githubusercontent.com/u/1478577?v=3","gravatar_id":"","url":"https://api.github.com/users/therbom","html_url":"https://github.com/therbom","followers_url":"https://api.github.com/users/therbom/followers","following_url":"https://api.github.com/users/therbom/following{/other_user}","gists_url":"https://api.github.com/users/therbom/gists{/gist_id}","starred_url":"https://api.github.com/users/therbom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therbom/subscriptions","organizations_url":"https://api.github.com/users/therbom/orgs","repos_url":"https://api.github.com/users/therbom/repos","events_url":"https://api.github.com/users/therbom/events{/privacy}","received_events_url":"https://api.github.com/users/therbom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"tkon99","id":2544496,"avatar_url":"https://avatars.githubusercontent.com/u/2544496?v=3","gravatar_id":"","url":"https://api.github.com/users/tkon99","html_url":"https://github.com/tkon99","followers_url":"https://api.github.com/users/tkon99/followers","following_url":"https://api.github.com/users/tkon99/following{/other_user}","gists_url":"https://api.github.com/users/tkon99/gists{/gist_id}","starred_url":"https://api.github.com/users/tkon99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkon99/subscriptions","organizations_url":"https://api.github.com/users/tkon99/orgs","repos_url":"https://api.github.com/users/tkon99/repos","events_url":"https://api.github.com/users/tkon99/events{/privacy}","received_events_url":"https://api.github.com/users/tkon99/received_events","type":"User","site_admin":false},"milestone":null,"comments":30,"created_at":"2014-06-08T11:23:49Z","updated_at":"2015-03-17T07:14:13Z","closed_at":"2014-06-09T10:54:11Z","body":"Hi, I'm trying to use your API to get the study guides available on our school's server. The login process works, as it correctly returns my real name, but getStudyGuideList() returns an empty array. I can verify that they exist if I login normally to https://mata-zaamnoord.magister.net.\r\n\r\nOutput of var_dump($session):\r\n```php\r\nobject(mataphp\\Session)#1 (4) {\r\n  [\"school\"]=>\r\n  object(mataphp\\School)#2 (2) {\r\n    [\"name\"]=>\r\n    string(8) \"Damstede\"\r\n    [\"url\"]=>\r\n    string(27) \"mata-zaamnoord.magister.net\"\r\n  }\r\n  [\"userId\"]=>\r\n  int(5394)\r\n  [\"sessionId\"]=>\r\n  string(13) \"5394440b8e221\"\r\n  [\"realName\"]=>\r\n  string(12) \"Marco Brohet\"\r\n}\r\n```\r\n\r\nOutput of var_dump(mataphp\\getStudyGuideList($session)):\r\n```php\r\narray(0) {\r\n}\r\n```\r\n\r\nPHP error log:\r\n```\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Notice:  Use of undefined constant STDERR - assumed 'STDERR' in ***/api.php on line 6\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Strict Standards:  Non-static method mataphp\\\\Mataphp::encodeURIComponent() should not be called statically in ***/api.php on line 160\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Strict Standards:  Non-static method mataphp\\\\Mataphp::curlget() should not be called statically in ***/api.php on line 160\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in ***/api.php on line 130\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Strict Standards:  Non-static method mataphp\\\\Mataphp::curlget() should not be called statically in ***/api.php on line 224\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in ***/api.php on line 130\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Strict Standards:  Non-static method mataphp\\\\Mataphp::curlget() should not be called statically in ***/api.php on line 168\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in ***/api.php on line 130\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  Invalid argument supplied for foreach() in ***/api.php on line 171\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Strict Standards:  Non-static method mataphp\\\\Mataphp::curlget() should not be called statically in ***/api.php on line 187\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in ***/api.php on line 130\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  Invalid argument supplied for foreach() in ***/api.php on line 190\r\n[Sun Jun 08 13:07:55 2014] [error] [client ***] PHP Warning:  file_exists(): open_basedir restriction in effect. File(.mata-php.api.cookie.5394440b8e221) is not within the allowed path(s): (***:/tmp:/var/tmp:/usr/local/lib/php/) in ***/api.php on line 33\r\n```"},"comment":{"url":"https://api.github.com/repos/DutchCodeGeeks/MATA-PHP/issues/comments/82171127","html_url":"https://github.com/DutchCodeGeeks/MATA-PHP/issues/17#issuecomment-82171127","issue_url":"https://api.github.com/repos/DutchCodeGeeks/MATA-PHP/issues/17","id":82171127,"user":{"login":"lieuwex","id":6019113,"avatar_url":"https://avatars.githubusercontent.com/u/6019113?v=3","gravatar_id":"","url":"https://api.github.com/users/lieuwex","html_url":"https://github.com/lieuwex","followers_url":"https://api.github.com/users/lieuwex/followers","following_url":"https://api.github.com/users/lieuwex/following{/other_user}","gists_url":"https://api.github.com/users/lieuwex/gists{/gist_id}","starred_url":"https://api.github.com/users/lieuwex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lieuwex/subscriptions","organizations_url":"https://api.github.com/users/lieuwex/orgs","repos_url":"https://api.github.com/users/lieuwex/repos","events_url":"https://api.github.com/users/lieuwex/events{/privacy}","received_events_url":"https://api.github.com/users/lieuwex/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T07:14:13Z","updated_at":"2015-03-17T07:14:13Z","body":"@KeizerDev Go ahead, I'm too busy right now. :P"}}