复杂类型“服务”:内容模型不是决定论者

时间:2013-03-06 23:10:48

标签: symfony

我在使用Symfony2时遇到了这个奇怪的错误。在localhost中一切正常,但是当我在服务器中尝试它时,我得到了这个PHP错误:

[06-Mar-2013 22:04:50 UTC] PHP Fatal error:  Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message  '[ERROR 3070] complex type 'service': The content model is not determinist. (in file:////home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd - line 75, column 0)
[ERROR 3070] complex type 'argument': The content model is not determinist. (in file:////home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd - line 131, column 0)
[ERROR 3070] complex type 'call': The content model is not determinist. (in file:////home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd - line 144, column 0)' in /home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:370
Stack trace:
#0 in /home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 370
[06-Mar-2013 22:13:36 UTC] PHP Fatal error:  Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message '[ERROR 3070] complex type 'service': The content model is not determinist. (in file:////home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd - line 75, column 0)
[ERROR 3070] complex type 'argument': The content model is not determinist. (in file:////home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd - line 131, column 0)
[ERROR 3070] complex type 'call': The content model is not determinist. (in file:////home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd - line 144, column 0)' in /home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:370
Stack trace:
#0 in /home/neuronas/public_html/miramos.tv/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 370

它似乎与XMLFile Loader有关,但我的文件中没有做任何更改

1 个答案:

答案 0 :(得分:15)

这是libxml2中的错误 - 您使用的是RHEL还是CentOS?查看https://rhn.redhat.com/errata/RHBA-2013-0591.html,如果您不能等待通过yum update发布更新,那么您可以降级到早期版本:

yum downgrade libxml2-2.6.26-2.1.21.el5_9.1

非常感谢@denkiryokuhatsuden对此GitHub issue的修复。