close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Cannot modify header information

Thread began 12/19/2016 5:28 am by robert254422 | Last modified 12/21/2016 6:55 pm by robert254422 | 934 views | 5 replies


No response

Originally Said By: robert254422

When using mysqli authentication on a webpage I get the following message:

Warning: Cannot modify header information - headers already sent by (output started at /home/folder/domains/ in /home/folder/domains/ on line 206

I have checked the start.php file a couple of times now for blank lines of code specifically on line 1 but found none...
On the very first line of start.php it calls in the mysqli connections include -> No blank lines there
On the second line it includes the authentication.php file -> No blank lines there
On the third line the authentication starts...


First 21 lines of start.php
<?php require_once('Connections/cms_i.php'); ?>
<?php require_once('webassist/mysqli/authentication.php'); ?>
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$Authenticate = new WA_MySQLi_Auth($verbind_i);
$Authenticate->Action = "authenticate";
$Authenticate->Name = "loginCMS60";
$Authenticate->Table = "login";
$Authenticate->addFilter("Log_User", "=", "s", "".((isset($_POST["un"]))?$_POST["un"]:"") ."");
$Authenticate->addFilter("Log_Password", "=", "s", "".((isset($_POST["ww"]))?$_POST["www"]:"") ."");
$Authenticate->storeResult("Log_Id", "sessionId");
$Authenticate->storeResult("Log_User", "sessionUser");
$Authenticate->storeResult("Log_Password", "sessionPassword");
$Authenticate->AutoReturn = true;
$SuccessRedirect = "inside.php";
$FailedRedirect = "start.php?acces=no";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;

I have also tried to change the order of the first three occurances on the page

Any suggestions on where els to look for the problem?

With Kind regards RV.  

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...