close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Odd new errors

Thread began 6/29/2011 6:24 pm by jarrad407561 | Last modified 7/05/2011 8:42 am by Jason Byrnes | 2135 views | 7 replies |

jarrad407561

Odd new errors

I have built a website using ecart 5.01 about 6 months ago, and it has been working fine without errors.
Now all of a sudden I'm getting errors on every page, the main page i'm having problems with is the product view page where the add to cart, view cart, clear cart, and checkout buttons all are no longer working..

Nothing has changed since the working version, i have tried restoring backups.

I've asked my host if anything has been changed or updated PHP wise on their servers and they assure me that nothing has changed.

The main problems i'm getting the error is pointing towards WA_eCart/ShoppingCart_PHP.php on line 146

which is this function, line 146 being the last line (set cookie)

php:
function SetCookieInfo($theCookieString)     {

  $numDays   = 14;
  $theDomain = "";
  $thePath   = "";
  $cookSec   = false;
  if ($numDays == "") $numDays="0";
  $theDate = strtotime("+".$numDays." Days");
  setcookie($this->CartName."_Items", $theCookieString, $theDate, $thePath, $theDomain, $cookSec);
}



Does this mean anything to you guys? I have tried rebuilding the product view page with version 5.03 of ecart, and its still having the same errors.

Sign in to reply to this post

Jason ByrnesWebAssist

what is the error?

you need to provide the exact error message for us to help, just telling where the error points to is no help without knowing what the error itself is

Sign in to reply to this post

jarrad407561

The weird thing is I have exactly the same code on my product_search page, and that works fine..

Here are the error's I'm getting:

Add to Cart:

  Warning: Cannot modify header information - headers already sent by (output started at /home/costumff/public_html/product_view.php:1) in /home/costumff/public_html/WA_eCart/ShoppingCart_PHP.php on line 146 Warning: Cannot modify header information - headers already sent by (output started at /home/costumff/public_html/product_view.php:1) in /home/costumff/public_html/WA_eCart/ShoppingCart_PHP.php on line 146  



Clear Cart:

  Warning: Cannot modify header information - headers already sent by (output started at /home/costumff/public_html/product_view.php:1) in /home/costumff/public_html/WA_eCart/ShoppingCart_PHP.php on line 146  



Checkout:

  Warning: Cannot modify header information - headers already sent by (output started at /home/costumff/public_html/product_view.php:1) in /home/costumff/public_html/product_view.php on line 140  



note: line 140 of product_view.php is the header line:

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



Thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

this is the headers already sent error.

the important part of the error to note is:

output started at /home/costumff/public_html/product_view.php:1


this is telling you that the cause of the error is on the product_view.php page at line 1.

see the following thread for details on troubleshooting the headers already sent error:
showthread.php?t=19285

in your case i think the issue is The Unicode Signature (BOM) PHP bug described at the end of that post.

Sign in to reply to this post

jarrad407561

I've attached a screenshot, I cannot uncheck the DOM box. any ideas??

Sign in to reply to this post

Jason ByrnesWebAssist

open it in another text editor like Text Wrangler and go to Save as, most text editors have an option for changing the encoding that you can select, for example in text wrangler there is an encoding option for UTF-8, No BOM

Sign in to reply to this post

jarrad407561

excellent, thanks Jason..
I couldnt use text wrangler because i run windows, but downloaded notepad++ which gave me the option.

Appears to be working now.

Sign in to reply to this post

Jason ByrnesWebAssist

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