PDA

View Full Version : Upgrade Insecure Requests - Cookie error and stop of the script


Scandal
07-19-2018, 02:14 PM
Hello all!
In one of my own admincp scripts, I'm receiving this error when try to run.
I'm on my localhost with xampp.

Firefox:
https://vborg.vbsupport.ru/external/2018/07/20.png


Chrome:
https://vborg.vbsupport.ru/external/2018/07/21.png
This string ("Cookie" or "Upgrade Insecure Requests") appears exactly below the <body> of admin page and the script stops. This string is not echos by my script, it seems something else return it.
I didn't see any error on php / apache error log.

Basically is an importer - like script. Example:

foreach($data AS $current)
{
echo '<p><b>Import</b> ' . $current['groupname'] . ' ';
vbflush();

// make some actions / database writes

echo '<b>' . $vbphrase['done'] . "</b></p>\n";
vbflush();
}


It seems it echoes "Import..." {first line inside the loop} but never went to "Done".

The line 3516 of adminfunctions.php is:

@ob_flush();


Sorry for the greek environment. The table is "vBulletin Error: Unable to add cookies, header already sent".
Any idea? :)