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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

header error

Thread began 1/20/2011 2:01 am by kleinermitzen420599 | Last modified 1/20/2011 5:56 pm by Jason Byrnes | 1878 views | 10 replies |

kleinermitzen420599

header error

This code...

<?php
// WA eCart Redirect
if ($graceCart->redirStr != "") {
header("Location: ".$graceCart->redirStr);
}
?>

is receiving this error...

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\graceAndLace\homeGraceStore.php:83) in C:\xampp\htdocs\graceAndLace\homeGraceStore.php on line 117

Sign in to reply to this post

kleinermitzen420599

What can i do to fix that?

Sign in to reply to this post

Jason ByrnesWebAssist

The headers already sent error means that there is output to the page before the header() function or session_start() function is used.

If you exmine the error message closely, the section in pereenthises:
output started at C:\xampp\htdocs\graceAndLace\homeGraceStore.php:83

tells you where to look for the output that is causing the problem.

look around line 83 of the homeGraceStore.php page.

Usually the problem will on the line before the error is reporting. In most cases the problem is caused by a blank line between a closing php and opening php tag:

php:
?>


<?php



in some cases, it can be caused by a blank space after the closing php tag:
"?> "

it can also be caused by an html comment between the tags, or a misplaced echo statement.

If you cannot find the cause of the problem, please send a copy of your page in zip archive so i can inspect the code.

Sign in to reply to this post

kleinermitzen420599

Thank you for all your help! error message is gone, but the checkout button doesn't go anywhere, i will attatch a zip. Just to let you know, i have made a new store to test out what i am doing wrong. so it'll be different than the previous codes i have sent you. Thank you so much!

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

Jason ByrnesWebAssist

you have not set an action for the checkout button.


go to window -> Server behaviors.

in the server behaviors list, double click the eCart Checkout button server behavior to set the checkout button redirect.

Sign in to reply to this post

kleinermitzen420599

Thank you! That works great! except now when i checkout after the form is filled out, it gets an error...

Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\graceAndLace\WA_eCart\WA_eCart_UPS_PHP.php on line 72

This is the code on line 72...

$WA_UPS_Curl = curl_init();

Sign in to reply to this post

Jason ByrnesWebAssist

that error means that the cURL extesnion is not enabled in the php.ini file.

C:\xampp\php\php.ini


find the following line:
;extension=php_curl.dll


change it to:
extension=php_curl.dll

then restart the Apache server.

Sign in to reply to this post

kleinermitzen420599

Thank you! That works perfectly! Though this is what i get now...

It brings me to the shipping quote failed page:

This is what it says:

S is not a valid unit of measurement for weight for this shipment

Sign in to reply to this post

Jason ByrnesWebAssist

what did you set the weight measure to in the shipping rate lookup behavior on the confirm page, it should be set to LB

Sign in to reply to this post

kleinermitzen420599

Now its saying LB is not a valid measurement. Is there something in the set-up for the confirm.php page that i missed?

Sign in to reply to this post
loading

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