Cache / file.php / unserialize() error

2010-06-02 Thread Brent
Hello, I installed CakePHP 1.3.1 and a CMS app named Croogo on my Solaris server. Loading pages produces errors like this one: pre Notice (8): unserialize() [function.unserialize]: Error at offset 5 of 602 bytes [CORE/cake/libs/cache/file.php, line 176] Code | Context $key=

Re: Cache / file.php / unserialize() error

2010-06-02 Thread Graham Weldon
This should be fixed in #769 http://cakephp.lighthouseapp.com/projects/42648/tickets/769 We're working towards packaging another release for this as soon as possible. Cheers, Graham Weldon (AKA: Predominant) On Wed, Jun 2, 2010 at 5:38 AM, Brent brentkear...@gmail.com wrote: Hello, I

Re: unserialize error

2007-04-12 Thread jyrgen
hey, session data are serialized. i failed with php command unserialize, because of the | signs, which apparently separate subarrays. i found no other way of getting the data out of the session. see this example: $account_in_use = false; $temp = mysql_query('SELECT * FROM sessions');

Re: unserialize error

2007-04-11 Thread majna
gc works fine now, How to extract some value from $session['Mysession']['data'] like User.username ? I would like to find all logged users (by username). () without stuff like: $a = preg_split( /(\w+)\|/, $row['data'], -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); Is there another way?

unserialize error

2007-04-07 Thread jyrgen
$sessions = $this-Session-findAll(); foreach($sessions as $session){ $d=$session['Session']['data']; pr(unserialize($d)); } i get this error: Notice: unserialize(): Error at offset 0 of 117 bytes in /var/www/cake/ app/controllers/users_controller.php on line 88 with 117 being

Re: unserialize error

2007-04-07 Thread majna
){ $d=$session['Session']['data']; pr(unserialize($d)); } i get this error: Notice: unserialize(): Error at offset 0 of 117 bytes in /var/www/cake/ app/controllers/users_controller.php on line 88 with 117 being the last position } of the serialized string Config

Re: unserialize error

2007-04-07 Thread jyrgen
oops. i just noticed that the Session model interferes with the Session object. therefore i renamed the Session model into mysession.php class Mysession extends AppModel{ var $name = 'Mysession'; var $useTable = 'sessions'; } j.

Re: unserialize error

2007-04-07 Thread jyrgen
valid sessions on my system look like this Config|a:3:{s:4:rand;i:1735136669;s:4:time;i:1175943092;s: 9:userAgent;s:32:cc98eaffc23c634e0efd75ab9e36e810;} User|a:5:{s:2:id;s:1:6;s:9:author_id;s:1:5;s: 12:publisher_id;s:1:0;s:9:logged_in;i:1;s:4:type;s:1:A;} (two arrays) i'm asking myself if the

Re: unserialize error

2007-04-07 Thread jyrgen
finally i found a way to implement a custom session garbage collection. luckily there is the expires field which can be evaluated instead of the serialized value in the data array: // custom session garbage collection $sessions = $this-Mysession-findAll(); foreach($sessions as $session){