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

rating

Warning: Cannot modify header information - headers already sent by

Thread began 1/11/2019 2:22 pm by randyrie405335 | Last modified 1/12/2019 3:16 pm by Ray Borduin | 23 views | 5 replies |

randyrie405335

Warning: Cannot modify header information - headers already sent by

Suddenly getting a "Warning: Cannot modify header information - headers already sent by.." error but cannot find any spaces in the code on my index.php page that would cause this. See the attachment. Anywhere else I should look?

Sign in to reply to this post

Ray BorduinWebAssist

The error says the line is index.php line 1... it could be a space at the end of that line, or maybe in the connections/rfl.php page that is referenced on line 1.

Sign in to reply to this post

randyrie405335

Warning: Cannot modify header information - headers already sent by...

I double-checked both pages and found no spaces. I placed "<?php ob_start();?>" at the top of the index page and the warning no longer displays.

??

Sign in to reply to this post

Ray BorduinWebAssist

If you send me FTP access and a URL to reproduce then I could find the issue.

Sign in to reply to this post

randyrie405335

Just a thought... if the 'authenticate' code block was positioned just under the require_once code lines(i.e., before the other blocks), would that eliminate the need for any buffering so I could then remove the '<?php ob_start(); ?>' that I placed at the page top (which does solve the issue)?

Sign in to reply to this post

Ray BorduinWebAssist

It depends on where the blank lines of code or comments are. If it is above those, then it wouldn't have the error. I'd have to debug to see where the error occurs. It says line 1, so you probably can't get the code above that. If you send me a url to reproduce the issue and FTP access I can tell you exactly what is going on.

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