At the root of your SuiteCRM folder, you find a file called .env
Inside that text file there is a line saying
APP_ENV=prod
which you can change (temporarily) to
APP_ENV=dev
Then run a cache clear:
bin/console cache:clear
Make sure you didnât mess up the ownerships on the cache directory (this would happen if you ran those commands as root, which is not the best thing to do)
Now when you get the error again, you might get extended error information in the new debug toolbar that appears on the bottom of the screen, or in the browserâs developer tools, network tab
am i need to type this command from terminal?
and location need to be in where suite file are.
if i dont change .env file and type this bin/console cache:clear in terminal where suitecrm files are its executed.
if i change env file to dev its give me this error in terminal:
bin/console cache:clear
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#38
#message: """
Attempted to load class "DoctrineFixturesBundle" from namespace "Doctrine\Bundle\FixturesBundle".\n
Did you forget a "use" statement for another namespace?
"""
#code: 0
#file: "./core/backend/Kernel.php"
#line: 84
trace: {
./core/backend/Kernel.php:84 {
App\Kernel->registerBundles(): iterable^
âș if ($envs[$this->environment] ?? $envs['all'] ?? false) {
âș yield new $class();
âș }
}
./vendor/symfony/http-kernel/Kernel.php:379 { âŠ}
./vendor/symfony/http-kernel/Kernel.php:779 { âŠ}
./vendor/symfony/http-kernel/Kernel.php:121 { âŠ}
./vendor/symfony/framework-bundle/Console/Application.php:168 { âŠ}
./vendor/symfony/framework-bundle/Console/Application.php:74 { âŠ}
./vendor/symfony/console/Application.php:166 { âŠ}
./bin/console:42 { âŠ}
}
}
then after going to suitecrm url i am getting this error, cannt even login:
Attempted to load class "DoctrineFixturesBundle" from namespace "Doctrine\Bundle\FixturesBundle".
Did you forget a "use" statement for another namespace?