Mou*_*heg 0 symfony invalidargumentexception symfony-2.3
我在使用symfony 2.3时遇到了一些麻烦,我希望你能帮助我.
我真的不知道我做错了什么,但突然间我得到了这些错误,现在我无法摆脱它们.
错误1:
InvalidArgumentException: [WARNING 1549] failed to load external entity "file:///C:/wamp/www/Symfony/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" (in n/a - line 0, column 0)
[WARNING 3084] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'file:///C:/wamp/www/Symfony/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd'. Skipping the import. (in in_memory_buffer - line 8, column 0)
[ERROR 1845] Element '{http://symfony.com/schema/dic/services}container': No matching global declaration available for the validation root. (in file:///C:/wamp/www/Symfony/web/ - line 5, column 0)
Run Code Online (Sandbox Code Playgroud)
误差2:
InvalidArgumentException: Unable to parse file "C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\DependencyInjection/../Resources/config\web.xml".
Run Code Online (Sandbox Code Playgroud)
我试图删除我认为导致这些错误的东西(我也尝试清理缓存),但没有一个工作.
我猜我在twig或xlf文件中一定有问题,因为这些错误出现在我修改了那些文件之后,却无法找出我在那些文件中做错了什么(对我来说,我所做的一切都是看起来很好)
如果你们需要它们我可以发布文件.
编辑:
树枝文件:
{% extends '::base.html.twig' %}
{% block title %}{{ 'myAccount'|trans }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link href="{{ asset('bundles/account/css/myProfile.css') }}" rel="stylesheet">
{% endblock %}
{% block content %}
<div class="profile-hor-nav">
<ul class="nav nav-pills profile-menu-font">
<li class="active profile-hor-nav-element">
<a href="#">{{ 'gameInfo'|trans }}</a>
</li>
<li class="profile-hor-nav-element">
<a href="#">{{ 'accountInfo'|trans }}</a>
</li>
</ul>
</div>
<div class="profile-ver-nav">
<ul class="nav nav-pills nav-stacked profile-menu-font">
<li class="active profile-ver-nav-element">
<a href="#">{{ 'matchHistory'|trans }}</a>
</li>
<li class="profile-ver-nav-element">
<a href="#">{{ 'statistics'|trans }}</a>
</li>
<li class="profile-ver-nav-element">
<a href="#">{{ 'charObj'|trans }}</a>
</li>
</ul>
</div>
{% endblock %}
Run Code Online (Sandbox Code Playgroud)
en.xlf:
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>registrationMessage</source>
<target>Enroll and fight for glory on the battlefields.</target>
</trans-unit>
<trans-unit id="2">
<source>registrationSuccessMessage</source>
<target>You will receive an email to finish your registration</target>
</trans-unit>
<trans-unit id="3">
<source>gameInfo</source>
<target>Game information</target>
</trans-unit>
<trans-unit id="4">
<source>accountInfo</source>
<target>Account information</target>
</trans-unit>
<trans-unit id="5">
<source>matchHistory</source>
<target>Match history</target>
</trans-unit>
<trans-unit id="6">
<source>statistics</source>
<target>Statistics</target>
</trans-unit>
<trans-unit id="7">
<source>charObj</source>
<target>Characters and Objects</target>
</trans-unit>
</body>
</file>
</xliff>
Run Code Online (Sandbox Code Playgroud)
fr.xlf:
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>registrationMessage</source>
<target>Inscrivez-vous et combattez pour la gloire sur les champs de bataille.</target>
</trans-unit>
<trans-unit id="2">
<source>registrationSuccessMessage</source>
<target>Vous allez recevoir un email pour completer votre inscription</target>
</trans-unit>
<trans-unit id="3">
<source>gameInfo</source>
<target>Informations en jeu</target>
</trans-unit>
<trans-unit id="4">
<source>accountInfo</source>
<target>Informations du compte</target>
</trans-unit>
<trans-unit id="5">
<source>matchHistory</source>
<target>Historique des parties</target>
</trans-unit>
<trans-unit id="6">
<source>statistics</source>
<target>Statistiques</target>
</trans-unit>
<trans-unit id="7">
<source>charObj</source>
<target>Personnages et Objets</target>
</trans-unit>
</body>
</file>
</xliff>
Run Code Online (Sandbox Code Playgroud)
编辑2:
所以经过检查,我实际上有symfony版本2.4.0 BETA1
我正在使用apache 2.4.4,php 5.4.16和mysql 5.6.12运行wampserver
希望你能帮我,
先谢谢你的帮助.
| 归档时间: |
|
| 查看次数: |
4641 次 |
| 最近记录: |