Reputation: 1960
I've uploaded an entire Laravel site. The first time everything was working fine.
Now I had an update and did the same thing all over again. Now the URLs are wrong. Whatever route I choose I get an
InvalidArgumentException in FileViewFinder.php line 137: View [errors.404] not found.
I also see the following:
at FileViewFinder->findInPaths('errors.404', array('C:\xampp\htdocs\myApp\app\resources\views')) in FileViewFinder.php line 79
Which is really incorrect.
If I echo something in routes.php I can see the echo.
Upvotes: 0
Views: 1297
Reputation: 1928
Update
The OP has website in shared hosting with-out SSH access to run artisan commands.
php artisan cache:clear
php artisan route:cache
Problem Route cached: The OP uploaded local project into shared hosting with cached routes. Which caused routes conflict.
Laravel assumes c:\xampp\{project_name}
to be local directory while it was different path.
Solution
The solution was to remove bootstrap\cache\
content (Cached routes)
Upvotes: 3