skip to Main Content

During the process of updating to Laravel 7 I added a couple of extra packages into the composer.json file (under "require" and "require-dev" that are listed in the composer.json file of the Laravel 7 depository on Github but were not added/installed when I ran composer update with the Laravel version on composer.json updated.

I then ran php artisan vendor:list to list which providers still required publishing. The aforementioned packages were indeed listed, however, so was every other package that I have installed (a total of 16 providers and tags.) Rather than giving me the option of pressing 0-16 which provider/tag I wished to publish (zero for all), the operation simply aborted after listing them.

I then went though the new packages by specifying them specifically – for example php artisan vendor:publish –provider="FacadeIgnitionIgnitionServiceProvider" – and they were then published successfully.

I then ran php artisan vendor:publish again and, sure enough, everything I have ever published (including the new packages that were now successfully published) appeared on the list and the operation was aborted once again.

In order to get the php artisan vendor:publish command to work (without having to specify the provider specifically) I have:

  1. Added –force
  2. Emptied the cache php artisan cache:clear
  3. Emptied the config php artisan config:clear
  4. Added a couple of the packages to the list of providers in app.config to see if it would stop they would disappear from the vendor:publish list.

The command still will still not work…

EDIT
Below is the full aborted error response:

[2020-12-16 01:17:01] local.ERROR: Aborted. {"exception":"[object] (SymfonyComponentConsoleExceptionMissingInputException(code: 0): Aborted. at C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleHelperQuestionHelper.php:128)
[stacktrace] #0 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleHelperQuestionHelper.php(67): SymfonyComponentConsoleHelperQuestionHelper->doAsk(Object(IlluminateConsoleOutputStyle), Object(SymfonyComponentConsoleQuestionChoiceQuestion))
#1 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleHelperQuestionHelper.php(470): SymfonyComponentConsoleHelperQuestionHelper->SymfonyComponentConsoleHelper{closure}()
#2 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleHelperQuestionHelper.php(70): SymfonyComponentConsoleHelperQuestionHelper->validateAttempts(Object(Closure), Object(IlluminateConsoleOutputStyle), Object(SymfonyComponentConsoleQuestionChoiceQuestion))
#3 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleStyleSymfonyStyle.php(355): SymfonyComponentConsoleHelperQuestionHelper->ask(Object(SymfonyComponentConsoleInputArgvInput), Object(IlluminateConsoleOutputStyle), Object(SymfonyComponentConsoleQuestionChoiceQuestion))
#4 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateConsoleConcernsInteractsWithIO.php(211): SymfonyComponentConsoleStyleSymfonyStyle->askQuestion(Object(SymfonyComponentConsoleQuestionChoiceQuestion))
#5 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateFoundationConsoleVendorPublishCommand.php(111): IlluminateConsoleCommand->choice(Object(SymfonyComponentConsoleQuestionChoiceQuestion), Array)
#6 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateFoundationConsoleVendorPublishCommand.php(98): IlluminateFoundationConsoleVendorPublishCommand->promptForProviderOrTag()
#7 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateFoundationConsoleVendorPublishCommand.php(73): IlluminateFoundationConsoleVendorPublishCommand->determineWhatShouldBePublished()
#8 [internal function]: IlluminateFoundationConsoleVendorPublishCommand->handle()
#9 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateContainerBoundMethod.php(37): call_user_func_array(Array, Array)
#10 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateContainerUtil.php(37): IlluminateContainerBoundMethod::IlluminateContainer{closure}()
#11 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateContainerBoundMethod.php(95): IlluminateContainerUtil::unwrapIfClosure(Object(Closure))
#12 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateContainerBoundMethod.php(39): IlluminateContainerBoundMethod::callBoundMethod(Object(IlluminateFoundationApplication), Array, Object(Closure))
#13 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateContainerContainer.php(592): IlluminateContainerBoundMethod::call(Object(IlluminateFoundationApplication), Array, Array, NULL)
#14 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateConsoleCommand.php(134): IlluminateContainerContainer->call(Array)
#15 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleCommandCommand.php(258): IlluminateConsoleCommand->execute(Object(SymfonyComponentConsoleInputArgvInput), Object(IlluminateConsoleOutputStyle))
#16 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateConsoleCommand.php(121): SymfonyComponentConsoleCommandCommand->run(Object(SymfonyComponentConsoleInputArgvInput), Object(IlluminateConsoleOutputStyle))
#17 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleApplication.php(911): IlluminateConsoleCommand->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#18 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleApplication.php(264): SymfonyComponentConsoleApplication->doRunCommand(Object(IlluminateFoundationConsoleVendorPublishCommand), Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#19 C:UsersjamesDocumentsoutletdeviviendasapivendorsymfonyconsoleApplication.php(140): SymfonyComponentConsoleApplication->doRun(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#20 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateConsoleApplication.php(93): SymfonyComponentConsoleApplication->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#21 C:UsersjamesDocumentsoutletdeviviendasapivendorlaravelframeworksrcIlluminateFoundationConsoleKernel.php(129): IlluminateConsoleApplication->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#22 C:UsersjamesDocumentsoutletdeviviendasapiartisan(37): IlluminateFoundationConsoleKernel->handle(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#23 {main}

2

Answers


  1. This problem do not specify what has gone wrong so its hard to tackle.It might be helpful if you posted your log file after the crash on vendor:publish but you can check the logs for detail error report it will surely help you. The logs are located in storage directory. If you want laravel to display complete error for you rather than the cryptic 'Whoops' message, make sure in your .env APP_ENV=local is in there and your APP_DEBUG=true or you can tweak it in your config/app.php like

    'env' => env('APP_ENV', 'local'),
    'debug' => env('APP_DEBUG', true),
    

    Also try deleteing packages.php, services.php, config.php manually from bootstrap folder and then try composer dump-autoload or installing the packages again via composer install by deleting vendor folder.

    Login or Signup to reply.
  2. You need to upgrade to Laravel 7 or above
    Run The Following command to create a Laravel project version 7

    composer create-project --prefer-dist laravel/laravel:^7.0 Project Name
    

    Or if you would like to upgrade without installing a new application follow the steps
    in the following link: https://laravel.com/docs/5.7/upgrade

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search