close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Headers already sent error

Thread began 9/02/2009 11:56 am by xsitedesign388292 | Last modified 9/08/2009 3:24 pm by Jason Byrnes | 4028 views | 7 replies |

xsitedesign388292

Headers already sent error

After searching posts, I still haven't an inkling what's going on.
First:
Errors on this form
app6.php

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /usr/www/users/fpuadmin/beta/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/www/users/fpuadmin/beta/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php:3) in /usr/www/users/fpuadmin/beta/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3

****
I have checked for inadvertent spaces/lines in PHP and have BOM unchecked in DW. Validation Toolkit files are on production server (why is it using those?).
****
Second:
The form is an old one I modified using CSS Form Builder and all the field names showed up as labels. Any way to get the original labels back other than manually? If not, no problem - probably just bad old code.

Thanks for your help,
Jim

Sign in to reply to this post

Jason ByrnesWebAssist

Can you post back a copy of the app6.php and WAVT_ValidatedForm_PHP.php files in a zip archive so Ican investigate the code.


By In the Wizard you can specify the labels that should be used, if you do not specify a label it will default to the form element name.

Sign in to reply to this post

xsitedesign388292

Re: headers already sent error

Attached is the requested .zip file. Thanks for the clue on the label function. JVC

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

Jason ByrnesWebAssist

The problem is caused by using virtual() to attach php files.


Dreamweaver will use the virtual function if you set the "Create links Relative To:" Option on the local info tab of your site definition to "Site", change that to "Document" so that Dreamweaver will use the require_once() function instead.

Sign in to reply to this post

xsitedesign388292

Thanks Jason. Must be my (lack of) syntax skills, but it caused a fatal error on my first try. I will look up the correct syntax and try it again tonight and let you know how it goes. I can't really change the DW site defs - it's a 5000+ page site - so I'm assuming I can manually edit this one form. Thanks again. JVC

Sign in to reply to this post

Jason ByrnesWebAssist

the correct synatx would be:
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>


You can change the setting before applying validation toolkit, then change it back afterwords.

Sign in to reply to this post

xsitedesign388292

visible validation errors

Thank you Jason. I got rid of the errors by adding the appropriate document relative code:
<?php require_once("../../../WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("../../../WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>

Now looking at the published form I notice that the error messages are visible in each field. Any ideas what's going on?
Latest revision: app6b.php
JVC

Sign in to reply to this post

Jason ByrnesWebAssist

Your page is missing the code to include the Spry javascript Files and initialize the spry elements.

Try changing the Create links Relative to settings, using Form Builder to create the form, then change it back.

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