close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Cannot modify header information

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

robert254422

No response

Originally Said By: robert254422
  Hello,

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/domain.nl/public_html/cms60/start.php:1) in /home/folder/domains/domain.nl/public_html/cms60/webassist/mysqli/authentication.php 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'); ?>
<?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;
$Authenticate->execute();
}?>

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

Content

rating

Layout

rating

Ease of use

rating

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...