Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] Warning: Cannot modify header information - headers already sent by #2542

Merged
merged 1 commit into from
May 10, 2024

Conversation

sfinx13
Copy link
Collaborator

@sfinx13 sfinx13 commented May 10, 2024

Ticket

#2253

Description

Le problème n'a pas été résolu, réouverture du ticket

Changements apportés

  • Suppression de l'appel de la méthode send(), retourner uniquement la réponse résoud le problème

Pré-requis

ouvrir les logs

tail -f var/log/dev.log

Tests

  • Faite un export et vérifier qu'il n'y ai plus d'exception
tail -f var/log/dev.log | grep "CRITI"
[2024-05-10T10:30:51.846792+00:00] request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: Cannot modify header information - headers already sent by (output started at /app/src/Service/Signalement/Export/SignalementExportLoader.php:19)" at SessionUtils.php line 52 {"exception":"[object] (ErrorException(code: 0): Warning: Cannot modify header information - headers already sent by (output started at /app/src/Service/Signalement/Export/SignalementExportLoader.php:19) at /app/vendor/symfony/http-foundation/Session/SessionUtils.php:52)"} []

Copy link

sonarcloud bot commented May 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@emilschn emilschn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lecture et test OK

@emilschn emilschn merged commit 82cb926 into develop May 10, 2024
3 checks passed
@sfinx13 sfinx13 deleted the bugfix/2253-header-csv branch May 10, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants