InvalidArgumentException with 'session.save_path' within Zend Framework 2

1.5k Views Asked by At

I tried to load this Bookingsystem (https://github.com/tkrebs/ep3-bs) on a websapce of bplaced.net.

After setup (no problems here) I tried to load the index.php and got a uncaught exception 'Zend\Session\Exception\InvalidArgumentException' with message ''session.save_path' is not a valid sessions-related ini setting...

I made an issue on github https://github.com/tkrebs/ep3-bs/issues/10 where it is explained.

It seems that the error is whithin the Zend-Framework 2 (see issue)

Has someone a solution to this problem?

--- EDIT: Solution ----

It has been revealed that the hoster don't allow to change session.save_path

So leaving the default for session.save_path solved the problem (see issue)

1

There are 1 best solutions below

3
On

The last comment on the issue you linked to actually says it's likely a web server configuration problem, not a ZF2 issue. The error you're getting from ZF is only triggered when ini_set() fails which basically confirms this.

If I had to guess I'd say your session folder is not writeable - you might want to check that you did step 2 of the installation instructions for this app: https://github.com/tkrebs/ep3-bs/blob/master/data/docs/install.txt