php - YShout 5: Function Unserialize Error -


bought yshout , have been running on webserver time now. support isn't answering emails in long time. keep getting unserialize errors kill chat box.

error: there appears problem: unserialize() error @ offset 65537 of 86434 bytes. file: filestorage.class.php line 36.

here function line 36 in it.

function load() {     if (($contents = $this->read($this->path)) == null)     return $this->resetarray();     return unserialize($contents);///////////line 36 } 

here seems line in log file generating error message, 65537 seems located right @ "a" in "uia:2:" in string.

i:251;a:6:{s:8:"nickname";s:7:"testuser";s:7:"message";s:30:"when he's online ask him";s:9:"timestamp";d:1373857811.6403610706329345703125;s:5:"admin";b:0;s:3:"uia:2:{s:4:"info";a:1:{s:15:"latesttimestamp";i:-1;}s:5:"posts";a:0:{}}ip";s:12:"76.174.54.75";}} 

not sure how yshout works, i'm getting error more once day now. have delete log file, yshout creates new log scratch , well. until delete log causing problems no 1 can use chat window.

ideal solution fix , figure out whats going on. secondary solution rename log file causing error. cause yshout create new log file use , have history of log contained error message.

i had same error message appearing when messing log file. if add or remove characters message you'll end error. altering characters won't cause trouble. means yshout storing message lengths in log file.

look @ line:

s:30:"when he's online ask him"; 

's' states 30 characters being used, message 24 characters long. try changing 24 , problem should fixed.


Comments