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

Errror message on contact form

Thread began 8/05/2012 5:30 pm by sandy170299 | Last modified 8/07/2012 12:01 pm by sandy170299 | 700 views | 6 replies |

sandy170299

Errror message on contact form

Please refer to this page: contact-us.php

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lutche5/ribbonfair.com/siteHeader.php:110) in /home/lutche5/ribbonfair.com/webassist/form_validations/wavt_validatedform_php.php on line 3

Any ideas how I can get this message to go away? Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

the error is caused by output between php tags.

this section of the error:
output started at /home/lutche5/ribbonfair.com/siteHeader.php:110

is saying that the output is on the siteHeader.php file near line 110

See the following thread for details:
showthread.php?t=19285

Sign in to reply to this post

sandy170299

This is the block of code that is on line 110:

<style type="text/css" media="all">
<!--
@import url("CSSSculptor/2ColumnFixedLeftSidebarHeaderandFooter_CaboSunset_css/screen.css");
-->
</style>

Do you see what the problem is?

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

sounds like there is php code after the HTML code that should not be there. I would need to see the full page code in context though.

Sign in to reply to this post

sandy170299

Hi, Jason. I am attached the pages for you in a zip file. Thanks!

FYI, using Google Chrome, I'm unable to use the interface that allows me to attached/upload a file to this thread.

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

Jason ByrnesWebAssist

it looks like you are adding the contact.php page to the contact_us.php page as an include using require_once() and doing the same with the siteHeader.php page.

this wont work.

the problem is this:
in both the siteHeader.php and contact.php pages there is php code that must come before any HTML output.

the format of the contact_us.php page will be something like this:
<!doctype....>
<html>
<head>
<title>page title</title>
</head>
<body>
other HTML Code
[include the siteHeader.php here]
some other HTML code
[include the contact.php here]
rest of HTML code on the page
....


so by using require_once to include the site header and contact pages as includes, it will be adding php code to the page after HTML output which is causing the issue you are experiencing.


the work around for this is to use Framework builder plugins. Framework builder plugins will automatically strip the php code that is before the doctype tag of a page and add that code above the doctype tag of the page it is being plugged into to prevent this from happening.


I see in the contact page you sent that you have stripped out the doctype, head, title and other tags, you shouldn't do this when using Framework builder plugins. It is a valid technique in cold fusion and ASP to use includes, but not in PHP.

Sign in to reply to this post

sandy170299

Thanks, Jason. I'll see what I can do with it.

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