close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ERROR:Cannot modify header information - headers already sent

Thread began 5/25/2010 5:38 pm by info399547 | Last modified 5/26/2010 6:16 pm by info399547 | 858 views | 4 replies |

info399547

ERROR:Cannot modify header information - headers already sent

I have built a new site and am using UE to download some presentations posted on the site.
On the document result page
documents_results.php?author_surname=&category=&country=&recent=&Search.x=42&Search.y=10&Search=Search&sort=viewed&direction=DESC
if i press the Download button i get a some rubbish and some errors which mean not much to me!

If instead of i view the document and in the detail page:
documents_details.php?documentID=1&author_surname=Auckland%20SCI%20unit
i press the download button the document downloads fine.

Both pages refer to the same webassist file
<?php require_once("../webassist/file_manipulation/helperphp.php"); ?>

I'm stuck and have no idea how to fix this issue, and i have my client jumping up and down to get it solved, can someone shed some light on the issue please.

I have uploaded both source files in the zip files.

Unfortunately i had to remove the download button from the document_result page after client's request.
This is the kind of error i kept getting:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:5) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 690

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:5) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 691

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:5) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 692

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:5) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 693
%PDF-1.4 %âãÏÓ 13 0 obj <> endobj xref 13 7 0000000016 00000 n 0000000594 00000 n 0000000657 00000 n 0000000853 00000 n 0000000895 00000 n 0000001036 00000 n 0000000436 00000 n trailer <<593D170070535FE31CA981B27C5DED90><14C7A0B257F04D1895C5E1D2AB5F10B5>]/Prev 253271>> startxref 0 %%EOF 19 0 obj <>stream hÞb```f``üÌÀÈÀ°æ.?ðÅX8w³]ëyôáCPÊFRÈÅZ³€tòj—‡ùö7 >`U@ endstream endobj 14 0 obj <> endobj 15 0 obj

Attached Files
document php pages.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Line 3 - 5 of the document results page is:
3- <?php require_once("../webassist/file_manipulation/helperphp.php"); ?>
4-
5- <?php


the blank line at line 4 is causing the error message.

Remove the blank line at line 4 to fix the error.

see the following page for details on the Headers Already sent error message:
148/

Sign in to reply to this post

info399547

unfortunately that didn't work

i still get the same kind of message from the document_result page

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:37) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 690

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:37) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 691

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:37) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 692

Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:37) in /home/content/l/i/s/lisaharvey/html/webassist/file_manipulation/helperphp.php on line 693
%PDF-1.3 %âãÏÓ 6 0 obj <> endobj xref 6 49 0000000016 00000 n 0000001519 00000 n 0000001596 00000 n 0000002086 00000 n 0000002547 00000 n 0000003070 00000 n 0000003311 00000 n 0000003346 00000 n 0000003391 00000 n 0000003436 00000 n 0000003481 00000 n 0000003526 00000 n 0000003571 00000 n 0000004929 00000 n 0000006175 00000 n 0000006573 00000 n 0000006918 00000 n 0000008234 00000 n 0000009521 00000 n 0000010753 00000 n 0000012100 00000 n 0000013493 00000 n 0000014547 00000 n 0000017216 00000 n 0000017573 00000 n 0000017932 00000 n 0000018293 00000 n 0000018649 00000 n 0000019006 00000 n 0000019071 00000 n 0000035434 00000 n 0000035618 00000 n 0000062106 00000 n 0000062298 00000 n 0000077211 00000 n 0000077405 00000 n 0000089796 00000 n 0000089981 00000 n 0000106043 00000 n 0000106221 00000 n 0000132037 00000 n 0000132360 00000 n 0000132691 00000 n 0000133021 00000 n 0000139584 00000 n 0000162609 00000 n 0000184694 00000 n 0000185019 00000 n 0000001276 00000 n trailer

I will temporeraly leave the page with the download button visible so that you can reproduce the error!
documents_results.php?author_surname=&category=&country=&recent=&Search.x=37&Search.y=6&Search=Search&sort=viewed&direction=DESC
I have also attached the amended file with no space so that you can have a closer look!
Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

It's the same issue.


Your page has blank lines between php tags at line 4, 37, 53.

at line 134, there is a comment between the code blocks:
<?php
/* Updates download field when download button pressed*/?>
<?php


and another blank line at line 141.


the error points to exactly where the problem is:
output started at /home/content/l/i/s/lisaharvey/html/documents/documents_results.php:37

Please visit this page for information on the cause of the error:
148/

Sign in to reply to this post

info399547

:D

amazing work Jason!

Thank you so much!

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