• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Illegal offset type in unset (Session.php - Line 727)

#1
Question 
Got a lot of warnings in my log with:
PHP Code:
SeverityWarning --> Illegal offset type in unset C:\var\data\localweb\gv\system\libraries\Session\Session.php 727 
What is it?
Reply

#2
What do you try to unset from session ?
The Key must be string or array of strings. Its most likely that you have send either NULL or other type which can't be unset ..
Best VPS Hosting : Digital Ocean
Reply

#3
(04-03-2015, 09:55 AM)sv3tli0 Wrote: What do you try to unset from session ?
The Key must be string or array of strings. Its most likely that you have send either NULL or other type which can't be unset ..

That's right.
Doing a $this->session->unset_userdata($data); where $data array contains keys that doesn't exist, throw this warning.

Thanks a lot! Big Grin
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.