01-31-2018, 01:00 AM
The setup and install of UserSpice went just fine. However, when I tried to login I got
<pre></pre>
Being the attentive fellow that I am, I followed the instructions and uncommented the following lines in login.php
<pre></pre>
That revealed the following error
<pre></pre>
Which I though odd since my sessions dir isn't '/var/php_sessions'. To correct the error I added the following line to init.php, right before<pre></pre>
Now everything works great. I'm hesitant to put out a pull request to make this configurable as the underling issue is most likely with my host's configuration. Still, I wanted to document the problem and one approach to fixing it.
<pre>
Code:
There was an error with your form. Please go back and try again. Please note that submitting the form by refreshing the page will cause an error.
If this continues to happen, please contact the administrator.
Go Back
Being the attentive fellow that I am, I followed the instructions and uncommented the following lines in login.php
<pre>
Code:
error_reporting(E_ALL);
ini_set('display_errors', 1);
That revealed the following error
<pre>
Code:
Warning: session_start(): open(/var/php_sessions/sess_...., O_RDWR) failed: No such file or directory (2) in /.../eventspice/users/init.php on line 4
Which I though odd since my sessions dir isn't '/var/php_sessions'. To correct the error I added the following line to init.php, right before
Code:
session_start();
Code:
session_save_path('/real/path/to/phpsessionsdir');
Now everything works great. I'm hesitant to put out a pull request to make this configurable as the underling issue is most likely with my host's configuration. Still, I wanted to document the problem and one approach to fixing it.