Attempted to load class "WebProfilerBundle" from namespace...
We have a Symfony 4.3 web application hosted on Heroku. This is a new setup and we never managed to have the dev mode to work correctly. There are plenty of similar issues online but none fixes the...
View ArticleAPI Platform - Validate Url UUID parameter before SQL Request
Using:PostgreSQL 11 with uuid_generate_v4 typeSymfony 4.4.11Api Platform 2.5.6I have an Entity with the following Id :/** * @ORM\Entity(repositoryClass="App\Repository\ContractRepository") *...
View ArticleHow to validate the UUID parameter before SQL request for a "GET item"...
Using:PostgreSQL 11 with uuid_generate_v4 typeSymfony 4.4.11Api Platform 2.5.6I have an Entity with the following Id :/** * @ORM\Entity(repositoryClass="App\Repository\ContractRepository") *...
View ArticleSymfony/Sonata EntityAdmin get logged in user - missing Security Token?
the task is pretty simple. we have to restrict access to some entities in our sonata backend. to achive exactly that im using public function configureRoutes(RouteCollection $collection) within the...
View ArticleSymfony+SonataAdmin how to configure Symfony so that Sonata can access logged...
we have to restrict access to some entities in our sonata backend. to achive exactly that im using public function configureRoutes(RouteCollection $collection) within the SomethingAdmin.php sonata...
View ArticleThe environment contains invalid characters, it can only contain characters...
I migrated from symfony 3.4 to symfony 4.4Now I have this error when I run any command:In Kernel.php line 478:The environment ".env.test.local" contains invalid characters, it can only contain...
View Article"Page not found" error when running symfony 4.4 web server in docker
I'm having troubles with docker which I'm beginning to learn.I know I won't use symfony web server in production, in a real life project, but for now, symfony web server is what I need. Just so you...
View ArticleHandle notice in production with Symfony 4
I'm trying the new Symfony 4 and Sentry error tracking.On dev env, notice and exception are handled the same way with a nice screen thanks to the Debug class.On prod env, exception triggers the nice...
View ArticleLDAP authentication and DB entity user for roles
I'm using Symfony 4(.4.11) and trying to implement a LDAP Authentication, while the User Properties (Username and Roles) are stored in a DB. Thus I added a User Entity for Doctrine and configurated the...
View ArticleSymfony 4.4 FOS user-bundle api/auth/login Call to a member function...
I'm using symfony 4.4 via docker and installed FOS user bundle some time ago. Everything was working fine but recently while trying to login, i keep getting the errorCall to a member function...
View ArticleSymfony 4 and mongodb:generate:documents
I want to make use of a Symfony 4 Console option for MongoDB.The console option I want to use is: php bin/console doctrine:mongodb:generate:documentsI get the next error message: Error thrown while...
View ArticleSymfony 4 Notice: Trying to access array offset on value of type null
I got a project on Symfony 4, since i install that project on my new computer with the latest version of PHP 7.4, i have an error on some query but not in all my controller.Heres the method in the...
View ArticleSymfony 4 migrations migrate failed during Execution
my problem is I want to use thephp bin/console make:migrationphp bin/console doctrine:migrations:migrateapproach of Symfony 4 to update my database instead of using:php bin/console...
View ArticleSymfony Query Builder: How to count rows AFTER group by?
I have a query like this:$qb = $this->createQueryBuilder('c') ->leftJoin('c.orders', 'o') ->innerJoin('c.club', 'cb') ->addselect('AVG(o.totalPrice) AS AverageValue') ->groupBy('c.id');...
View ArticleSymfony login form into a navbar
I would like to create a login form available from all the website by the navbar which is on the top. By clicking on "login" it opens a dropdown with the login form. Still I don't really know how to...
View ArticleHow symfony parse and use annotation
Using Symfony annotation for example for routing is quite amazing, but I wonder how this framework parse the comments and extract the annotation?For example: /** * @Route("/tehran", name="tehran")...
View ArticleArgument must be instance of App\Entity\App\Entity\Categories,...
I'm rewriting an old symfony 3 project to symfony 4 and I'm trying to rewrite old fixtures to a new format.Currently, fixtures are working fine for the most of the files, except for a single one where...
View ArticleExecuting mail sending via Symfony Messenger
I am in search for a big help with my code.I tried everything in my power to connect some Symfony features, and I think I am going somewhere..I am using Symfony 4.2 and API Platform and trying to add...
View ArticleHow can i set config.node in webpack encore
I'm using Symfony 4 with webpack encore.I installed the splunk-sdk via npm install splunk-sdk.now encore dev --watch throw this errorRunning webpack ...webpack is watching the files… ERROR Failed to...
View Articlesymfony 4 jwt bundle check_login error 404 while debug match route
i'm actually on symfony4 and php7.2.9 with apache bundle. I'm trying to use lexikJWT bundle. I have tested the request with postman and curl command. The header is send in json (for the json_login...
View Article