close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File Upload Error Cannot modify header information

Thread began 11/16/2015 2:32 am by acaciasd344844 | Last modified 11/17/2015 11:22 am by Ray Borduin | 2896 views | 2 replies |

acaciasd344844

File Upload Error Cannot modify header information

Hi Guys

I am having a strange issue with the File Upload in data bridge. I have a page with the file upload behavior added then an insert record behavior. The idea is that the file is uploaded and the details then added to a database table. This table is then accessed via a record-set and displayed on the same page as acknowledgement. In side the insert record behaviour I have the page returning back to itself (After Insert) carrying a recordset variable. The page produces 2 errors

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\vitalsat\pdf_upload_docs.php:316) in C:\xampp\htdocs\vitalsat\pdf_upload_docs.php on line 350

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\vitalsat\pdf_upload_docs.php:316) in C:\xampp\htdocs\vitalsat\pdf_upload_docs.php on line 367

The file is uploaded but the recordset on the page does not display the new record in the list. Only when I refresh the page do I see the new record.

I have attached the file and an image for your attention.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like your php code is too low on the page.

Move the code from lines 316-321 up to just below line 185.

Then move the code from lines 322-353 to just above the <!DOCTYPE line.

Sign in to reply to this post
Did this help? Tips are appreciated...

acaciasd344844

File Upload Error Cannot modify header information

Thanks Ray that fixed it. Ahh

Well it fixed it working on my local host, but I am still getting warning errors when I upload the page to my online server. The upload is working and storing the details in the database and the page is being updated. As they are just warnings I will switch them off using error_reporting(0);

Thanks John

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