close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Confirm Page not sending email to customer - PS2

Thread began 8/16/2010 6:40 am by robert329616 | Last modified 8/17/2010 8:19 am by Jason Byrnes | 5135 views | 8 replies |

robert329616

Confirm Page not sending email to customer - PS2

Hello,

I am having an issue when I test my site using Power Store 2.
Everything works up until I confirm the order (I am using direct pay with paypal, not paypal express). The order receipt page shows but the email is not sent to the customer. I went through the forum over the weekend and applied the fix's that I found including downloading the new confirm.php page from known solutions.

None worked. When I use that confirm page the order receipt page does not show but the email receipt is sent. I saw in one of the threads that another person had the same issue but there wasn't a fix.

I also added the code to show errors but none showed up. Also, all of the other emails send fine from the site.

Thanks for the help.

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

OK, so the updated power store files fixed the mail sending problem, but now the redirect to the success page is not working.

To trouble shoot the redirect issue, add the following code at line 1 of the confirm page:
<?php
error_reporting(E_ALL);
ini-set('display_errors','on');
?>[/php]

most likely, a php error is occurring that is preventing the redirect. this code will turn error reporting on, post back any errors you see so we can troubleshoot the issue.

Sign in to reply to this post

robert329616

Jason,

This is the error I am getting:

Notice: Use of undefined constant ini - assumed 'ini' in /home/content/v/f/c/vfcreative/html/bpstest/confirm.php on line 3

Fatal error: Call to undefined function set() in /home/content/v/f/c/vfcreative/html/bpstest/confirm.php on line 3

Not sure why it would be line three since that is the error display code.

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

my apologies, there was a typo in the previous code, it should be:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

robert329616

I am not sure what happened but the page is not working at all now, it does not update the db or send an email.

I added you code to the top but it did not show any errors. I did find and add another code that gave the following errors:

Warning: include(file_with_errors.php) [function.include]: failed to open stream: No such file or directory in /home/content/v/f/c/vfcreative/html/bpstest/confirm.php on line 4

Warning: include() [function.include]: Failed opening 'file_with_errors.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/v/f/c/vfcreative/html/bpstest/confirm.php on line 4

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/v/f/c/vfcreative/html/bpstest/confirm.php:4) in /home/content/v/f/c/vfcreative/html/bpstest/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3

The code was:
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
include("file_with_errors.php");
?>

Hopefully this helps.

Thanks.
Rob

Sign in to reply to this post

robert329616

Jason,

I went back to the beginning where everything worked except the email.
I then copied the known issue confirm.php file to give it another try but it gave me the same issues. There were no errors shown on my orig file (bpstest/).

Is there any way to fix the email problem starting with the confirm.php file I have posted and attached? All of the other email functions are working as well.

Thanks for the help.

Rob

Attached Files
confirm.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 1064:

php:
$WA_redirectURL = "checkout_success.php";



to:

php:
$WA_redirectURL = "";





then change line 1117 - 1120

php:
//Send Mail All Entries

  if (""!="")     {
    header("Location: ");
  }



to:

php:
//Send Mail All Entries

  if ("checkout_success.php"!="")     {
    header("Location: checkout_success.php");
  }
Sign in to reply to this post

robert329616

Jason,

That worked perfectly, thanks so much for the help!

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

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