jupitern / slim3-skeleton

Slim3 skeleton (http + cli) with some add-ons out of the box
44 stars 12 forks source link

two errors to report #5

Closed persianphilosopher closed 7 years ago

persianphilosopher commented 7 years ago

I ran into two errors on a fresh install and reinstall. Each time I get the following:

Type: ErrorException
Code: 2
Message: session_start(): open(/var/www/skeleton/storage/sessions//sess_0sle4k0p8u692nmr122oijm481, O_RDWR) failed: No such file or directory (2)
File: /var/www/skel/app/Middleware/Session.php
Line: 27

The storage has a chmod 777 so I am not sure what to do.

Looking into the storage folder and the logs, it pointed out that what appears to be a typo (I think) with an extra period after views.

            'mail'  => RESOURCES_PATH."views.".DS."mail",

I am not sure how I could get the install process wrong and would appreciate any suggestions.

jupitern commented 7 years ago

Hi, The session folder was not being created. I added the code to: https://github.com/jupitern/slim3-skeleton/blob/master/app/Middleware/Session.php

Dont forget to give 0777 permissions to storage folder.

The typo was corrected in a previous release.