2013-03-06 77 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