Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in app/console on line 16

Asked
Active3 hr before
Viewed126 times

6 Answers

classerror
90%

Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers ,Thanks for contributing an answer to Stack Overflow!, Can a random forest learn time series correlations? ,the result of the composer update can ben found here https://github.com/allan-simon/oauth2-symfony2-vagrant-fosuserbundle/commit/dfa25593f79c5595ca4759803ec1e998091c68b9 (mostly change in minor version, note there's a change in version of symfony, but keeping it to 2.6 produce also the problems below)

The problem was caused because my composer.json had the line

"sensio/distribution-bundle": ">=2.3.7",
load more v
88%

The solution is found. For some reason my composer.json contained "ext-http": "*".,I got a working symfony app, today I decided to do a composer update,So it was updating to the latest version (5.x at the time of writing) which is incompatible with the files structure of symfony 2.7 and below projects,https://github.com/sensiolabs/SensioDistributionBundle/issues/243

Script SensioBundleDistributionBundleComposerScriptHandler::clearCache handling the post-update-cmd event terminated with an exception

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'"
command:
   PHP Fatal error: Class 'SymfonyComponentConsoleInputArgvInput'
not found in /vagrant/app / console on line 16
   .
load more v
72%

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, Collections → , Pricing Plans → Compare plans → Contact Sales → Education → , In this organization All GitHub ↵ Jump to ↵

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 app/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

php app / console doctrine: schema: update--force
65%

Console Input (Arguments & Options) , Blog Events & Meetups A week of symfony Case studies Cloud Community Conferences Diversity Documentation Living on the edge Releases Security Advisories SymfonyInsight Twig SensioLabs , Symfony Components ,The most interesting part of the commands are the arguments and options that you can make available. These arguments and options allow you to pass dynamic information from the terminal to the command.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ...
use Symfony\ Component\ Console\ Command\ Command;
use Symfony\ Component\ Console\ Input\ InputArgument;

class GreetCommand extends Command {
   // ...

   protected
   function configure(): void {
      $this
         // ...
         -
         > addArgument('name', InputArgument::REQUIRED, 'Who do you want to greet?') -
         > addArgument('last_name', InputArgument::OPTIONAL, 'Your last name?');
   }
}
load more v
75%

In server log i got this error message: [Tue May 21 12:05:01.326516 2019] [proxy_fcgi:error] [pid 30213] [client 192.168.1.105:55050] AH01071: Got error 'PHP message: PHP Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Console\Application' not found in /home2/mautic/public_html/whitelabeler.php on line 581\n', referer:, In server log i got this error message: [Tue May 21 12:05:01.326516 2019] [proxy_fcgi:error] [pid 30213] [client 192.168.1.105:55050] AH01071: Got error 'PHP message: PHP Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Console\Application' not found in /home2/mautic/public_html/whitelabeler.php on line 581\n', referer: , Class 'Symfony\\Bundle\\FrameworkBundle\\Console\\Application' not found ,How do i check? In "Where is Mautic installed?" field i have placed correct path there which is "/home2/mautic/public_html" and got message "Compatible version found (2.15.1)"

This is the function that is failing in whitelabeler.php:

	public
	function runSymfonyCommand($path, $command, array $args) {
	   static $application;
	   require_once $path.
	   '/app/autoload.php';
	   require_once $path.
	   '/app/AppKernel.php';
	   $args = array_merge(
	      ['console', $command],
	      $args
	   );
	   if (null == $application) {
	      $kernel = new\ AppKernel('prod', true);
	      $application = new\ Symfony\ Bundle\ FrameworkBundle\ Console\ Application($kernel);
	      $application - > setAutoExit(false);
	   }
	   $input = new\ Symfony\ Component\ Console\ Input\ ArgvInput($args);
	   $output = new\ Symfony\ Component\ Console\ Output\ NullOutput();
	   $exitCode = $application - > run($input, $output);
	   unset($input, $output);
	   return $exitCode === 0;
	}

Can you confirm that these files are actually there ("$path" is the path to the Mautic files)?:

require_once $path.
'/app/autoload.php';
require_once $path.
'/app/AppKernel.php';
load more v
40%

我有一个可以正常工作的symfony应用,今天我决定做一个composer updatecomposer update的结果可以在https://github.com/allan-simon/oauth2-symfony2-vagrant-fosuserbundle/commit/dfa25593f79c5595ca4759803ec1e998091c68b9中找到(主要是次要版本中的更改,请注意symfony的版本中有更改,但将其保留为2.6也会产生以下问题)现在升级后,我得到了这个错误脚本Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache处理post-update-cmd事件,该异常终止

我有一个可以正常工作的symfony应用,今天我决定做一个composer updatecomposer update的结果可以在https://github.com/allan-simon/oauth2-symfony2-vagrant-fosuserbundle/commit/dfa25593f79c5595ca4759803ec1e998091c68b9中找到(主要是次要版本中的更改,请注意symfony的版本中有更改,但将其保留为2.6也会产生以下问题)

现在升级后,我得到了这个错误

脚本Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache处理post-update-cmd事件,该异常终止

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'"
command:
   PHP Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput'
not found in /vagrant/app / console on line 16
   .
load more v

Other "class-error" queries related to "Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in app/console on line 16"