imranhsayed / aquila

🎨 An Advanced WordPress theme
990 stars 210 forks source link

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

Open ryuk321 opened 3 years ago

ryuk321 commented 3 years ago

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

imranhsayed commented 3 years ago

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

shamats commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 5 months ago

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

hemanta-rijal commented 3 months ago

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 commented 2 months ago

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