Questions tagged [symfony5.4]

84 questions
1
vote
0 answers

Search between two dates from a single entity in db

When I create the form in twig it shows only the end_date date-picker.Also when I change the StatisticsType as dateFrom and dateTo it shows that they do not exists in the entity.The purpose is to have two date pickers and one country drop down menu…
Rene
  • 11
  • 2
1
vote
1 answer

Can I send the same information from a form to 2 action in symfony5?

THIS IS MY LOGIN TEMPLATE {% extends 'base.html.twig' %} {% block title %}Hello LoginController!{% endblock %} {% block body %} {% if error %}
{{ error.messageKey|trans(error.messageData, 'security') }}
{% endif %} …
1
vote
0 answers

Symfony 5.4, When I want to recover my token (To recover the user) via the token_storage my return value is null

I'm using Symfony 5.4, I use LexikJWTAuthenticationBundle to generate my tokens. For the /login_check part, everything is fine but I have a /me route to retrieve users via their token that doesn't work. My token is well in the header of the request…
IDK
  • 11
  • 1
1
vote
1 answer

Configuration aws_s3 with flysystem and liip_imagine

My symfony 5.4 project uses aws_s3 + flysystem + liip_imagine. In aws_s3, I have a PRIVATE bucket: "myBucket" with 3 subfolders : documents photos media And IAM PERMISSION "Effect": "Allow", "Action": [ "s3:ListBucket", …
brico
  • 61
  • 6
1
vote
1 answer

Launch Authenticator process from controller in Symfony 5+

I'm trying to write a SSO authentication bundle for Symfony 5.4+ When I try to access pages with security attribute set to true in security.yaml, no problem, my authenticator class automatically launches and runs well. I can authenticated myself and…
1
vote
1 answer

Symfony connect with algolia problem get Argument #1 ($object) must be of type object, int given

I have a question: I need to get communication with algolia, but i cannot get that work, since of leak of documentation. I have symfony 5.4 but algora docs provide only for version 4, second when I trying to get some of my entities indexed i get…
Serghei Leonenco
  • 3,478
  • 2
  • 8
  • 16
1
vote
0 answers

How to check if symfony messenger is working

I have a pod running in kubernetes / aws cloud. Due to limited configuration options in a custom deployment process (not my fault!!) I cannot start the symfony messenger as you usually would start it. What I have to do after a deployment is log into…
Calamity Jane
  • 2,189
  • 5
  • 36
  • 68
1
vote
4 answers

Sending Emails with Symfony Mailer

I have fresh installation of Symfony 5.4. I have followed the documentation in order to send email from my own smtp server but couldn't make it work. So, I'm trying https://mailtrap.io/ with the following configurations with no luck. Any help is…
Solomon Tesfaye
  • 186
  • 2
  • 10
1
vote
1 answer

Undefined array key when insert many-to-one relation: Symfony & Doctrine

I have table cart & cart_option. Cart id (PK) cart_number total Cart_option id (PK) cart_number (FK) Here is my entity for CartOption #[ORM\ManyToOne(targetEntity: Cart::class, inversedBy: 'cartItems')] #[ORM\JoinColumn(nullable: false)] private…
nas
  • 2,289
  • 5
  • 32
  • 67
0
votes
0 answers

facing issue in new symfony version 5.4

I have updated existing project to pimcore 10.6.7 and symfony 5.4, php v 8.1 after updating facing error. when i open existing templates from the admin interface, getting error of default doest not exist as service or class please find the below…
Thejaswini
  • 11
  • 2
0
votes
0 answers

Change layout in EasyAdmin4 CollectionField

I'm new into Symfony(5.4) + EasyAdmin(4) bundle. I need to display a CollectionField in full-screen mode and display all the fields in one row, maximum two rows. Click here for the screenshot I tried to achieve this by modifying only the CSS, but…
Juls
  • 1
  • 1
0
votes
0 answers

After adding social Authentication, the classic login form authentication doesn't work anymore

Last night, I implemented a social authentication with Google in my project. I used the knpuniversity/oauth2-client-bundle. It worked fine till I tried to login with the classic form. After submitting login form (with correct email and password),…
0
votes
2 answers

symfony 5.4 An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'username' cannot be null

i am using friendsofsymfony bundle for authentication, the scenario is when i try to login, the user logged in successfully and getting access token, but in same request when some security events triggered and try to update lastLogin column in user…
0
votes
0 answers

Symfony 5 Disable EventSubscriber when forwarding from a different Controller

I have an ApiController which is used by an outside App. I wrote an ApiSubscriber to Authenticate. All that works fine, but I now want to be able to use some of the Methods in my ApiController from an internal page. To do that, I am preparing some…
Luka
  • 748
  • 2
  • 9
  • 36
0
votes
0 answers

Symfony application very slow after a certain period of inactivity (just first request)

I am encountering performance slowdowns in my Symfony application, particularly when performing an action after a certain period of inactivity. Surprisingly, once the application becomes active again, the navigation becomes remarkably…
nch
  • 29
  • 4