2
votes

I'm trying to get Symfony 2.0.14 running at my local PC but get this error:

Whoops, looks like something went wrong.

1/1 InvalidArgumentException: There is no extension able to load the configuration for "framework" (in /var/www/html/symfony/app/config/config_dev.yml). Looked for namespace "framework", found none in /var/www/html/symfony/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 272 at YamlFileLoader->validate() in /var/www/html/symfony/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 242 at YamlFileLoader->loadFile() in /var/www/html/symfony/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 42 at YamlFileLoader->load() in /var/www/html/symfony/vendor/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php line 52 at DelegatingLoader->load() in /var/www/html/symfony/app/AppKernel.php line 34 at AppKernel->registerContainerConfiguration() in /var/www/html/symfony/app/bootstrap.php.cache line 868 at Kernel->buildContainer() in /var/www/html/symfony/app/bootstrap.php.cache line 784 at Kernel->initializeContainer() in /var/www/html/symfony/app/bootstrap.php.cache line 518 at Kernel->boot() in /var/www/html/symfony/app/bootstrap.php.cache line 549 at Kernel->handle() in /var/www/html/symfony/web/app_dev.php line 27

Any advice on this? I'm running PHP 5.4.3 in Fedora 16 this is the first time I get this problem :(

3
Show us your app/config/config_dev.yml.Samy Dindane
@SamyDindane is the default I didn't touch anything but here is: pastebin.com/AjQzA0jRReynierPM
Open AppKernel.php and check that FrameworkBundle is enabled in registerBundle method.Mun Mun Das
@m2mdas you mean this line: new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle()? Yes it's enabled!ReynierPM
no, new Symfony\Bundle\FrameworkBundle\FrameworkBundle()Mun Mun Das

3 Answers

1
votes

I am using Symfony 2.0.15 on Windows 7 running PHP 5.4.2 (later upgraded to 5.4.4) and encountered the same problem with same error message.

As indicated on https://github.com/symfony/symfony/issues/4416 (opened by ReynierPM), the problem is caused by APC and PHP 5.4.x so disabling APC "fixes" the problem. It worked by commenting out extension=php_apc.dll in php.ini on Windows for me.

0
votes

Try running php bin/vendors install and visiting /config.php.
Also, make sure some of your files don't end in .ph, .tw, or .ym.

0
votes

Did your read Installing and Configuring Symfony in symfony2 book? There is described cleary how to configure a fresh symfony2 installation.

Symfony2 Book- Installing and Configuring Symfony

Major steps:

  • make sure you have the correct directory structure

  • update vendors if you downloaded without

  • setup permissions !very important