close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot modify header

Thread begun 8/25/2010 1:01 pm by Badger | Last modified 8/26/2010 6:58 am by Jason Byrnes | 1614 views | 5 replies |

Badger

Cannot modify header

I'm getting the old header error message:

Warning: Cannot modify header information - headers already sent by (output started at /www/visp/hollywo1/chandeliergroup.com/visitors_Profile.php:106) in /www/visp/hollywo1/chandeliergroup.com/WA_SecurityAssist/Helper_PHP.php on line 67

BUT

Only when trying to go from a registration page to a profile page

IE it's not the PHP gap problem.

I can get both pages working without the error if I remove SA from the profile page but them the username and password (IE the records) are not passed on

Any ideas

Sign in to reply to this post

Jason ByrnesWebAssist

the headers already sent error is always caused by some sort of output to the page.


the error is reporting the issue at line 106 of the visitors_Profile.php page.

if you cannot spot the problem, send a copy of your page.

Sign in to reply to this post

Badger

That's what I thought but line 106 looks like this:

<!-- InstanceEndEditable -->

File attached

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is lines 202 - 206:
<?php
if (!WA_Auth_RulePasses("Logged in to visitors")){
WA_Auth_RestrictAccess("visitors_LogIn.php");
}
?>


this is trying to redirect to the visitors_LogIn.php but it is inside the head of the page, it needs to be moved to be before the doctype tag.

Sign in to reply to this post

Badger

That's it. Thanks Jason

Just leaves an issue where I'm not to be able to go from the registration page to the profile page without having to enter the username and password.

Is it simply a question of adding the session details to the end of the link to the profile page?. If so could you show me what that might look like.

Sign in to reply to this post

Jason ByrnesWebAssist

You would need to add a security assist Authenticate user behavior to the registration page.

The registration form only adds the user information to the database. once its added, you can perform the login.

Sign in to reply to this post

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