close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error On $ShoppingCart

Thread began 8/05/2010 10:59 am by bill173836 | Last modified 8/05/2010 11:56 am by Jason Byrnes | 575 views | 1 replies |

bill173836

Error On $ShoppingCart

This is the error message I get:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/w/d/h/wdhobbs/html/homeschoollife/store.php:9) in /home/content/w/d/h/wdhobbs/html/homeschoollife/store.php on line 114

This is the script at that location:

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

I appear to be having problems on all pages that have $ShoppingCart in them any ideas what might be the problem?

Sign in to reply to this post

Jason ByrnesWebAssist

this error occurs when there is output top the page before the header function is called.


according to the error, the output was started around line 9, it's probably on line 8 though:

output started at /home/content/w/d/h/wdhobbs/html/homeschoollife/store.php:9


In most cases, the error is causes by blank space between a closing PHP tag "?>" and the next opening PHP tag "<?php"

it can be a blanks space at the end of the line:
"?> "

or a blank line between the two:
?>

<?php

look at lines 8 and 9 to find the output that is causing the error.

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