Are you returning $session data in your extension?
Hey there,
Troubleshooting an issue with another extension which also uses the session_end hook, and the developer said to check with other extensions using this hook, to make sure that they're returning the session data after using it.
The only two extensions I have that use this hook are "Low Vars" and "Solspace Tags". Removed "Tags" and the problem persists.
Had a quick look at your extension code, and can't see you returning the session data, but I may be missing it.
Any idea?
More info:
- the addon I'm trying to use is Snippet Sync, but it fails to access the Session data. It uses the session_end hook, but is set to priority '8'
- I'm running this on 2.1.5b, which could easily be the culprate
Anyhoo, if it's something obvious to you, please give me a shout. Tx!
Ira
Replies
Low 26 May 2011 12:40
Hi Ira,
I did get another mention of this, but I failed to reproduce the problem. I'll need to see exactly what's going on...
To be complete, what's your PHP version?
ira42 26 May 2011 12:45
The server's running PHP Version 5.2.17.
Let me know if you need any other info. Tx
Low 26 May 2011 13:01
Okay, so if you open ext.low_variables.php, then create a new line on #282 (the end of the sessions_end() method) and add this line of code:
return $SESS;
...then it works as expected?
ira42 26 May 2011 13:19
Hey Low,
Actually, I moved that two lines up, so that it's within the function, instead of after it, before the closing }.
The errors went away though! Snippet Sync still isn't working for me, but that's a whole other ballgame (and support forum).
Cheers,
Ira
Low 26 May 2011 13:28
I thought I wrestled enough with that $SESS thing. Apparently, I still missed something. Keep it in for now, I'll incorporate a fix in the next release.