2013-03-06 66 views
8

Symfony2中出现这个奇怪的错误。在本地主机的一切工作正常,但是当我尝试在我的服务器我得到这个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装载机,但我做了他的文件进行更改

回答

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的修复。

+0

在一个更简单的笔记中,我总是怀疑我的一些代码可能是非确定性的,所以确认这件事很有趣。 – inanimatt 2013-03-07 16:16:31

+1

谢谢@inanimatt,在那里保存了我们的培根! – 2013-03-11 18:02:41

+0

谢谢@inanimatt – 2013-03-20 15:53:52