Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in - symfony

Excuse my english, i am french. I have a error when i install fos User bundle of symfony2.
I follow all instructions on this page : http://symfony.com/doc/current/bundles/FOSUserBundle/index.html
When i do this command : php bin/console doctrine:schema:update --force, i have a error.
This is my error :
Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in C:\P
rogram Files\EasyPHP-DevServer-14.1VC9\Ecommerce\app\console on line 19
Help me please

It's late but it could help others people who are facing the same problem.
It seems like you are missing a component. I would suggest trying a "composer update" (I don't think it will work) in this case, i will be a bit more brutal and delete my vendor folder and reinstall everything with a "composer install".

Related

assetic:watch error - unserialize(): Error at offset

I was using everyday assetic in work (OS: Win7) but today i was runned command: php bin/console assetic:watch and get this error:
[Symfony\Component\Debug\Exception\ContextErrorException] Notice: unserialize(): Error at offset 0 of 25228 bytes
I was try clear cache - don't help.
I not delete any file and in repository that file not exist and this project is on 3 machines (don't have access now only to 1) and everywhere it works...
Nothing was updated or installed to project so far as i know.
So helped delete all files with prefix assetic_watch_* in %LOCALAPPDATA%\Temp\
bin/console assetic:watch --force also cleared for me.

Karaf: Missing Constraint in bundle

I am trying to wrap dnsjava as a bundle in Karaf. When I try to start the bundle I get a "Missing Constraint" error. I looked in the dnsjava code and found that the only place android is referenced is in a Class.forName. So I am wondering what causes this problem and how can I get around it. I am pretty certain that the class is not referenced in the code anywhere.
Here is the exception:
opendaylight-user#root>bundle:start 288
Error executing command: Error executing command on bundles:
Unable to execute command on bundle 288: The bundle "dnsjava_2.1.8 [288]" could not be resolved. Reason: Missing Constraint: Import-Package: android.os; version="0.0.0"
I believe I found the answer. There is an Import in the MANIFEST.MF that requires android.os.

Issue in #Twig/Exception/exception_full.html.twig after updating symfony3 with Composer

I did the following :
1) I installed a fresh Symfony 3.2.2 version with this command line : php symfony.phar new Symfony3.2.2
2) I tested the version screen display with this url : http://localhost/Symfony3.2.2/web/app_dev.php/ and it well displays "Welcome to
Symfony 3.2.2 .... "
3) Then I did an update of symfony and all depencies with this command : php ../composer.phar update symfony/symfony --with-dependencies
4) I did not expected it updates anything (since I have installed latest version) but it seems it does, like "Updating twig/twig (v1.31.0 => v2.1.0)" and some few others libs (doctrine collections/annotations/common)
5) Then I retest http://localhost/Symfony3.2.2/web/app_dev.php/ but this times I got this error :
Twig_Error_Syntax in classes.php line 5280:
An exception has been thrown during the compilation of a template ("Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in C:\wamp\www\Symfony3.2.2\var\cache\dev\classes.php on line 5573 and defined") in "#Twig/Exception/exception_full.html.twig".
6) I have tried to clear cache with command : php bin/console cache:clear and then retest step 5) but I got same error
So all suggestions are welcome... thanks in advance for help
I have fixed by myself... it was a PHP issue... after the update, PHP 7 must be used instead PHP 5 (for some libs as Twig I presume like mentioned here )

Laravel Composer Update Error

I am having this error when I am using composer update in cmd, it is stopping me from installing new plugins for my website.
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","me
ssage":"Class 'Illuminate\\Validation\\ValidationExtensionServiceProvider' not f
ound","file":"C:\\Users\\noriel.mercado\\Desktop\\Xampp\\htdocs\\ofw\\vendor\\la
ravel\\framework\\src\\Illuminate\\Foundation\\ProviderRepository.php","line":15
7}}Script php artisan clear-compiled handling the post-update-cmd event returned
with an error
and when I run my program or view it, laravel returns this error.
Class 'Illuminate\Validation\ValidationExtensionServiceProvider' not found
I really need some help, is there anyone there knows how to fix it?

stange error with Behat and Mink on Sf2

I'm using Behat,mink in my Symfony2 project,so I follow those tutorials to make installation :
http://extensions.behat.org/symfony2/ , http://extensions.behat.org/symfony2/migrating_from_2.3_to_2.4.html
but when I run this command php behat.phar --init "#YouBundleName",I get this very strange error :
PHP Warning: require(Behat\MinkExtension\Extension): failed to open stream: No such file or directory in phar:///var/www/project/behat.phar/src/Behat/Behat /Extension/ExtensionManager.php on line 112
PHP Fatal error: require(): Failed opening required 'Behat\MinkExtension\Extension' (include_path='.:/usr/share/php:/usr/share/pear') in phar:///var/www/project/behat.phar/src/Behat/Behat/Extension/ExtensionManager.php on line 112
I'm sure I installed the last version of behat and mink mentionned in the second link above and then I made php composer.phar unpdate and cache clear too,but still the same error?
I had the same problem. Forgot you need to install behat/mink-extension as well as behat/mink. For example you might need to run:
php composer.phar require behat/mink-extension:*
Worked for me.
By the way, looks like you got confused by the two installation methods, phar vs composer. I'd go with the composer route because it's easier to update and manage versions. This would mean running php bin/behat ... instead of php behat.phar ....

Resources