Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Browsing all 3925 articles
Browse latest View live
↧

UVDesk v1.1.3 Mailparse error on Ubuntu 24.04 undefined symbol:...

I am trying to install UVDesk v1.1.3 for the first time. I spun up a server on AWS with 4GB RAM.My PHP version is 8.3.I used composer to install the skeleton from GitHub. After configuring the web...

View Article


Did we migrate incorrectly? Validation not happening in forms migrated from...

In code migrated from Symfony 2.7 to 4.0, validation no longer happens on my form, allowing bad data to pass through and cause a Doctrine constraint violationI'm new to Symfony and was asked to migrate...

View Article


How do I install BotDetect captcha bundle on symfony 4.4?

I am trying to install BotDetect captcha bundle on a symfony 4.4 projectI followed all those steps :I installed it with composerconfigured the route in app/config/route.yamlcreated a captcha.php config...

View Article

How to unit test Symfony 4 Form with EntityType field

How to unit test Symfony 4 Form with EntityType fieldWhen I run my test:$ ./vendor/bin/simple-phpunit tests/Unit/Form/ProductFormTest.phpThis is the output in my terminal: PHPUnit 6.5.8 by Sebastian...

View Article

transforming a set of form inputs into JSON

So this is going to sound a bit complicated since I'm a total noob to JSON but bear with me guys, I really need this.let me start by showing my entity<?phpnamespace App\Entity;use...

View Article


Api-platform filter annotation for Many To Many

I've follow the implementation of filters with annotation to load only the sources concern for one user. Very usefull, work...

View Article

Symfony 4. How to access the service from controller without dependency...

I have several services: DieselCaseService, CarloanCaseService LvCaseService.The controller decides which of services to get. $type = $quickCheck["type"];/** * @var $caseService...

View Article

Symfony Flex: Overriding Twig's routing path function

In Symfony2 it was straightforward to override the RoutingExtension, that I could inject some extra parameters.I'm using a dynamic domain to route to different parts of my...

View Article


Symfony 4: Overriding Twig's routing functions

I've tried to override path and url functions with the answer there : https://stackoverflow.com/a/72365709/2356946But it's not overriding functions. I mean, even with forcing getPath to do crazy thing...

View Article


Load balancing by nginx between 3 servers with Symfony and React and Docker...

I have 3 servers with different IPs.It has been implemented on 2 application servers using Symfony and React based on Docker.I want to install nginx on the last server and do load balancing between 2...

View Article

Symfony 4, how redirect the user after login (or logout) to the previous page?

By example, the user go to the "about me" page. From this page, he can login or logout via a button in the navbar.When the user login or logout, he is automatically redirected to the home page....

View Article

Catch the error in Registration Controller

I made registration form according to this documentHow to Implement a Simple Registration FormIt works well but, in case of error, it doesn't return anything and just reload.For example.+Use already...

View Article

How to make /login route accessible only for anonymous users in Symfony4?

My access_controll looks like:- { path: ^/login, role: IS_AUTHENTICATED_ANONYMOUSLY}- { path: ^/, roles: ROLE_USER}I need to give an access to route /login only to anonymously authenticated users.

View Article


Image may be NSFW.
Clik here to view.

API platform cannot post relationship id

I am quite new to API platform and currently, I am trying to map with entities. I have one entity called "User" entity and another one is called "Credit" entity. And their relationship with each other...

View Article

add remeber me to Symfony 4.2 Security with custom User Entity

I'm working with Symfony 4.2,I'm working with Security Component and I'm trying to add remember me.At first Remember Me worked for me, but when my User Entity Became Customized, the remember me doesn't...

View Article


Image may be NSFW.
Clik here to view.

API Platform Did not show First Name And Last Name Upon normalizationContext...

I am new to API Platform and I have some problem with normalizationContext and denormalizationContext for my User Entity on the API platform. When I added the normalizationContext and...

View Article

Image may be NSFW.
Clik here to view.

Symfony 5 : Problem userProvider does not contain an identifier from an...

I have class "etudiant" extends from user.the problem is when i try to login/logout with an "etudiant" account, i have this message : You cannot refresh a user from the EntityUserProvider that does not...

View Article


Symfony4 HttpClient acces denied when sending data to another server

I followed documentation of symfony to use httpClient to communicate between two servers but I'm facing an access denied problem:Access Denied : {"parameter1":"test","parameter2":"test2"} []...

View Article

Image may be NSFW.
Clik here to view.

Symfony 4.2 API => Empty Collections with groups

beginner here.I'm trying for my first api to use groups and to serialize with those groups, but on api route call, my collections properties are empty.I'm also trying to do it without api platform from...

View Article

I need to retrieve user in twig Symfony

My BlogHere I am having a little problem with my code to retrieve the user in Twig, I have a ManyToOne relations between the Article table and the User table, I want to retrieve the author of the...

View Article
Browsing all 3925 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>