简体   繁体   English

symfony2“用于错误序列化用户实体的错误数据格式”(FOS UserBundle)

[英]symfony2 “Erroneous data format for unserializing user entity” (FOS UserBundle)

I develop in symfony2 but am no sym2 wiz, brought in help to set everything up with the framework, and now it's throwing me a sudden error message I can't resolve. 我使用symfony2开发,但不是sym2 wiz,带来了帮助来设置框架的所有内容,现在这让我突然收到一条我无法解决的错误消息。

I have two development environments, and one that I hadn't been using for a couple of months suddenly hit me with this error message upon trying to log in to my sym2 webapp locally: 我有两个开发环境,而一个我几个月没有使用的开发环境在尝试本地登录我的sym2 webapp时突然出现此错误消息:

"Erroneous data format for unserializing [user entity]" “用于错误地序列化[用户实体]的错误数据格式”

I have not changed the code for logging in, I have not updated my vendors, and I have not changed any settings in MAMP (could it have updated itself though and done that?) 我尚未更改用于登录的代码,尚未更新供应商,也未更改MAMP中的任何设置(虽然它本身已经更新并完成了吗?)

I don't understand what is going on. 我不明白发生了什么。

I can google the error and I am suggested to hack one of the vendor source files. 我可以在Google上搜索该错误,并建议我破解供应商的源文件之一。 I would not know exactly what I would have done, so I am not comfortable with doing that just following some step-by-step instruction. 我不知道该怎么做,因此仅按照一些逐步说明进行操作,我就感到不舒服。

The application is running on symfony 2.3.9 and MAMP is set to PHP 5.6.27, the other option is 7.0.12 which produces the same error. 该应用程序在symfony 2.3.9上运行,并且MAMP设置为PHP 5.6.27,另一个选项是7.0.12,这会产生相同的错误。

Ok, I changed my doctrine version to 好的,我将我的学说版本更改为

    "doctrine/orm": "~2.2,>=2.2.3,<2.5",

and it resolved the issue. 它解决了这个问题。 Now I don't know what other issues THAT might have introduced seeing sym2 isn't always too backwards compatible, but fingers crossed =) 现在我不知道看到sym2并不总是向后兼容,但是手指交叉=)可能带来了什么其他问题?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 symfony2:生产服务器上的ContextErrorException“用于反序列化的错误数据格式” - symfony2: ContextErrorException on production server “Erroneous data format for unserializing” Laravel 错误:用于反序列化“Symfony\Component\Routing\CompiledRoute”的错误数据格式 - Laravel Error: Erroneous data format for unserializing 'Symfony\Component\Routing\CompiledRoute' Symfony2安全性 - 用户“Ibw \\ UserBundle \\ Entity \\ User”没有用户提供程序 - Symfony2 security - There is no user provider for user “Ibw\UserBundle\Entity\User” mb_convert_case未定义函数(Symfony2 FOS / UserBundle) - mb_convert_case undefined function (Symfony2 FOS/UserBundle) Symfony2:fos_user_bundle与实体一起嵌入注册表 - Symfony2: fos_user_bundle embedding registration form with entity Symfony FOSUserBundle无法实例化抽象类FOS \\ UserBundle \\ Model \\ User - Symfony FOSUserBundle Cannot instantiate abstract class FOS\UserBundle\Model\User FOS UserBundle FormType,实体,RegistrationFormType - FOS UserBundle FormType, Entity, RegistrationFormType 对symfony2和fos用户进行多重检查 - Mutltiple check on symfony2 and fos User symfony2 fos用户表单标签 - symfony2 fos user form labels Symfony FOS UserBundle:覆盖错误登录页面 - Symfony FOS UserBundle: override error landing page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM