{"action":"closed","issue":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/497","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/497/comments","events_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/497/events","html_url":"https://github.com/LearningLocker/learninglocker/issues/497","id":55388793,"number":497,"title":"Storyline2 - \"id\" looking for array not stdClass","user":{"login":"davidpesce","id":3988068,"avatar_url":"https://avatars.githubusercontent.com/u/3988068?v=3","gravatar_id":"","url":"https://api.github.com/users/davidpesce","html_url":"https://github.com/davidpesce","followers_url":"https://api.github.com/users/davidpesce/followers","following_url":"https://api.github.com/users/davidpesce/following{/other_user}","gists_url":"https://api.github.com/users/davidpesce/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpesce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpesce/subscriptions","organizations_url":"https://api.github.com/users/davidpesce/orgs","repos_url":"https://api.github.com/users/davidpesce/repos","events_url":"https://api.github.com/users/davidpesce/events{/privacy}","received_events_url":"https://api.github.com/users/davidpesce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/priority:medium","name":"priority:medium","color":"eb6420"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/status:confirmed","name":"status:confirmed","color":"e11d21"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/13","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/13/labels","id":947691,"number":13,"title":"1.3.3","description":"","creator":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":2,"state":"open","created_at":"2015-01-22T22:40:10Z","updated_at":"2015-02-10T16:34:09Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2015-01-24T23:21:17Z","updated_at":"2015-02-10T16:34:09Z","closed_at":"2015-02-10T16:34:09Z","body":"**Version:**\r\n1.3.0\r\n\r\n**Steps to reproduce the bug:**\r\n1. Default install of LL 1.3.0\r\n2. Follow directions here (http://learninglocker.net/2014/10/27/767/) to create Storyline 2 output\r\n3. Launch content (public, no LMS)\r\n4. Chrome/FF/IE browsers receive the same error message within SL output (\"Connection Error\", \"Unable to connect to the server. Please verify you can connect to the Internet and relauch the course. Status Code: 400\"\r\n5. Fiddler trace shows error in additional info below\r\n\r\n**Expected behavior:**\r\nCourse should launch, display, and be tracked via LRS\r\n\r\n**Actual Behavior:**\r\nError message, content is not even accessible\r\n\r\n**Server Information:**\r\nCentOS 7.0\r\nPHP 5.6.4\r\n\r\n**Client Information:**\r\nOS: Windows 8.1\r\nBrowser: Chrome/FF/IE (latest versions)\r\n\r\n**Additional Information:**\r\nActual JSON error:\r\n```\r\n{\"error\":true,\"success\":false,\"message\":\"`{\\\"id\\\":\\\"http:\\\\\\/\\\\\\/6FVyxTN5JBq_course_id\\\"}` should be a `array` not `stdClass`. If you're decoding JSON, make sure you're using valid JSON.\",\"trace\":\"#0 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Collection.php(9): Locker\\\\XApi\\\\Helpers::checkType('new_value', 'array', Object(stdClass))\\n#1 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Atom.php(12): Locker\\\\XApi\\\\Collection->setValue(Object(stdClass))\\n#2 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(169): Locker\\\\XApi\\\\Atom->__construct(Object(stdClass))\\n#3 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(61): Locker\\\\XApi\\\\Element->setProp('grouping', Object(stdClass))\\n#4 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Atom.php(12): Locker\\\\XApi\\\\Element->setValue(Object(stdClass))\\n#5 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(37): Locker\\\\XApi\\\\Atom->__construct(Object(stdClass))\\n#6 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(169): Locker\\\\XApi\\\\Element->__construct(Object(stdClass))\\n#7 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(61): Locker\\\\XApi\\\\Element->setProp('contextActiviti...', Object(stdClass))\\n#8 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Atom.php(12): Locker\\\\XApi\\\\Element->setValue(Object(stdClass))\\n#9 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(37): Locker\\\\XApi\\\\Atom->__construct(Object(stdClass))\\n#10 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(169): Locker\\\\XApi\\\\Element->__construct(Object(stdClass))\\n#11 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(61): Locker\\\\XApi\\\\Element->setProp('context', Object(stdClass))\\n#12 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Atom.php(12): Locker\\\\XApi\\\\Element->setValue(Object(stdClass))\\n#13 \\/var\\/www\\/learninglocker\\/vendor\\/learninglocker\\/statementfactory\\/src\\/Element.php(37): Locker\\\\XApi\\\\Atom->__construct(Object(stdClass))\\n#14 \\/var\\/www\\/learninglocker\\/app\\/locker\\/repository\\/Statement\\/EloquentStatementRepository.php(707): Locker\\\\XApi\\\\Element->__construct(Object(stdClass))\\n#15 [internal function]: Locker\\\\Repository\\\\Statement\\\\EloquentStatementRepository->Locker\\\\Repository\\\\Statement\\\\{closure}(Object(stdClass))\\n#16 \\/var\\/www\\/learninglocker\\/app\\/locker\\/repository\\/Statement\\/EloquentStatementRepository.php(708): array_map(Object(Closure), Array)\\n#17 \\/var\\/www\\/learninglocker\\/app\\/controllers\\/xapi\\/StatementController.php(171): Locker\\\\Repository\\\\Statement\\\\EloquentStatementRepository->create(Array, Object(Lrs), '')\\n#18 \\/var\\/www\\/learninglocker\\/app\\/controllers\\/xapi\\/BaseController.php(37): Controllers\\\\xAPI\\\\StatementController->update()\\n#19 [internal function]: Controllers\\\\xAPI\\\\BaseController->selectMethod()\\n#20 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Controller.php(231): call_user_func_array(Array, Array)\\n#21 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/ControllerDispatcher.php(93): Illuminate\\\\Routing\\\\Controller->callAction('selectMethod', Array)\\n#22 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/ControllerDispatcher.php(62): Illuminate\\\\Routing\\\\ControllerDispatcher->call(Object(Controllers\\\\xAPI\\\\StatementController), Object(Illuminate\\\\Routing\\\\Route), 'selectMethod')\\n#23 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php(962): Illuminate\\\\Routing\\\\ControllerDispatcher->dispatch(Object(Illuminate\\\\Routing\\\\Route), Object(Illuminate\\\\Http\\\\Request), 'Controllers\\\\\\\\xAP...', 'selectMethod')\\n#24 [internal function]: Illuminate\\\\Routing\\\\Router->Illuminate\\\\Routing\\\\{closure}()\\n#25 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Route.php(109): call_user_func_array(Object(Closure), Array)\\n#26 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php(1028): Illuminate\\\\Routing\\\\Route->run(Object(Illuminate\\\\Http\\\\Request))\\n#27 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php(996): Illuminate\\\\Routing\\\\Router->dispatchToRoute(Object(Illuminate\\\\Http\\\\Request))\\n#28 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Application.php(776): Illuminate\\\\Routing\\\\Router->dispatch(Object(Illuminate\\\\Http\\\\Request))\\n#29 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Application.php(746): Illuminate\\\\Foundation\\\\Application->dispatch(Object(Illuminate\\\\Http\\\\Request))\\n#30 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Session\\/Middleware.php(72): Illuminate\\\\Foundation\\\\Application->handle(Object(Illuminate\\\\Http\\\\Request), 1, true)\\n#31 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Cookie\\/Queue.php(47): Illuminate\\\\Session\\\\Middleware->handle(Object(Illuminate\\\\Http\\\\Request), 1, true)\\n#32 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Cookie\\/Guard.php(51): Illuminate\\\\Cookie\\\\Queue->handle(Object(Illuminate\\\\Http\\\\Request), 1, true)\\n#33 \\/var\\/www\\/learninglocker\\/vendor\\/stack\\/builder\\/src\\/Stack\\/StackedHttpKernel.php(23): Illuminate\\\\Cookie\\\\Guard->handle(Object(Illuminate\\\\Http\\\\Request), 1, true)\\n#34 \\/var\\/www\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Application.php(642): Stack\\\\StackedHttpKernel->handle(Object(Illuminate\\\\Http\\\\Request))\\n#35 \\/var\\/www\\/learninglocker\\/public\\/index.php(49): Illuminate\\\\Foundation\\\\Application->run()\\n#36 {main}\"}\r\n```"}}