Whoops, looks like something went wrong.

(1/1) ErrorException

Invalid argument supplied for foreach()

in MainController.php line 786
at HandleExceptions->handleError(2, 'Invalid argument supplied for foreach()', '/data/web/dahailaozhen.cn/app/Http/Controllers/Book/MainController.php', 786, array('ids' => array(959767), 'es' => object(Client), 'filename' => 'ZHENBENKEJI_document_list20181115.txt', 'v' => 959767, 'k' => 0, 'book' => object(Book), 'result' => array('_index' => 'book_v4', '_type' => 'data', '_id' => '959767', '_version' => 1, 'found' => true, '_source' => array('id' => 959767, 'name' => '[順治]嘉祥縣誌', 'name_simplify' => '[顺治]嘉祥县志', 'page' => '', 'paper_size' => '', 'type_id' => 1017, 'review_id' => 0, 'area_id' => 1002, 'language_id' => 235, 'language_name' => '中文繁体', 'status' => 1, 'valid_status' => 1, 'is_public' => 0, 'is_full' => 1, 'collection_id' => 7, 'spider_id' => 11, 'spider_code' => '688b151f353582257954e030d2b6eca5', 'add_time' => 1541671509, 'modify_time' => 1541671509, 'summary' => '版本书目史注:9行20字,白口,四周单边。现有藏本附注:存4卷:3~6。', 'isbn' => '', 'year' => 1644, 'month' => 0, 'day' => 0, 'end_year' => 1661, 'end_month' => 0, 'end_day' => 0, 'date_name' => '', 'edition' => '清顺治[1644-1661] 刻本 康熙增修本', 'category' => array(array('id' => 884, 'name' => '史'), array('id' => 884001, 'name' => '地理'), array('id' => 884001001, 'name' => '方志')), 'picture' => array(array('filename' => '/book/20181108/5be4020d937ce1541669389.jpg', 'is_master' => 1)), 'region' => array(), 'period' => array(), 'author' => array(array('name' => '(清)张太升', 'id' => 340838, 'role_id' => 1189, 'thumb' => '', 'role_name' => '修'), array('name' => '(清)董方大', 'id' => 335421, 'role_id' => 1026, 'thumb' => '', 'role_name' => '纂')), 'publisher' => array(), 'journal' => array(), 'series' => array(), 'tag' => array(), 'source' => array(array('name' => '中国国家图书馆', 'id' => 896, 'is_show' => 1, 'source_link' => 'http://mylib.nlc.cn:80/web/guest/search/shanbenjiaojuan/medaDataDisplay?metaData.id=6475138&metaData.lId=3712499&IdLib=402834c3409540be0141aa7d72035310')), 'area_name' => '中国', 'collection_name' => '国图')), 'info' => array('id' => 'b4xkMaboozQ62pnX', 'name' => '[順治]嘉祥縣誌', 'name_simplify' => '[順治]嘉祥縣誌', 'page' => '', 'paper_size' => '', 'type_id' => 1017, 'review_id' => 0, 'area_id' => 'Bxk9gEXj', 'language_id' => '3wKgoVK8', 'language_name' => '中文', 'status' => 1, 'valid_status' => 1, 'is_public' => 0, 'is_full' => 1, 'collection_id' => 'z2WMdkg1', 'spider_id' => 11, 'spider_code' => '688b151f353582257954e030d2b6eca5', 'add_time' => 1541671509, 'modify_time' => 1541671509, 'summary' => '版本書目史註:9行20字,白口,四周單邊。現有藏本附註:存4卷:3~6。', 'isbn' => '', 'year' => 1644, 'month' => 0, 'day' => 0, 'end_year' => 1661, 'end_month' => 0, 'end_day' => 0, 'date_name' => '', 'edition' => '清順治[1644-1661] 刻本 康熙增修本', 'category' => array(array('id' => 'P7kjnyayYmaO0ZXJ', 'name' => '史'), array('id' => '9kZnEdKzmQ2G8VqO', 'name' => '地理'), array('id' => 'kZnEdKqKAeRA68Vq', 'name' => '方誌')), 'picture' => array(array('filename' => '/book/20181108/5be4020d937ce1541669389.jpg', 'is_master' => 1)), 'region' => array(), 'period' => array(), 'author' => array(array('name' => '(清)張太升', 'id' => '8oWOg6xBMDbdJD0n', 'role_id' => 1189, 'thumb' => '', 'role_name' => '修'), array('name' => '(清)董方大', 'id' => 'X2Y5MdOpvZga9gVl', 'role_id' => 1026, 'thumb' => '', 'role_name' => '纂')), 'publisher' => array(), 'journal' => array(), 'series' => array(), 'tag' => array(), 'source' => array(array('name' => '中國國家圖書館', 'id' => 896, 'is_show' => 1, 'source_link' => 'http://mylib.nlc.cn:80/web/guest/search/shanbenjiaojuan/medaDataDisplay?metaData.id=6475138&metaData.lId=3712499&IdLib=402834c3409540be0141aa7d72035310')), 'area_name' => '中國', 'collection_name' => '國圖', 'is_store' => 0, 'thumb' => '/storage/book/20181108/5be4020d937ce1541669389.jpg', 'date' => '1644 - 1661'), 'tmp' => array('1、[順治]嘉祥縣誌(书籍) 1644'), 'au' => array(), 'ax' => array()))in MainController.php line 786
at MainController->downloadTxt(array(959767))in MainController.php line 860
at MainController->download(object(Request), 'pdf')
at call_user_func_array(array(object(MainController), 'download'), array(object(Request), 'type' => 'pdf'))in Controller.php line 54
at Controller->callAction('download', array(object(Request), 'type' => 'pdf'))in ControllerDispatcher.php line 45
at ControllerDispatcher->dispatch(object(Route), object(MainController), 'download')in Route.php line 212
at Route->runController()in Route.php line 169
at Route->run()in Router.php line 679
at Router->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request))in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in StartSession.php line 63
at StartSession->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in EncryptCookies.php line 66
at EncryptCookies->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 104
at Pipeline->then(object(Closure))in Router.php line 681
at Router->runRouteWithinStack(object(Route), object(Request))in Router.php line 656
at Router->runRoute(object(Request), object(Route))in Router.php line 622
at Router->dispatchToRoute(object(Request))in Router.php line 611
at Router->dispatch(object(Request))in Kernel.php line 176
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 31
at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 31
at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in ValidatePostSize.php line 27
at ValidatePostSize->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in CheckForMaintenanceMode.php line 62
at CheckForMaintenanceMode->handle(object(Request), object(Closure))in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 104
at Pipeline->then(object(Closure))in Kernel.php line 151
at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php line 116
at Kernel->handle(object(Request))in index.php line 53