Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fatal error: Trait 'AQUILA_THEME\Inc\Traits\Singleton' not found #37

Open
ryuk321 opened this issue Oct 26, 2020 · 7 comments
Open

Fatal error: Trait 'AQUILA_THEME\Inc\Traits\Singleton' not found #37

ryuk321 opened this issue Oct 26, 2020 · 7 comments

Comments

@ryuk321
Copy link

ryuk321 commented Oct 26, 2020

the namespace doesn't seem to work.
Fatal error: Trait 'AQUILA_THEME\Inc\Traits\Singleton' not found in A:\xampp\htdocs<User>\wp-content\themes\aquila\inc\classes\class-aquila-theme.php on line 12

@imranhsayed
Copy link
Owner

Please check the github repo code to see what you may be missing.

@shamats
Copy link

shamats commented Feb 28, 2022

Same error i am facing. Namespace doesn't seem to work.
Fatal error: Trait 'AQUILA_THEME\inc\traits\Singleton'

I have checked the code from repository

@mbenba01
Copy link

mbenba01 commented Oct 18, 2022

I don't know if you guys found the solution but it could be the folder structure. I had the same issue and realised my traits folder was inside the helpers folder when classes, helpers and traits should all be direct children of the inc folder.

I hope this will help someone :-)

@Adel-Elkenany
Copy link

I encounter the same problem and it cannot be solved even after reviewing the code and arranging the folders. I hope for help and a quick response, thanks to all

@KeepLearningFromWorld
Copy link

Anyone who knows how to solve the problem? I come across the same problem...

@hemanta-rijal
Copy link

I also had the same issue, but later I got to know that there was an issue with my filename. It had traits-singleton.php, but it should be trait-singleton.php according to our code in autloader.php

@Tide1010
Copy link

I also had the same issue, but later I got to know that there was an issue with my filename. It had traits-singleton.php, but it should be trait-singleton.php according to our code in autloader.php

thats exactly what the problem is ! just changing the filename resolved the issue for me

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

No branches or pull requests

8 participants