Skip to content
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

Bug: ExceptionHandler throws critical error in CLI while on production #162

Closed
5 tasks done
Log1x opened this issue Jan 8, 2022 · 1 comment · Fixed by #169
Closed
5 tasks done

Bug: ExceptionHandler throws critical error in CLI while on production #162

Log1x opened this issue Jan 8, 2022 · 1 comment · Fixed by #169
Assignees
Labels
bug Something isn't working

Comments

@Log1x
Copy link
Member

Log1x commented Jan 8, 2022

Terms

Description

N/A

Steps To Reproduce

  1. Use latest Acorn and Sage 10
  2. Set your environment to production
  3. Run a command that would throw an error: wp acorn vendor:publish X

Expected Behavior

Screenshot

Actual Behavior

Screenshot

Relevant Log Output

~/Sites/sage/web/app/themes/sage
❯ wp acorn vendor:publish X
Fatal error: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable. in /Users/brandon/Sites/sage/web/app/themes/sage/vendor/illuminate/container/Container.php:1093
Stack trace:
#0 /Users/brandon/Sites/sage/web/app/themes/sage/vendor/illuminate/container/Container.php(886): Illuminate\Container\Container->notInstantiable('Illuminate\\Cont...')
#1 /Users/brandon/Sites/sage/web/app/themes/sage/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build('Illuminate\\Cont...')
#2 /Users/brandon/Development/projects/acorn/src/Illuminate/Foundation/Application.php(841): Illuminate\Container\Container->resolve('Illuminate\\Cont...', Array, true)
#3 /Users/brandon/Sites/sage/web/app/themes/sage/vendor/illuminate/container/Container.php(694): Illuminate\Foundation\Application->resolve('Illuminate\\Cont...', Array)
#4 /Users/brandon/Development/projects/acorn/src/Illuminate/Foundation/Application.php(826): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
#5 /Users/brandon/Sites/sage/web/app/themes/sage/vendor/illuminate/container/Container.php(1423): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#6 /Users/brandon/Development/projects/acorn/src/Illuminate/Foundation/Console/Kernel.php(366): Illuminate\Container\Container->offsetGet('Illuminate\\Cont...')
#7 /Users/brandon/Development/projects/acorn/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\Foundation\Console\Kernel->reportException(Object(Symfony\Component\Console\Exception\RuntimeException))
#8 /Users/brandon/Development/projects/acorn/src/Roots/Acorn/Bootstrap/RegisterConsole.php(52): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\StringInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 [internal function]: Roots\Acorn\Bootstrap\RegisterConsole->Roots\Acorn\Bootstrap\{closure}(Array, Array)
#10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(102): call_user_func(Object(Closure), Array, Array)
#11 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array)
#13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(399): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(422): WP_CLI\Runner->run_command(Array, Array)
#15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1194): WP_CLI\Runner->run_command_and_exit()
#16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
#17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(77): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
#19 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#20 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#21 {main}
  thrown in /Users/brandon/Sites/sage/web/app/themes/sage/vendor/illuminate/container/Container.php on line 1093
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

Versions

dev-main

@Log1x Log1x added the bug Something isn't working label Jan 8, 2022
@QWp6t QWp6t self-assigned this Feb 3, 2022
@QWp6t
Copy link
Member

QWp6t commented Feb 6, 2022

This is fixed in #169

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants