Error file_put_contents() failed to open stream: No such file or directory

Asked

Viewed 3,037 times

-2

Good afternoon!

I believe I deleted one of the folders incorrectly STORAGE and now my project is with the error to follow

file_put_contents(/Users/Claudio/Desktop/Laravel/project/Storage/framework/Sessions/cQfSldUOUGFEcnL3Z8INxCExQQW3s13Nb2kp5AT6): failed to open stream: No such file or directory

I already searched the Internet and they told me to clear the cache config.php of bootstrap/cache/ remove the file etc.

Nothing seems to be working. Has anyone ever made this mistake or knows how to fix that not by installing a new project?

Grateful!

2 answers

2


I was able to fix the project by downloading the folder from my repository and doing everything I had searched before

I first downloaded the briefcase and put it in place of the storage who had deleted.

rode a php artisan config:cache and applied chmod -R 775 storage In the root and public Storage

I can’t say for sure what it was that solved, I know that everything together solved.

1

Re-create the folders. At the root of your project, create the structure:

storage/  
storage/app
storage/framework/cache  
storage/framework/session
storage/framework/views
storage/framework/testing
storage/logs
  • I did the process but unfortunately it didn’t work friend, there is the problem.

  • There’s a trick you might solve. once I did this and had to copy one of the files inside the folder: /Users/Claudio/Desktop/Laravel/project/Storage/framework/Sessions/ and grab the file q is missing: cQfSldUOUGFEcnL3Z8INxCExQQW3s13Nb2kp5AT6 and paste in the name of what I copied and ran.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.