close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

unknown column error

Thread began 9/28/2009 5:29 am by georgina_barrett_187762 | Last modified 9/29/2009 10:03 am by Jason Byrnes | 1986 views | 5 replies |

georgina_barrett_187762

unknown column error

I am getting this error when going from the checkout page to the confirm page;
Unknown column '0f44dfdc0323cd379ef89e626ebbd7a7' in 'field list'

I have had a lok through the forum and from what I can tell it has something to do withe the field data type. I have checked through and everything seems ok (plus from the error I can't work out what field is causing the problem)

Sign in to reply to this post

Jason ByrnesWebAssist

Usually this is the OrderReferance ID column in the Orders table.

The string looks like the session ID.

Double check that the OrderReferenceID column is set to text in the DB.


then in the Store order Summary server behavior, make sure the data type for the order reference ID column is set to text as well.

If you still have a problem, double check in the Store Order Summary server behaviors and the Store order detail server behaviors for any column you are storing the session ID in.

Sign in to reply to this post

georgina_barrett_187762

I have just added a coupon discount code to the site using the tutorial 'eCart - Adding Coupons to Your Cart'. Could this have caused the error? Do I need to add another column in the ecart for the coupon? It doesn't say it is necessary in the tutorial as you tie the value to a session variable rather than a variable in the ecart. I am trying to store the coupon value in the orders table in my database.

Sign in to reply to this post

Jason ByrnesWebAssist

No, the coupon code is probably not the cause of the problem. It looks like you are storing the session ID value which is an alpha numeric string into a column that is set to allow only numbers. Check that any column you are storing the Session ID in is a text column.

Sign in to reply to this post

georgina_barrett_187762

That was it. I think are posts crossed as I didn't read the second one before posting mine.

I have one question though. I am using the sessionid as the order id on the orders table and using it as the foreign key in the order details table. I have done a few tests and the sessionid is the same everytime I place an order. I am using the same customer info - but I have logged out and logged back in again and then placed a new order but still the sessionid is the same.

Sign in to reply to this post

Jason ByrnesWebAssist

The session ID wont change unless you close the browser between orders or manually destroy the session.


To manually destroy the session, add the following code to the checkout success page, after the </html> tag:

php:
<?php

// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (isset($_COOKIE[session_name()])) {
    @
setcookie(session_name(), ''time()-42000'/');
}

// Finally, destroy the session.
session_destroy();
?>
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...