P
P
photosho2017-03-01 12:06:41
Laravel
photosho, 2017-03-01 12:06:41

Why is there no access to the Sessions folder?

Hello. When loading the page, the following error occurs:

file_put_contents(\storage\framework/sessions/FKEnsH7AuXW7RBv8GUih49cG2Nx6c6gx0CU7F7al): failed to open stream: No such file or directory

I work on OpenServer, Laravel 5.4. Apparently, the problem is that it is not possible to create a file in the "sessions" directory. I'm trying to remove the "read-only" attribute using Windows, but it does not want to be removed (the program I'm removing is running as administrator). What could be the problem and how to solve it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
photosho, 2017-03-02
@photosho

Problem solved. It turned out that the site was first developed on one computer, and then it was copied to another, and for some reason the path to the old OpenServer folder was displayed in the "/bootstrap/cache/config.php" file: "D:\OpenServer" (in which the site was originally created), and for this reason the file you were looking for could not be found. I don't know what this file is, but deleting it solved the problem.

R
Rikcon, 2017-03-01
@Rikcon

your problem is not with the rights, but with the fact that No such file or directory
There are no folders on this path.
Pay attention to the slashes \storage\framework/sessions/
A mixture of Linux and Windows, dig in this direction.
Plus, hosting on Windows, even for development, is already considered bad taste, raise Homestead to Vagrant and that's it, there will be no problems.
In addition, Windows is not case-sensitive, that is, the SomeClass and SoMeClaSS classes are the same for it, but not for Linux, when you upload your site to a server with a linkus, such problems may arise.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question