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

Class 'App' not found #2284

Closed
jonathanlaf opened this issue Aug 7, 2019 · 6 comments

Comments

@jonathanlaf
Copy link

commented Aug 7, 2019

Description

Can't get Sage to install properly.

Steps to reproduce

  1. Install Sage through composer or git
  2. Activate

Expected behavior: Working homepage

Actual behavior: Empty homepage with errors

( ! ) Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'App' not found in /srv/www/domain.tld/current/web/app/uploads/cache/a1e3c48b0395f0adfcf4ce178f4dd567983a6e72.php on line 2
--

Reproduces how often: 100%

Versions

Windows 10 Pro 1903
VirtualBox : 5.2.32
Vagrant : 2.2.4
Ansible : 2.7.5
Trellis : 1.0.3
Sage : 9.0.9
WSL : Ubuntu 18.04.2 LTS
WSL Node : 8.10.0
WSL NPM : 3.5.2
WSL Composer : 1.9.0
WSL PHP : 7.1.3

Additional information

I also tried to downgrade my PHP version in trellis to 7.1 still not working.

@Log1x

This comment has been minimized.

Copy link
Member

commented Aug 7, 2019

Assuming you have ran composer install inside of Sage's directory, perhaps try clearing your cache located in app/uploads/cache/.

Nonetheless, this is not a bug or issue directly with Sage and is better suited for the Roots Discourse if further help is needed.

@Log1x Log1x closed this Aug 7, 2019

@jonathanlaf

This comment has been minimized.

Copy link
Author

commented Aug 7, 2019

Even when clearing the cache it's not working. I'm sorry to ask you, but why are you so confident it's not a bug and it's user related ? I destroyed my VM and local files so many time that the cache got rebuild every time I tried. Seriously I spent many hours making sure it was not my manipulation that cause the bug.

@Log1x

This comment has been minimized.

Copy link
Member

commented Aug 7, 2019

What is your install / build step order for Sage?

This problem has been mentioned multiple times and has to do with Controller. There should be plenty out there to debug it no matter your specific situation by searching:

( ! ) Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'App' not found in 
@jonathanlaf

This comment has been minimized.

Copy link
Author

commented Aug 7, 2019

I've read the 3 you just sent me, none worked for me. And yes I know how to do a google search I already searched that particular error.

If there's so many people talking about that error, it's not a bug, it's all people fault ?

What are my steps,

In /site/web/app/themes/ I ran :
rm -r ../uploads/cache
composer create-project roots/sage my-cool-theme
cd /my-cool-theme
composer install
yarn & yarn build

Wordpress Settings -> Activate the my-cool-theme

Go to the front page, and got error.

@dsturm

This comment has been minimized.

Copy link

commented Aug 7, 2019

Just for the hint: @jonathanlaf, the root in the mentioned error (/srv/www/domain.tld/current/web/app/) differs from the last mentioned steps (/site/web/app/themes/). Did you shortened / simplify it for your last comment?

@jonathanlaf

This comment has been minimized.

Copy link
Author

commented Aug 7, 2019

Yes I shortened it since I was typing it from the top of my head..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.