The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maybe a bug. Maybe just an FYI.
#1
The setup and install of UserSpice went just fine. However, when I tried to login I got
<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
</pre>

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);
</pre>

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
</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
Code:
session_start();
<pre>
Code:
session_save_path('/real/path/to/phpsessionsdir');
</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.
  Reply


Messages In This Thread
Maybe a bug. Maybe just an FYI. - by graowulf - 01-31-2018, 01:00 AM
Maybe a bug. Maybe just an FYI. - by mudmin - 01-31-2018, 01:09 AM
Maybe a bug. Maybe just an FYI. - by graowulf - 02-01-2018, 03:34 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)