Laravel ErrorException - Invalid path - laravel

I have my laravel website on a shared hosting.
After syncing the remote files with PhpStorm and run composer update i receive
"file_put_contents(C:\xampp\public_html\mydomain.com\storage\framework\views/558703d19442567af4246eafaed8012c37ed6c26.php): failed to open stream: No such file or directory
Version of laravel is 5.6.22
Any ideea how to fix this ?

Related

I uploaded a laravel 8 on my subdomain and i received error

i uploaded my laravel 8 project to my subdomain and i received this error
file_put_contents(E:\Projects\API\api-worforce\storage\framework/sessions/UkfntojT5Qzf99w9TR6Jvxs6iOBKlJ3TvLB6clTF): failed to open stream: No such file or directory
its still using local directory
Some of Laravel files are so-called cached. Therefore, the cache must be removed to fix this error as well.
How to fix the problem(two methods):
Method 1: Just go to the following path of your project in Laravel host and rename the config.php file to config_old.php or delete this file completely:
bootstrap / cache
Method 2: If the first method is not effective in solving the problem, run the following command this time:
php artisan config:clear
php artisan cache:clear
php artisan congif:cache

Laravel 6.0 error in writing session ias failed to open file stream in windows

i am doing a project in Laravel 6.0.0. I'm facing the error given below.
file_put_contents(C:\xampp\htdocs\lsapp\storage\framework/sessions/): failed to open stream: No such file or directory.
Already deleted the config.php file from bootstrap/cache/config.php.But its not working. Is there any workaround?
Delete the file in app/bootstrap/cache/config.php then run artisan command to clear the configs php artisan config:cache. it will clear the cached configurations. then try opening your application( try with incognito mode also). If it's still not working then check the laravel project is setup correctly. Run composer install once.

Why Deployer say storage:link failed when i start using public disk in Laravel?

i use php deployer tool (Deployer.org) for deploy my app on Laravel 5.5.
When i start use public disk with symlynk storage -> storage/app/public,
i have got error on deployng:
In Client.php line 96:
The command "/usr/bin/php /var/www/example.com/releases/1/artisan
storage:link" failed
Exit Code: 1 (General error)
Host Name: production
================
In Filesystem.php line 228:
symlink(): No such file or directory
I saw in directy on host /releases/1/public broken symlink to my local MacOs folder storage -> /Users/user1/Code/project/storage/app/public
I repeat new installation from scratch Laravel project&Deployer but still gor error.
Fixed it. I accidentally pushed up the
Public/Storage folder to git. (

Upload a Laravel 4.2 project on bytehost

I have uploaded my Laravel 4.2 project (using Filezilla) which is stored in folder name main-Laravel into the htdocs folder on bytehost.when I tried accessing it like this http://bcms.byethost8.com/main-laravel/public/, I an error saying Fatal error: require(): Failed opening required '/home/vol12_4/byethost8.com/b8_16140412/htdocs/main-laravel/bootstrap/../../main-laravel/vendor/autoload.php' (include_path='.:/usr/share/pear/') in /home/vol12_4/byethost8.com/b8_16140412/htdocs/main-laravel/bootstrap/autoload.php on line 17. I did not have this problem when working on my local machine, so what can I do to resolve this problem and thanks in advance.
You will need to do additional setup to get Laravel working on a shared hosting.
Laravel needs composer to get the autoloading right and few other requirements to be run (such as higher PHP version, several PHP extensions & so on).
Here you can find more info:
http://laravel-tricks.com/tricks/setup-laravel-4-in-shared-hosting-with-securing-laravel-base-file

Error while creating migrations table with laravel: "No such file or directory"

When trying to run php artisan migrate:make create_users_table I get the following output in Windows CMD:
{"error":{"type":"ErrorException","message":"require(C:\...\\localhost
\\sites\\makeitsnappy\\app\/filters.php): failed to open stream: No such file or
directory","file":"C:\\...\localhost\\sites\\makeitsnappy\\app\\start
\\global.php","line":83}}
I'm running Windows 8. Laravel 4 and installed Composer, also ran composer update in the project folder. Same error happens.
Edit: Loading the application webpage, I get:
require(C:\.../localhost\sites\makeitsnappy\app/filters.php): failed to open stream: No such file or directory
Also, there is no filter.php file.
How can I fix this problem?
Since Laravel4 the routes and filters are in two different files: routes.php and filters.php not like in Laravel3 where both lay in the same file.
Check if there is a filter.php file in you app/ folder.
The error occurs because the autoloader tries to load this file on application's startup to get the filters for the called route or global filters.
Running composer update won't help here because you only get the framework and it's dependencies via composer and it doesn't update your app/ folder.
did you do composer install? It downloads some important files. I think you missed this command!
composer install

Resources