讨论 使用交流 今天打开出现了500错误了,是什么问题

今天打开出现了500错误了,是什么问题

fkenuiabcd 发表于    阅读:472    回复:3

ErrorException: file_put_contents(/www/wwwroot/ydssx.com/storage/framework/cache/b0/ab/b0ab53aa94462cadfe4960bbd21ceac5): failed to open stream: No such file or directory
in /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:81

Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/www/wwwroot/yd...', 81, Array) #1 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(81): file_put_contents('/www/wwwroot/yd...', '9999999999s:9:"...', 0) #2 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(102): Illuminate\Filesystem\Filesystem->put('/www/wwwroot/yd...', '9999999999s:9:"...') #3 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(140): Illuminate\Cache\FileStore->put('modstart:asset-...', '9999999999s:9:"...', 0) #4 [internal function]: Illuminate\Cache\Repository->put('modstart:asset-...', '209410235', 0) #5 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(318): call_user_func_array(Array, Array) #6 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(219): Illuminate\Cache\CacheManager->__call('put', Array) #7 /www/wwwroot/ydssx.com/vendor/modstart/modstart/src/Core/Assets/Driver/LocalAssetsPath.php(7): Illuminate\Support\Facades\Facade::__callStatic('put', Array) #8 /www/wwwroot/ydssx.com/vendor/modstart/modstart/src/Core/Assets/AssetsUtil.php(29): ModStart\Core\Assets\Driver\LocalAssetsPath->getPathWithHash('data/image/2023...') #9 /www/wwwroot/ydssx.com/storage/framework/views/f748b9685686d0a5cd92f35b751ee7bb(43): ModStart\Core\Assets\AssetsUtil::fix('data/image/2023...') #10 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(42): include('/www/wwwroot/yd...') #11 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(58): Illuminate\View\Engines\PhpEngine->evaluatePath('/www/wwwroot/yd...', Array) #12 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\Engines\CompilerEngine->get('/www/wwwroot/yd...', Array) #13 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/View.php(118): Illuminate\View\View->getContents() #14 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/View.php(83): Illuminate\View\View->renderContents() #15 /www/wwwroot/ydssx.com/module/Banner/View/BannerView.php(37): Illuminate\View\View->render() #16 /www/wwwroot/ydssx.com/storage/framework/views/9a6e2914110e05d74eca14e2ed9e4772(35): Module\Banner\View\BannerView::basic('wenkuHome', '1400x400', '4-1', '3-2', false, true) #17 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(42): include('/www/wwwroot/yd...') #18 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(58): Illuminate\View\Engines\PhpEngine->evaluatePath('/www/wwwroot/yd...', Array) #19 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\Engines\CompilerEngine->get('/www/wwwroot/yd...', Array) #20 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/View.php(118): Illuminate\View\View->getContents() #21 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/View/View.php(83): Illuminate\View\View->renderContents() #22 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Http/Response.php(51): Illuminate\View\View->render() #23 /www/wwwroot/ydssx.com/vendor/symfony/http-foundation/Response.php(202): Illuminate\Http\Response->setContent(Object(Illuminate\View\View)) #24 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1229): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View)) #25 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(112): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View)) #26 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #27 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #28 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #29 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #30 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #31 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(68): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(App\Web\Controller\IndexController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'index') #32 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), '\\App\\Web\\Contro...', 'index') #33 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request)) #34 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #35 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #36 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #37 /www/wwwroot/ydssx.com/module/Member/Middleware/WebAuthMiddleware.php(7): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #38 [internal function]: Module\Member\Middleware\WebAuthMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #39 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #40 /www/wwwroot/ydssx.com/vendor/modstart/modstart/src/App/Web/Middleware/BootstrapMiddleware.php(7): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #41 [internal function]: ModStart\App\Web\Middleware\BootstrapMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #42 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #43 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #44 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #45 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #46 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(674): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #47 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #48 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #49 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) #50 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #51 /www/wwwroot/ydssx.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #52 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))


评论

是不是误删了这个目录 storage/framework/cache/?

手动创建下并设定正确的权限。

 

@ModStart:     我在后台清除缓存一下就 就这样了


有这个目录  

36952_zynj_8838.png


 

只有替换了vendor这个目录下的全部文件又正常了,清除缓存又500错误了,不知道是什么问题

 
1
我来评论
QQ
微信
客服