2017-08-07 1 views
1

mettre à jour juste Sylius avec le compositeur et exec php bin/console server:run et j'ai obtenir cette erreur:Attention: glob(): modèle dépasse la longueur maximale autorisée de 260 caractères

Warning: glob(): Pattern exceeds the maximum allowed length of 260 characters in C:\project\vendor\sylius\sylius\src\Sylius\Bundle\AdminBundle/Resources/config/routing/admin_user.yml (which is being imported from "C:\project\vendor\sylius\sylius\src\Sylius\Bundle\AdminBundle/Resources/config/routing.yml").

journal de mise à jour Composer est:

Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Package operations: 0 installs, 9 updates, 0 removals 
    - Updating symfony/symfony (v3.3.5 => v3.3.6): Downloading (100%) 
    - Updating doctrine/cache (v1.6.1 => v1.6.2): Downloading (100%) 
    - Updating doctrine/common (v2.7.2 => v2.7.3): Downloading (100%) 
    - Updating symfony/swiftmailer-bundle (v2.6.2 => v2.6.3): Downloading (100%) 
    - Updating sensiolabs/security-checker (v4.0.4 => v4.1.3): Downloading (100%) 
    - Updating payum/payum-bundle (2.2.0 => 2.2.1): Downloading (100%) 
    - Updating doctrine/dbal (v2.5.12 => v2.5.13): Downloading (100%) 
    - Updating sylius/sylius (v1.0.0-beta.2 => v1.0.0-beta.3): Downloading (100%) 
    - Updating phpspec/phpspec (3.4.0 => 3.4.2): Downloading (100%) 
Writing lock file 
Generating autoload files 

Je travaille sur la plate-forme Windows 10. J'ai mis à jour mon regedit et permettez le long chemin et relancez mon cumputer (avec ce lien: https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/)

Répondre

2

Vous pourriez essayer n'importe laquelle des solutions décrites here. Je eu un problème similaire (installation Sylius bêta 3 1.0.0), essayé de remplacer la ligne 86 dans vendor\symfony\symfony\src\Symfony\Component\Config\Loader\FileLoader
(import fonction) à
if (is_string($resource) && false === strpos($resource, "\n") && strlen($resource) !== $i = strcspn($resource, '*?{[')) {
et a pu continuer.
Un hack, mais que pouvez-vous faire. Windows souffre de ces problèmes, contrairement à Unix OS.