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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Changing to Linux host server caused the buttons on cart page to stop working

Thread began 9/08/2010 10:22 am by georgevargasa302189 | Last modified 9/08/2010 4:18 pm by Jason Byrnes | 818 views | 8 replies |

georgevargasa302189

Changing to Linux host server caused the buttons on cart page to stop working

I changed my host server on GoDaddy to Linux to get PHP mail to work. The good news is that that works now and I get the confirmation emails.

The weird news is that my shopping carts buttons; 'continue shopping' and 'checkout', just redirect to the shopping cart, instead of going to the right place.

The same page works fine on my local server.

If I go to checkout with a different link. it actually completes the checkout process.

I tried to change the server beheavior for the continue shopping to uncheck the 'if exists' box and link to my directly to shopping page, but it still fails.

Any ideas?

Sign in to reply to this post

georgevargasa302189

Here is some additional info.
I turned on PHP error reporting and I see the following error when I go to the Cart page,

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/g/e/o/georgevargas1/html/shoppingcart.php:5) in /home/content/g/e/o/georgevargas1/html/WA_eCart/WA_eCart_Definition_PHP.php on line 465

Also when I hit the continue shopping button I get,

Warning: Cannot modify header information - headers already sent by (output started at /home/content/g/e/o/georgevargas1/html/shoppingcart.php:5) in /home/content/g/e/o/georgevargas1/html/shoppingcart.php on line 167

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

Jason ByrnesWebAssist

as the error says, the output started near line 5:
output started at /home/content/g/e/o/georgevargas1/html/shoppingcart.php:5

At line 4 you have a blank space at the end causing the error:


"?> "


remove the blank space at the end to fix the error.

Sign in to reply to this post

georgevargasa302189

ok that gets rid of the error messages, but the originaly problem in the first post is still occuring.

Any Ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

send the most recent copy of your page.


when I try the continue button, I get the following error:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/g/e/o/georgevargas1/html/shoppingcart.php:62) in /home/content/g/e/o/georgevargas1/html/shoppingcart.php on line 65


there is output to the page at line 62.

Sign in to reply to this post

georgevargasa302189

I also noticed that on the local server the checkout button on the cart page does not work now either. It may be that this is unrelated to the change of host to Linux. The last thing I was playing with was the setting the email port number to 25.

Here is the latest page.

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

Jason ByrnesWebAssist

the checkout link does not work because there is no page specified in the checkout server behavior to redirect to.


the error is occurring because of a blank line in the code.


at line 57, there is a blank line between code blocks that needs to be removed:
56- ?>
57-
58-<?php


in the server behaviors tab, double click the checkout server behavior and specify a page to direct to for checkout.

Sign in to reply to this post

georgevargasa302189

Thank you very much!!! I have no idea how that happened.

It now works fine on the server!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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