用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2588|回复: 4
收起左侧

[HELP] 请教一个 unserialize() 相关的问题.非常感谢

[复制链接]
发表于 2012-8-9 16:42:03 | 显示全部楼层 |阅读模式
系统打开首页的时候,有点不正常,总是要打两次,第一次是错误的,第二次就好了,我看了日志,其中有一个 Severity: Notice 如下,看了以前的LOG,是没有这个情况的,请大家指点一下,这个是什么错?指向的系统文件,没有手动改过,应该不会有错.谢谢了.

DEBUG - 2012-08-09 16:40:15 --> Config Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Hooks Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Utf8 Class Initialized
DEBUG - 2012-08-09 16:40:15 --> UTF-8 Support Enabled
DEBUG - 2012-08-09 16:40:15 --> URI Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Router Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Output Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Security Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Input Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-09 16:40:15 --> Language Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Loader Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Helper loaded: url_helper
DEBUG - 2012-08-09 16:40:15 --> Helper loaded: form_helper
DEBUG - 2012-08-09 16:40:15 --> Database Driver Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Session Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Helper loaded: string_helper
ERROR - 2012-08-09 16:40:15 --> Severity: Notice  --> unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 4432 of 4436 bytes D:\wwwroot\wwwewike\wwwroot\system\libraries\Session.php 724
DEBUG - 2012-08-09 16:40:15 --> Session routines successfully run
DEBUG - 2012-08-09 16:40:15 --> Controller Class Initialized

 楼主| 发表于 2012-8-12 13:01:45 | 显示全部楼层
悲哀呀.....竟然连一个回复都没有.....这么多天了......
发表于 2012-8-12 15:37:48 | 显示全部楼层
ccm417 发表于 2012-8-12 13:01
悲哀呀.....竟然连一个回复都没有.....这么多天了......

这个你得把参数值放出来才能知道为什么反序列化出错,你这样发,大家也不好给你解答,呵呵
发表于 2012-8-12 17:24:59 | 显示全部楼层
unserialize的时候遇到某些字符会出错,例如serialize一个类,类中带有private或protected的变量是,序列化的字符串中会出现空占位符,你再反序列化这个值的话就这样咧。
想要知道问题答案,必须把问题描述清楚,正如楼上说的。
 楼主| 发表于 2012-8-15 20:07:41 | 显示全部楼层
非常抱歉,前面讲的太过激了,因为页面只是打开主页,基本上什么操作都没做,所以当时没有细查,给出了不完整的信息.
今天log_message了出来,发现是在session类载入时反序列化出错,
好像是因为这些session中含有中文字符,所以出了问题,只得再次请教大家,应该如何解决? 谢谢

本版积分规则