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

Existing app custom namespace #1295

Closed
philbenoit opened this issue Feb 3, 2020 · 1 comment · Fixed by #1679
Closed

Existing app custom namespace #1295

philbenoit opened this issue Feb 3, 2020 · 1 comment · Fixed by #1679
Labels

Comments

@philbenoit
Copy link

When installing statimic into an existing app with a custom namespace the installation fails.

PHP Fatal error: Uncaught Error: Class 'App\Exceptions\Handler' not found in /XXX/vendor/statamic/cms/src/Exceptions/Handler.php:12 Stack trace: #0 /XXX/vendor/composer/ClassLoader.php(444): include() #1 /XXX/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/Users/philbeno...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Statamic\\Except...') #3 [internal function]: spl_autoload_call('Statamic\\Except...') #4 /XXX/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): ReflectionClass->__construct('Statamic\\Except...') #5 /XXX/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build('Statamic\\Except...') #6 /XXX/vendor/larav in /XXX/vendor/statamic/cms/src/Exceptions/Handler.php on line 12

To replicate this,

  1. Load an existing application with a custom namespace for the application.
  2. Follow the install instructions for existing applications.
  3. Watch the world burn :)
@jackmcdade
Copy link
Member

Thanks for the heads up! We'll see what can be done. I'm sure there are things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants