Whoops, looks like something went wrong.

1/1 ErrorException in MainController.php line 786: Invalid argument supplied for foreach()

  1. in MainController.php line 786
  2. at HandleExceptions->handleError(2, 'Invalid argument supplied for foreach()', '/data/web/dahailaozhen.cn/app/Http/Controllers/Book/MainController.php', 786, array('ids' => array(931183), 'es' => object(Client), 'filename' => 'ZHENBENKEJI_document_list20181019.txt', 'v' => 931183, 'k' => 0, 'book' => object(Book), 'result' => array('_index' => 'book_v4', '_type' => 'data', '_id' => '931183', '_version' => 2, 'found' => true, '_source' => array('id' => 931183, 'name' => 'P.3010 戊子年五月十七日三界寺借四分律条记 某年九月一日新写藏经入藏目录 戌年七月一日新写藏经见入藏录 寅年七月八日后装潢经律几经同帙录 卯年三月十九日后装潢经论戒律几经同帙录', 'name_simplify' => 'P.3010 戊子年五月十七日三界寺借四分律条记 某年九月一日新写藏经入藏目录 戌年七月一日新写藏经见入藏录 寅年七月八日后装潢经律几经同帙录 卯年三月十九日后装潢经论戒律几经同帙录', 'page' => '', 'paper_size' => '', 'type_id' => 1017, 'review_id' => 0, 'area_id' => 1054, 'language_id' => 235, 'language_name' => '中文繁体', 'status' => 1, 'valid_status' => 1, 'is_public' => 0, 'is_full' => 1, 'collection_id' => 5, 'spider_id' => 11, 'spider_code' => 'fdc78a4d7cdc50590698d99fb227482d', 'add_time' => 1539276341, 'modify_time' => 1539276341, 'summary' => '现有藏本附注:法国国家图书馆', 'isbn' => '', 'year' => 0, 'month' => 0, 'day' => 0, 'end_year' => 0, 'end_month' => 0, 'end_day' => 0, 'date_name' => '', 'edition' => '写本', 'category' => array(), 'picture' => array(array('filename' => '/book/20181011/5bbf7e3ca323f1539276348.jpg', 'is_master' => 1)), 'region' => array(), 'period' => array(), 'author' => array(), '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=6705162&metaData.lId=3942783&IdLib=402834c3409540be0141aa7d72035310')), 'area_name' => '法国', 'collection_name' => '法国国家图书馆')), 'info' => array('id' => 'kQrW1aVRJQ5aZKjw', 'name' => 'P.3010 戊子年五月十七日三界寺借四分律條記 某年九月一日新寫藏經入藏目錄 戌年七月一日新寫藏經見入藏錄 寅年七月八日後裝潢經律幾經同帙錄 卯年三月十九日後裝潢經論戒律幾經同帙錄', 'name_simplify' => 'P.3010 戊子年五月十七日三界寺借四分律條記 某年九月一日新寫藏經入藏目錄 戌年七月一日新寫藏經見入藏錄 寅年七月八日後裝潢經律幾經同帙錄 卯年三月十九日後裝潢經論戒律幾經同帙錄', 'page' => '', 'paper_size' => '', 'type_id' => 1017, 'review_id' => 0, 'area_id' => 'OlXOwjXq', 'language_id' => '3wKgoVK8', 'language_name' => '中文', 'status' => 1, 'valid_status' => 1, 'is_public' => 0, 'is_full' => 1, 'collection_id' => 'Prk6yKGM', 'spider_id' => 11, 'spider_code' => 'fdc78a4d7cdc50590698d99fb227482d', 'add_time' => 1539276341, 'modify_time' => 1539276341, 'summary' => '現有藏本附註:法國國家圖書館', 'isbn' => '', 'year' => 0, 'month' => 0, 'day' => 0, 'end_year' => 0, 'end_month' => 0, 'end_day' => 0, 'date_name' => '', 'edition' => '寫本', 'category' => array(), 'picture' => array(array('filename' => '/book/20181011/5bbf7e3ca323f1539276348.jpg', 'is_master' => 1)), 'region' => array(), 'period' => array(), 'author' => array(), '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=6705162&metaData.lId=3942783&IdLib=402834c3409540be0141aa7d72035310')), 'area_name' => '法國', 'collection_name' => '法國國家圖書館', 'is_store' => 0, 'thumb' => '/storage/book/20181011/5bbf7e3ca323f1539276348.jpg', 'date' => ''), 'tmp' => array('1、P.3010 戊子年五月十七日三界寺借四分律條記 某年九月一日新寫藏經入藏目錄 戌年七月一日新寫藏經見入藏錄 寅年七月八日後裝潢經律幾經同帙錄 卯年三月十九日後裝潢經論戒律幾經同帙錄(书籍) '), 'au' => array(), 'ax' => array())) in MainController.php line 786
  3. at MainController->downloadTxt(array(931183)) in MainController.php line 860
  4. at MainController->download(object(Request), 'pdf')
  5. at call_user_func_array(array(object(MainController), 'download'), array(object(Request), 'type' => 'pdf')) in Controller.php line 55
  6. at Controller->callAction('download', array(object(Request), 'type' => 'pdf')) in ControllerDispatcher.php line 44
  7. at ControllerDispatcher->dispatch(object(Route), object(MainController), 'download') in Route.php line 203
  8. at Route->runController() in Route.php line 160
  9. at Route->run() in Router.php line 559
  10. at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 30
  11. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in SubstituteBindings.php line 41
  12. at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 148
  13. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  14. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  15. at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 148
  16. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  17. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 64
  18. at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 148
  19. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  20. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  21. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 148
  22. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  23. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php line 59
  24. at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 148
  25. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  26. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 102
  27. at Pipeline->then(object(Closure)) in Router.php line 561
  28. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 520
  29. at Router->dispatchToRoute(object(Request)) in Router.php line 498
  30. at Router->dispatch(object(Request)) in Kernel.php line 174
  31. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 30
  32. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in TransformsRequest.php line 30
  33. at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
  34. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  35. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in TransformsRequest.php line 30
  36. at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
  37. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  38. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ValidatePostSize.php line 27
  39. at ValidatePostSize->handle(object(Request), object(Closure)) in Pipeline.php line 148
  40. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  41. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
  42. at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148
  43. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 53
  44. at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 102
  45. at Pipeline->then(object(Closure)) in Kernel.php line 149
  46. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
  47. at Kernel->handle(object(Request)) in index.php line 53