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

Strange error with a "Contact Us" form after adding a Google map

Thread began 3/28/2012 7:22 am by Rune Brynestad | Last modified 3/29/2012 10:25 am by Jason Byrnes | 851 views | 7 replies |

Rune Brynestad

Strange error with a "Contact Us" form after adding a Google map

I have a Contact Us form with server validation and email facilities. The form works as it should. Emails are sent, I'm redirected to the "Thank You" page and if I forget to fill in a required field, the server validation alerts me. So far so good.

I have also added a Google map to this page. The Google map works fine, but the form does not. Emails are sent, but I'm not redirected to the "Thank You" page and the server validation creates this error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/4/s/syversen-elektro/www/kontaktoss.php:1) in /home/4/s/syversen-elektro/www/webassist/form_validations/wavt_validatedform_php.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/4/s/syversen-elektro/www/kontaktoss.php:1) in /home/4/s/syversen-elektro/www/webassist/form_validations/wavt_scripts_php.php on line 83

You can test it on live URL here:

kontaktoss.php

I'm attaching my working files.

Regards
Rune

Attached Files
syversen.zip
Sign in to reply to this post

Jason ByrnesWebAssist

see this thread for details on troubleshooting the headers already sent error:

showthread.php?t=19285

on this page, i think the issue is the last one discussed in that post:

  2) The Unicode Signature (BOM) PHP bug. the forth screen shot shows the Title / Encoding category of the Page Properties screen (Modify - > Page Properties). Checking the Include Signature (BOM) option can cause the headers already sent error  
Sign in to reply to this post

Rune Brynestad

Yes, maybe it is. The Include Signature (BOM) option is checked for the page with the "Contact us" form and the Google map included. See the attached picture. As you can see, the checkbox and the other fields are "greyed out" so I can't remove it. What part of the code do I have to modify?

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

it's not something that can be modified codewise. The BOM Signature is a byte that is written to the header of the page. you wont see it, but it's there.


you may need to use a Text Editor like TextWrangler to open and save the page with out the BOM Signature if you cannot turn it off in Dreamweaver.

Sign in to reply to this post

Rune Brynestad

Ok. I have closed Dreamwevare, opened the page in notepad and saved it over the orginal file. I have uploaded the new file to the server, but I still have the same error.

I'm attaching a new copy of my file.

Attached Files
kontaktoss.zip
Sign in to reply to this post

Jason ByrnesWebAssist

In the Note Pad save as dialog, what is the Encoding set to? try changing the Encoding to ANSI

Sign in to reply to this post

Rune Brynestad

Yes, changing the encoding to ANSI solved the problem.

Thanks again for helping me on this.

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome, glad to hear it is working.

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