复杂类型“服务":内容模型不是确定性的 [英] Complex type 'service': The content model is not determinist

查看:29
本文介绍了复杂类型“服务":内容模型不是确定性的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm getting this strange error with Symfony2. In localhost everything works fine but when I try it in my server I get this PHP error:

[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,但我没有对他的文件进行任何更改

It seems to be something about XMLFile Loader, but I made no changes in his file

推荐答案

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

This is a bug in libxml2 - are you using RHEL or CentOS? Check out https://rhn.redhat.com/errata/RHBA-2013-0591.html and if you can't wait for the update to be released through yum update, then you can downgrade to an earlier version:

yum 降级 libxml2-2.6.26-2.1.21.el5_9.1

非常感谢 @denkiryokuhatsuden 在这个 GitHub 问题上的修复.

Huge thanks to @denkiryokuhatsuden on this GitHub issue for the fix.

这篇关于复杂类型“服务":内容模型不是确定性的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆