close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shop stopped working

Thread began 10/12/2022 7:51 pm by Roxana | Last modified 10/14/2022 1:13 pm by Ray Borduin | 807 views | 12 replies |

Roxana

Shop stopped working

Out of the blue, when customers order from our shop, they do not get a confirmation email, and we don't get the order email.

Email addresses are working.

I deleted the code that writes order details to the database quite a while ago (for security reasons), but we still received order emails, and our customers received confirmation emails.

I didn't change the code or the database.

To double-check, I uploaded the pages confirm and checkout pages.

As a result, the page now throws an error (duplicate entry for primary key).

How can I fix this?

Sign in to reply to this post

Ray BorduinWebAssist

Attach a copy of the page that gives the error and I can probably spot where the problem is to fix the error.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Thanks.

Checkout international forwards to the other checkout pages as needed (Germany, Canada, Europe, International).

Sign in to reply to this post

Ray BorduinWebAssist

All of your insert bindings seem wrong on your confirm pages in your "store cart summary" and "store cart details" server behaviors.

You should probably delete that code if you don't need it. To get it working without the error you could just change:
$ConditionalQuery->bindColumn("OrderID", "d", "segufix_OrderID", "WA_DEFAULT");
to:
$ConditionalQuery->bindColumn("OrderID", "d", "". ($_SESSION["segufix_OrderID"]) ."", "WA_DEFAULT");

But you might as well delete that code chunk entirely since it doesn't seem to insert any relevant data.

I don't even see the email code on the page. Maybe you removed the email code when you thought you were removing the database insert code? The database insert code appears to be in place it is just inserting bad data.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

I left the order ID as a check to see that the order numbers match the emails that we are getting.

It has been working for years and all of a sudden it doesn't.

I changed the port setting in line 83, which weirdly took care of the error message. The success page takes some time to load, but it still doesn't forward emails to me and the customer. On this page checkout_success_canada.php

I suspect it is an SMTP issue. There is no space to enter a password, but our provider says it needs a password (never did before).

Sign in to reply to this post

Ray BorduinWebAssist

You can update your email settings from the success page. If you click the email settings icon in the UI you can set a username and password. The server name looks wrong too, so confirm that with your email hosting provider as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Thank you, Ray, it works now. You are a lifesaver.

I found the setting where to enter the password. A password was never required since I built the shop in 2009. That changed without notice.

I have no idea how the error message played into that (the screenshot I sent you). It was there, and then it wasn't.

Sign in to reply to this post

Ray BorduinWebAssist

You should still probably update the line:
$ConditionalQuery->bindColumn("OrderID", "d", "segufix_OrderID", "WA_DEFAULT");
to:
$ConditionalQuery->bindColumn("OrderID", "d", "". ($_SESSION["segufix_OrderID"]) ."", "WA_DEFAULT");

The error is probably still there but the page redirects before you see it.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Thanks. I made the change. It works.

Sign in to reply to this post

Roxana

Hi Ray, I have one more question:

The problem was that our email provider now requires a password and username. The change wasn't announced.

Can I double the email behaviour with different settings? I want to use a second or maybe even a third provider to send a copy of the order to myself. If one provider fails, I still have one or two more providers to fall back on.

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