-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
InvalidArgumentException: There is no extension able to load the configuration for "framework" #4416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you paste your kernel file? Looks like the frameworkBundle ain't instantiated. In the standard edition config_dev extends config.yml, so the framework config should be in config.yml. |
@bamarni the FrameworkBundle config is also in config_dev.yml to activate the profiler. But missing the FrameworkBundle is indeed the most likely reason. |
@bamarni, @stof: did you need something from me? As I said before I just download the release from www.symfony.com, uncompress and try I didn't touch nothing at code level so if there's any mistake is presented here at git or in the .tgz file. |
@paquitodev: compare what you have with https://github.com/symfony/symfony-standard/tree/v2.0.14, especially app/AppKernel.php. |
Is the same file means the code here at Github is the same as my AppKernel.php code |
What do you have in your vendor directory? If you have nothing, what did |
This: a |
There are several tgz on symfony.com one with vendors and another without. Hence my question. Is there any error displayed for any bundle when your run |
Yes I knew that part but I get the tgz with vendors the first one that download when you click in the big download button at home page ;) and no I not get any errors during vendors reinstall process |
See the output of php bin/vendors install --reinstall [root@reynierpm-devpc bin]# ./vendors install --reinstall
So no errors there too :( |
you don't have to run this command if you downloaded the full package as you said, could you somehow show us the whole code you have (witouth vendors) ? |
Which code you need? you don't have to run this command if you downloaded the full package as you said, could you somehow show us the whole code you have (witouth vendors) ? Reply to this email directly or view it on GitHub: Enviado desde mi BlackBerry de Movistar |
your app directory, or the whole code witouth vendors |
And how? Send you by email? How can I attach a file here? |
Aren't we on github? :) |
So .... how to achieve this "could you somehow show us the whole code you have (witouth vendors)"?? |
Ok, it's confirmed the problem is with PHP 5.4.x because I downgrade to PHP 5.3.13 and now Symfony 2.0.14 works fine! |
@paquitodev : you could achieve this by creating a github repository, if you know what that is. |
looks weird, did anybody had this issue with php 5.4? I was using symfony with a 5.4 RC a few months ago and didn't have this issue. @greg0ire : ok keep us updated ;) |
Actually, I'm having problems to upgrade : https://bugzilla.redhat.com/show_bug.cgi?id=826272 on my main machine. I won't be able to test this evening. Sorry... |
I solved my problems and was unable to reproduce this bug on a Fedora 17 with php 5.4.3 |
I have the exact same problems (including the message) in the same circumstances, but i run PHP 5.4.3 on ArchLinux. check.php is also perfect. |
I can confirm that after update from Fedora 16 to Fedora 17 which come with PHP 5.4.3 all my problems dissapear magically so Symfony it's working now under PHP 5.4.3. Don't know if close the issue or leave open for others like @leokolin who have the same problem |
I´m back to work today. Still trying to solve the problem but i have no clue at all. |
@leokolln: Maybe you could try to do step-by-step debugging with XDebug to find the source of the problem. |
@leokolln Yes my problem ceased after I upgrade from Fedora 16 to Fedora 17 maybe REMI repos miss something at PHP 5.4.3 compilation or I don't know. I was experimenting this problem also with CodeIgniter and some others apps I have in my dev server so the problem is PHP and not the apps. What's the poblem? Don't know really :( |
--> config_dev.yml -->--> routing_dev.yml -->-->--> webconfigurator.xml:
reading the method at YamlFileLoader.php line 272: The method is one of those ones: or --> Environment.php line 604 So... |
But how can this sometimes work, some not? |
Forget the part about the .xml. I´m still new to Symfony. Trying to use the app.php/demo returns a code 500 error. Using xdebug i found this: 'There is no extension able to load the configuration for "monolog" (in /srv/http/Symfony/app/config/config_prod.yml). Looked for namespace "monolog", found none' |
FOUND IT! So, this is the problem, i will still try to discover what is the problem with APC. |
Looks like APC is not very stable with PHP5, specially in last versions of it. Do not use it! |
Closing this issue. Support should be done on the Symfony mailing-list instead. For the record, there are some known bugs with APC and PHP 5.4. We have made some workaround for some of them. |
Hi, I'm running PHP 5.4.3-1 at Fedora 16 32bits so I try with Symfony 2.0.14 and Symfony 2.0.13, in both cases the .tgz file, uncompress in my ROOT_DIRECTORY at /var/www/html/symfony, set owner to apache:apache recursive for all the directory and set app/cache and app/logs permission to 777 recursively too, and both cases return the same error/issue:
Whoops, looks like something went wrong.
1/1InvalidArgumentException: 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 50
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 863
at Kernel->buildContainer() in /var/www/html/symfony/app/bootstrap.php.cache line 779
at Kernel->initializeContainer() in /var/www/html/symfony/app/bootstrap.php.cache line 513
at Kernel->boot() in /var/www/html/symfony/app/bootstrap.php.cache line 544
at Kernel->handle() in /var/www/html/symfony/web/app_dev.php line 27
Any advice on this?
The text was updated successfully, but these errors were encountered: