0
迷惑メールを使用して既製の開発環境をインストールしようとしています。最後のコンポーネントはsymfony2です。コンソールがエラーを投げています(下記参照)。修正が何であるかに関する任意のアイデア?私は幸運でそれらをグーグルで試してみました。どんな洞察にも感謝します!Symfony2のインストールに失敗しました - エラー1866(属性 'path'は許可されていません)/ FileLoaderLoadException(リソースをインポートできません)
==> default:
==> default:
==> default: [Symfony\Component\Config\Exception\FileLoaderLoadException]
==> default: Cannot import resource "/srv/wealthbot/vendor/friendsofsymfony/jsrouting-bundle/Resources/config/routing/routing.xml" from "/srv/wealthbot/app/config/routing.yml".
==> default:
==> default:
==> default:
==> default: [InvalidArgumentException]
==> default: [ERROR 1866] Element '{http://symfony.com/schema/routing}route', attribute 'path': The attribute 'path' is not allowed. (in /srv/wealthbot/ - line 6, column 0)
==> default:
==> default:
==> default: cache:warmup [--no-optional-warmers]
==> default: Warming up the cache for the prod environment with debug false
==> default:
/srv/wealthbot/vendor/friendsofsymfony/jsrouting-bundle/Resources/config/routing/routing.xmlからrouting.xml:
は、ログをインストール
<?xml version="1.0" encoding="UTF-8" ?>
<routes xmlns="http://symfony.com/schema/routing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
<route id="fos_js_routing_js" path="/js/routing.{_format}">
<default key="_controller">fos_js_routing.controller:indexAction</default>
<default key="_format">js</default>
<requirement key="_format">js|json</requirement>
</route>
</routes>
/SRV/wealthbot /アプリ/ configに/からのrouting.yml:
# Internal routing configuration to handle ESI
#_internal:
# resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
# prefix: /_internal
fos_user_security:
resource: "@FOSUserBundle/Resources/config/routing/security.xml"
fos_user_profile:
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
prefix: /profile
fos_user_register:
resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
prefix: /register
fos_user_resetting:
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
prefix: /resetting
fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /profile
fos_user_group:
resource: "@FOSUserBundle/Resources/config/routing/group.xml"
prefix: /group
fos_js_routing:
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
NelmioApiDocBundle:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
prefix: /api/doc
どのSymfonyのバージョンを使用しますか? – xabbuh
これは、メインcomposer.jsonで「require」と指定されたコンポーネントとバージョンのセットです。インストールスクリプトは、composer install --prefer-sourceを実行します。 https://gist.github.com/sidatgt/b216533b1ad7cef630286f550c17f79e – SCP
クイックアップデート:このエラーは、インストールスクリプトのcache clearコマンドとwarmupコマンドによってトリガーされるようになりました。これはインストールスクリプトです:https://gist.github.com/sidatgt/1db49d813937ea6cc11d058621d04d9d 4つのキャッシュコマンドがあり、それぞれが同じエラーを引き起こします。 routing.xmlの無効な引数 – SCP