Laravel transfer error

I have a strange error when I dine on any migrate command (reset refresh rollback, etc.), the error is:

[ErrorException] session_start(): open({APACHEPATH}/sessions\sess_0pb5924dau2oehuo4h32lqnem3 , O_RDWR) failed: No such file or directory (2) PHP Fatal error: Uncaught exception 'ErrorException' with message 'Unknown: ope n({APACHEPATH}/sessions\sess_0pb5924dau2oehuo4h32lqnem3, O_RDWR) failed: No such file or directory (2)' in Unknown:0 Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handle Error(2, 'Unknown: open({...', 'Unknown', 0, Array) #1 {main} thrown in Unknown on line 0 PHP Stack trace: PHP 1. {main}() C:\UwAmp\www\project\artisan:0 

Session ID

sess_0pb5924dau2oehuo4h32lqnem3

different are different, so I went to the apache session folder (C: \ UwAmp \ bin \ apache \ sessions) and this session identifier was not. Should I mention that this problem occurred while installing the Tracker package , anyway during the process that I can no longer transfer, any ideas? Thanks.

+5
source share
1 answer

I definitely think your php.ini session.save_path not configured correctly, especially since I see a slash "/" in the directory path to save sessions inside your error message.

Try the following:

  • Create a new file in your Laravel installation called info.php with just a call to phpinfo() .

  • Go to info.php. In the "Downloaded configuration file" section, find the path to the downloaded php.ini file and open it in your favorite text editor.

  • Add / change the following line: session.save_path = C:\wamp\temp\ - assuming that this is the correct path to the temp folder, and it really exists on your system. Do a little research to determine where this directory is and configure it accordingly, and make sure that "\" is used in the path, not "/".
  • Restart WAMP and try the migration again.
+1
source

Source: https://habr.com/ru/post/1274276/


All Articles