giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
268 stars 76 forks source link

Double Headers issue #105

Open SirLouen opened 4 months ago

SirLouen commented 4 months ago

Warning appears on dynamic_qrcodes.php

Warning: Cannot modify header information - headers already sent by (output started at /var/www/site/includes/sidebar.php:37) in /var/www/site/lib/Users/Users.php on line 130
JakeD22 commented 4 months ago

Same thing is happening to me i think i tried to deploy on unraid and kept getting errors i spend hours trying to fix it. static codes seem to work but dynamic wont generate and save the image.

Melvin-de-Jong commented 3 months ago

Hi, I ran into this issue due to deleting the original super admin account that is created with the setup. This then throws an error dus to the dummy data still linked to that user Id, the user no longer exists and a header redirect is put for then the user is not found. This is a case of reusing a find user function that also redirects to block the user from doing something.

The qouch fix for anyone running into this is to delete the dummy data from the database tables.