This is a permissions issue. Make sure that the web server has write access to the "storage" directory.
meta/storage/services.json error
Hi there,
i am building my second application in laravel and recently i have encountered one error which i can not solve, no matter how hard i try.
I coded my application on my localhost and when i thought everything was done, i copied the whole directory to my shared hosting, i changed the paths as needed and everything was fine until suddently i got this error:
file_get_contents(.../app/storage/meta/services.json): failed to open stream. No such file or directory.
I checked whether the file existed on ftp, and it was not, so i copied it there from my localhost again (i copied entire directory before). However, it did not help and from time to time i get this error and i have no idea what to do with it.
Could you somehow help me to solve the problem?
Thank you very much :)
I mailed my provider to change the permissions of the folder, however i got the error once again. .json file is not there anymore after the error...
UPDATE - i've got an idea - somehow i created cron - php artisan-optimize, which deletes the exact file, we were talking about - that php artisan optimize was running each minute, is it possible that when i refreshed exactly during server was performing the comand, laravel threw an error?
Please or to participate in this conversation.