Erreur: InvalidArgumentException

Résolu/Fermé
Mardoch Messages postés 12 Date d'inscription mercredi 10 octobre 2012 Statut Membre Dernière intervention 2 novembre 2012 - 23 oct. 2012 à 13:10
Freedomsoul Messages postés 509 Date d'inscription lundi 9 mai 2011 Statut Membre Dernière intervention 17 avril 2013 - 24 oct. 2012 à 16:00
Bonjour à tous
j'ai un problème qui urge! En effet, quand je lance mon application à travers l'url, il m'affiche le message:

InvalidArgumentException: The file "C:/wamp/www/Symfony/app/cache/dev/assetic/routing.yml" does not exist pourtant ce fichier existe bien à cet emplacement. il m'affiche en bas du message précédent ceci:

in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4533
at FileLocator->locate('C:/wamp/www/Symfony/app/cache/dev/assetic/routing.yml', null, true) in C:\wamp\www\Symfony\app\cache\dev\classes.php line 5541
at FileLocator->locate('C:/wamp/www/Symfony/app/cache/dev/assetic/routing.yml') in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\Routing\Loader\YamlFileLoader.php line 47
at YamlFileLoader->load('C:/wamp/www/Symfony/app/cache/dev/assetic/routing.yml', null) in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\Config\Loader\DelegatingLoader.php line 52
at DelegatingLoader->load('C:/wamp/www/Symfony/app/cache/dev/assetic/routing.yml', null) in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader.php line 57
at DelegatingLoader->load('C:/wamp/www/Symfony/app/cache/dev/assetic/routing.yml', null) in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1738
at Router->getRouteCollection() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1418
at Router->getMatcher() in C:\wamp\www\Symfony\app\cache\dev\classes.php line 1401
at Router->match('/secret/election/') in C:\wamp\www\Symfony\app\cache\dev\classes.php line 5046
at RouterListener->onKernelRequest(object(GetResponseEvent))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent)) in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher.php line 139
at ContainerAwareTraceableEventDispatcher->doDispatch(array(array(object(ProfilerListener), 'onKernelRequest'), array(object(SessionListener), 'onKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), array(object(Firewall), 'onKernelRequest'), array(object(RequestListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent)) in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4695
at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in C:\wamp\www\Symfony\app\cache\dev\classes.php line 4913
at ContainerAwareEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in C:\wamp\www\Symfony\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher.php line 78
at ContainerAwareTraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in C:\wamp\www\Symfony\app\bootstrap.php.cache line 1405
at HttpKernel->handleRaw(object(Request), '1') in C:\wamp\www\Symfony\app\bootstrap.php.cache line 1385
at HttpKernel->handle(object(Request), '1', true) in C:\wamp\www\Symfony\app\bootstrap.php.cache line 1561
at HttpKernel->handle(object(Request), '1', true) in C:\wamp\www\Symfony\app\bootstrap.php.cache line 612
at Kernel->handle(object(Request)) in C:\wamp\www\Symfony\web\app_dev.php line 28

Que dois-je faire?
je travail sur Symfony2 sur windows. Notez aussi qu'avant d'afficher ce message, il m'a afficher des messages d'erreurs d'accès à plusieurs fichiers contenus dans le cache et à chaque fois j'ai modifié les droits sur le fichier en question jusqu'à ce que cette erreur est survenu.
Aidez moi s'il vous plaît

1 réponse

Freedomsoul Messages postés 509 Date d'inscription lundi 9 mai 2011 Statut Membre Dernière intervention 17 avril 2013 97
24 oct. 2012 à 10:38
tu es sur qu'il existe ? l'extension est bonne ? ça ne serait pas plutot xml ?
0
Mardoch Messages postés 12 Date d'inscription mercredi 10 octobre 2012 Statut Membre Dernière intervention 2 novembre 2012
24 oct. 2012 à 15:00
Bonjour à tous
Pour repondre à la question de FreedomSoul, je dirai oui il existait vraiment. J'ai trouvé que le problème était qu'en fait il n'avait pas les droit de lecture sur le fichier. En fait j'ai tourné en rond pour gérer ces droits qu'au final j'ai installé Wamp sur un autre disque que le C:/ et ça fonctionne
Merci
0
Freedomsoul Messages postés 509 Date d'inscription lundi 9 mai 2011 Statut Membre Dernière intervention 17 avril 2013 97
24 oct. 2012 à 16:00
ah bon, okay !

Merci pour cette réponse, ça pourra toujours servir à d'autre (n'hésite pas à mettre résolu par contre !)

Merci et bonne continuation
0