{"action":"created","issue":{"url":"https://api.github.com/repos/BookStackApp/BookStack/issues/294","repository_url":"https://api.github.com/repos/BookStackApp/BookStack","labels_url":"https://api.github.com/repos/BookStackApp/BookStack/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/BookStackApp/BookStack/issues/294/comments","events_url":"https://api.github.com/repos/BookStackApp/BookStack/issues/294/events","html_url":"https://github.com/BookStackApp/BookStack/issues/294","id":204694219,"number":294,"title":"Exception after updating Bookstack. No content anymore","user":{"login":"fabianwilflingsederxxxl","id":20642431,"avatar_url":"https://avatars.githubusercontent.com/u/20642431?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianwilflingsederxxxl","html_url":"https://github.com/fabianwilflingsederxxxl","followers_url":"https://api.github.com/users/fabianwilflingsederxxxl/followers","following_url":"https://api.github.com/users/fabianwilflingsederxxxl/following{/other_user}","gists_url":"https://api.github.com/users/fabianwilflingsederxxxl/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianwilflingsederxxxl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianwilflingsederxxxl/subscriptions","organizations_url":"https://api.github.com/users/fabianwilflingsederxxxl/orgs","repos_url":"https://api.github.com/users/fabianwilflingsederxxxl/repos","events_url":"https://api.github.com/users/fabianwilflingsederxxxl/events{/privacy}","received_events_url":"https://api.github.com/users/fabianwilflingsederxxxl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-01T20:21:46Z","updated_at":"2017-02-01T21:15:20Z","closed_at":null,"body":"### For Bug Reports\r\n\r\n* BookStack Version: BookStack v0.14.1 \r\n* PHP Version: 5.6.29-0+deb8u1\r\n* MySQL Version:  5.6.29-1~dotdeb+7.1\r\n\r\n##### Expected Behavior\r\n\r\nLoad a page or a book or a chapter\r\n\r\nAfter updating to the latest version of BookStack, I wanted to test the new features, but if I click at a link to open a chapter, a book, or simply a single page, a error page appear with the given **Exception**:\r\n`ErrorException in EntityRepo.php line 342: \r\nUndefined index: BookStack\\Chapter:0`\r\n\r\nCode:\r\n`\r\n    in EntityRepo.php line 342\r\n    at HandleExceptions->handleError('8', 'Undefined index: BookStack\\Chapter:0', '/var/www/BookStack/app/Repos/EntityRepo.php', '342', array('book' => object(Book), 'filterDrafts' => false, 'q' => object(Collection), 'entities' => array(object(Chapter), object(Page), object(Page), object(Page), object(Chapter), object(Page), object(Page), object(Chapter), object(Page), object(Page), object(Page), object(Page), object(Page), object(Page), object(Page)), 'parents' => array('BookStack\\Chapter:1' => object(Chapter), 'BookStack\\Chapter:4' => object(Chapter), 'BookStack\\Chapter:5' => object(Chapter)), 'tree' => array(), 'index' => '14', 'rawEntity' => object(stdClass), 'key' => 'BookStack\\Chapter:5', 'entity' => object(Chapter), 'parentKey' => 'BookStack\\Chapter:0')) in EntityRepo.php line 342\r\n    at EntityRepo->getBookChildren(object(Book)) in ChapterController.php line 73\r\n    at ChapterController->show('mybook', 'mychapter')\r\n    at call_user_func_array(array(object(ChapterController), 'show'), array('bookSlug' => 'mybook', 'chapterSlug' => 'mychapter')) in compiled.php line 9385\r\n    at Controller->callAction('show', array('bookSlug' => 'mybook', 'chapterSlug' => 'mychapter')) in compiled.php line 9412\r\n    at ControllerDispatcher->dispatch(object(Route), object(ChapterController), 'show') in compiled.php line 8470\r\n    at Route->runController() in compiled.php line 8451\r\n    at Route->run(object(Request)) in compiled.php line 8147\r\n    at Router->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 53\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Controller.php line 44\r\n    at Controller->BookStack\\Http\\Controllers\\{closure}(object(Request), object(Closure)) in compiled.php line 9862\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Authenticate.php line 45\r\n    at Authenticate->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Localization.php line 21\r\n    at Localization->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 9978\r\n    at SubstituteBindings->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 3151\r\n    at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 13464\r\n    at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 11907\r\n    at StartSession->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 13210\r\n    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 13147\r\n    at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 9855\r\n    at Pipeline->then(object(Closure)) in compiled.php line 8148\r\n    at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8139\r\n    at Router->dispatchToRoute(object(Request)) in compiled.php line 8130\r\n    at Router->dispatch(object(Request)) in compiled.php line 2472\r\n    at Kernel->Illuminate\\Foundation\\Http\\{closure}(object(Request)) in Pipeline.php line 53\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Debugbar.php line 51\r\n    at Debugbar->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 3213\r\n    at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9870\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\n    at Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in compiled.php line 9855\r\n    at Pipeline->then(object(Closure)) in compiled.php line 2416\r\n    at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2400\r\n    at Kernel->handle(object(Request)) in index.php line 54\r\n\r\n`\r\n\r\n##### Actual Behavior\r\n\r\nA error page appears with the content \"Whoops, looks like something went wrong\"\r\n\r\n\r\n\r\n\r\nThe links to the books, chapters and pages are shown on the dashboard"},"comment":{"url":"https://api.github.com/repos/BookStackApp/BookStack/issues/comments/276784521","html_url":"https://github.com/BookStackApp/BookStack/issues/294#issuecomment-276784521","issue_url":"https://api.github.com/repos/BookStackApp/BookStack/issues/294","id":276784521,"user":{"login":"ssddanbrown","id":8343178,"avatar_url":"https://avatars.githubusercontent.com/u/8343178?v=3","gravatar_id":"","url":"https://api.github.com/users/ssddanbrown","html_url":"https://github.com/ssddanbrown","followers_url":"https://api.github.com/users/ssddanbrown/followers","following_url":"https://api.github.com/users/ssddanbrown/following{/other_user}","gists_url":"https://api.github.com/users/ssddanbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/ssddanbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssddanbrown/subscriptions","organizations_url":"https://api.github.com/users/ssddanbrown/orgs","repos_url":"https://api.github.com/users/ssddanbrown/repos","events_url":"https://api.github.com/users/ssddanbrown/events{/privacy}","received_events_url":"https://api.github.com/users/ssddanbrown/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T21:15:20Z","updated_at":"2017-02-01T21:15:20Z","body":"@fabianwilflingsederxxxl Hi, This looks to be the same issue as #287. I'll get a bugfix release out tonight or tomorrow to cover this."}}
{"actor":{"display_login":"ssddanbrown"}}