Laravel计算机 - 计算机迁移会话错误

时间:2017-01-13 00:42:40

标签: php laravel composer-php

你好将我的laravel项目复制到其他计算机后,当我尝试将php artisan服务于它时,我在localhost:8000上收到此消息。任何人都可以解释它是什么意思?我删除了.json会话文件,但我什么也没得到。

   Whoops, looks like something went wrong.

1/1 InvalidArgumentException in FileViewFinder.php line 137: View [index2] not found.

    in FileViewFinder.php line 137

    at FileViewFinder->findInPaths('index2', array('C:\Users\chris-basic\Desktop\p\resources\views')) in FileViewFinder.php line 79

    at FileViewFinder->find('index2') in Factory.php line 174

    at Factory->make('index2', array(), array()) in helpers.php line 855

    at view('index2') in web.php line 20

    at RouteServiceProvider->{closure}() in Route.php line 176

    at Route->runCallable() in Route.php line 147

    at Route->run(object(Request)) in Router.php line 644

    at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 53

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in SubstituteBindings.php line 41

    at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in VerifyCsrfToken.php line 65

    at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49

    at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 64

    at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37

    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php line 59

    at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104

    at Pipeline->then(object(Closure)) in Router.php line 646

    at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 620

    at Router->dispatchToRoute(object(Request)) in Router.php line 598

    at Router->dispatch(object(Request)) in Kernel.php line 267

    at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46

    at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137

    at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33

    at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104

    at Pipeline->then(object(Closure)) in Kernel.php line 149

    at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116

    at Kernel->handle(object(Request)) in index.php line 54

    at require_once('C:\xampp\htdocs\test2\public\index.php') in server.php line 21

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(C:\Users\chris-basic\Desktop\p\storage\framework/sessions/y4WU6ifJfcMd2ffoFyIZebwPw5ZCJyRxwHMLds2V): failed to open stream: No such file or directory

    in Filesystem.php line 111

    at HandleExceptions->handleError('2', 'file_put_contents(C:\Users\chris-basic\Desktop\p\storage\framework/sessions/y4WU6ifJfcMd2ffoFyIZebwPw5ZCJyRxwHMLds2V): failed to open stream: No such file or directory', 'C:\xampp\htdocs\test2\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php', '111', array('path' => 'C:\Users\chris-basic\Desktop\p\storage\framework/sessions/y4WU6ifJfcMd2ffo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4Y2JkOGEwN2NiNjA5NDc4NTQzZTRlZTJhZTIxOTI2MmE5MzUzODVlMGNkZTZiMTRkM2E2NTlkY2EzMDRlNjM5In0=', true) in FileSessionHandler.php line 83

    at FileSessionHandler->write('y4WU6ifJfcMd2ffoFyIZebwPw5ZCJyRxwHMLds2V', 'eyJpdiI6IlFrWUVnRCszeEwxem44UXc2dWZZaVE9PSIsInZhbHVlIjoiU1JRU3J6ckx2eTFSc0RjSnArQnBPYzdiTktORVVCNTBkRUF5MHh6M2hqM1I0QnlWNEtPYTRlOWxyOWduSDR5Z3RxakZ2cjRFWWRwQ2U3Z0VcL3JLbHVBSG5FWlwvNGNVNUQrSWROUGM5eG8zdkVjaGR5RW5mdTNCZzk4S0M4OEsySUppdFwvYnN4VGtveEhLbndrT1lEc2hRS28wMXJnT1h5R2lYXC9ZdUtYN2ZKd2I5Mzl5aG1CYnJmdlcxTk1WYmxLM25VT0hnTWRcLyt1QUM4dkd4cnpBRGE3UzAwZ1JKbldkTHhCQndMUnRGWWFORER2WGxHQkVFWTlqY3FwSFhGcjFPdFhqTFU0eEhoaHdaYUs2ZUJJbjk1QmE4RDQxYUN2TlE2T2ZaXC9cLzBwQlZZYUlhUVd5Vko0QUtYbDJKZU5wMVNLMmN6N3pqQjh2ZHdlTlpvcTRyOG9mbUQwQ3lpOWwxTjByck42SGM0dmFBST0iLCJtYWMiOiI4Y2JkOGEwN2NiNjA5NDc4NTQzZTRlZTJhZTIxOTI2MmE5MzUzODVlMGNkZTZiMTRkM2E2NTlkY2EzMDRlNjM5In0=') in Store.php line 262

    at Store->save() in StartSession.php line 88

    at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 176

    at Kernel->terminate(object(Request), object(Response)) in index.php line 58

    at require_once('C:\xampp\htdocs\test2\public\index.php') in server.php line 21

2 个答案:

答案 0 :(得分:0)

移动项目的最佳方式是git。 如果您想手动执行此操作,请复制vendor以外的所有文件夹,然后运行composer install

答案 1 :(得分:0)

我同意@ Mirceac21。最好的方法是git

如果您不喜欢它,那么archive没有vendor目录的项目会更安全,然后迁移然后运行composer install

Laravel是一个框架,因此您需要按正确顺序执行所有文件。所以你需要保持它的完整性。因此,完美的解决方案是git。那你为什么要通过做其他的东西来赚钱呢?