laravel – InvalidArgumentException in FileViewFinder.php line 137 on shared hosting-ThrowExceptions

Exception or error:

I am currently migrating a Laravel site from a virtual hosting to a shared hosting (000webhost). The original admin have left and cannot be reached.

After I copied over the php files and imported the MySQL to new hosting, I updated \public_html\bootstrap\cache\config.php for the paths and MySQL db config. Also I have chmod 755 he permission of storage and the bootstrap/cache directories.

However when I try to load the site it returns 2 errors:

InvalidArgumentException in FileViewFinder.php line 137: View
[auth.login] not found.

ErrorException in Filesystem.php line 81:
failed to open stream: No such file or directory

For the first error, I double checked \public_html\resources\views\auth\login.blade.php is existing. What else should I check?

In some old thread it is suggested to run artisan commands to fix it:

  • php artisan cache:clear
  • php artisan view:clear
  • php artisan

However I cannot run command on shared hosting. Also I do not find /route/ folder and web.php so I cannot do it on web browser too. Can I simply delete all files under /sessions/ & /cache/ and reset my cache manually?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *