Re: PHP Notice: Undefined variable: _SESSION in
Reply #1 – March 28, 2016, 08:47:34 am
That file only exists on the 1.1 development branch. I think this would imply that sources/Session.php wasn't loaded or something, because without session_start() there's no $_SESSION. Are you sure you have the very latest files and all that?
Re: PHP Notice: Undefined variable: _SESSION in
Reply #2 – March 28, 2016, 10:12:18 am
emanuele
Global Moderator
It's the scheduled tasks controller: it's initialized and run before the session is loaded and when the Action_Controller tries to use $_SESSION, it doesn't exit. At the moment I'm not sure what the best action is. I would avoid load the session just for scheduled tasks, but seems the less messed-up for the code.
Re: PHP Notice: Undefined variable: _SESSION in
Reply #3 – March 28, 2016, 01:44:55 pm
Ok thanks for reply how to fix that. German OK danke für die Antwort wie kann ich das Problem lösen.
Re: PHP Notice: Undefined variable: _SESSION in
Reply #4 – March 28, 2016, 02:45:41 pm
I made a quick and dirty adjustment that only copied that array in httpreq if and only if session was actually started. This stopped the error cleanly but I was never sure if that was appropriate so I didn't embed it in my pull requests.
Re: PHP Notice: Undefined variable: _SESSION in
Reply #6 – March 28, 2016, 03:00:56 pm
Okay what is the stable download of elkarte? 1.0.6 ore 1.0.7
Re: PHP Notice: Undefined variable: _SESSION in
Reply #7 – March 28, 2016, 03:12:27 pm
Oh sorry also the stable version is 1.0? First I downloaded development version that's my failure. I have yet download the version from the portal 1.0.6 And tray again with a fresh install.
Re: PHP Notice: Undefined variable: _SESSION in
Reply #8 – March 28, 2016, 04:35:42 pm
I have found the problem! When I mark the checkbox for Search engine friendly URLs Apache/Lighttpd only This feature will work on your server. Than come this failure. My server can this option. Only the script will not work when I check this option.
Re: PHP Notice: Undefined variable: _SESSION in
Reply #13 – March 31, 2016, 02:19:26 am
emanuele
Global Moderator
And it starts again with me not receiving github notifications... >_>