M-K's avatar
Level 2

View [auth.login] not found ? on shared host

the file work fine in localhost but when i upload my project file to shared host when i got this message :

InvalidArgumentException
View [auth.login] not found.

in FileViewFinder.php line 137
at FileViewFinder->findInPaths('auth.login', array('C:\wamp64\www\myproject\resources\views'))
in FileViewFinder.php line 79
at FileViewFinder->find('auth.login')
in Factory.php line 130
at Factory->make('auth.login', array(), array())
in helpers.php line 1011
at view('auth.login')
in AuthenticatesUsers.php line 20
......etc

my rout file has : Auth::routes();

my view auth folder has the login.blade.php

any ideas?

0 likes
4 replies
douglasakula's avatar

You need to clear cache. Could be you have copied localhost cache as well

M-K's avatar
Level 2

@DOUGLASAKULA - i don't use SSH so how i clear the cache

also when i rename the configs.php the problem disappears and login screen show without any styles and after login i got this message

SQLSTATE[HY000] [2002] Permission denied 
douglasakula's avatar

You could do this in your routes file to create an endpoint you can execute

Route::get('/clear-cache', function() {
    Artisan::call('cache:clear');
});

M-K's avatar
Level 2

i got this when i add this route

(1/1) ErrorException
file_put_contents(C:\wamp64\www\myproject\storage\framework/sessions/5IWcyFnZqob6Il0oiJLQLOKM5E43Yki8N4LpMmHy): failed to open stream: No such file or directory

in Filesystem.php line 122
at HandleExceptions->handleError(2, 'file_put_contents(C:\wamp64\www\myproject\storage\framework/sessions/5IWcyFnZqob6Il0oiJLQLOKM5E43Yki8N4LpMmHy): failed to open stream: No such file or directory', '/home/www/abdulkarimlube.com/admin/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 122, array('path' => 'C:\wamp64\www\laraver\JourCard\storage\framework/sessions/5IWcyFnZqob6Il0oiJLQLOKM5E43Yki8N4LpMmHy', 'contents' => 'a:3:{s:6:"_token";s:40:"Ig87XpCUMNtBc5lUuZvUKH8WTdnIH7OEoyDXdvej";s:9:"_previous";a:1:{s:3:"url";s:44:"http://abdulkarimlube.com/public/clear-cache";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
at file_put_contents('C:\wamp64\www\myproject\storage\framework/sessions/5IWcyFnZqob6Il0oiJLQLOKM5E43Yki8N4LpMmHy', 'a:3:{s:6:"_token";s:40:"Ig87XpCUMNtBc5lUuZvUKH8WTdnIH7OEoyDXdvej";s:9:"_previous";a:1:{s:3:"url";s:44:"http://abdulkarimlube.com/public/clear-cache";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2)
in Filesystem.php line 122
at Filesystem->put('C:\wamp64\www\myproject\storage\framework/sessions/5IWcyFnZqob6Il0oiJLQLOKM5E43Yki8N4LpMmHy', 'a:3:{s:6:"_token";s:40:"Ig87XpCUMNtBc5lUuZvUKH8WTdnIH7OEoyDXdvej";s:9:"_previous";a:1:{s:3:"url";s:44:"http://abdulkarimlube.com/public/clear-cache";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true)
in FileSessionHandler.php line 83
at FileSessionHandler->write('5IWcyFnZqob6Il0oiJLQLOKM5E43Yki8N4LpMmHy', 'a:3:{s:6:"_token";s:40:"Ig87XpCUMNtBc5lUuZvUKH8WTdnIH7OEoyDXdvej";s:9:"_previous";a:1:{s:3:"url";s:44:"http://abdulkarimlube.com/public/clear-cache";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}')
in Store.php line 129
at Store->save()
in StartSession.php line 87
at StartSession->terminate(object(Request), object(Response))
in Kernel.php line 218
at Kernel->terminateMiddleware(object(Request), object(Response))
in Kernel.php line 189
at Kernel->terminate(object(Request), object(Response))
in index.php line 58

Please or to participate in this conversation.