close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Notice: Undefined variable: WA_Authorize_Net_API_Credentials_x_test_request

Thread began 1/28/2018 10:47 pm by lee365928 | Last modified 1/30/2018 9:29 am by Ray Borduin | 2487 views | 12 replies |

lee365928

Notice: Undefined variable: WA_Authorize_Net_API_Credentials_x_test_request

I recently updated my site from mysql to mysqli. Now I'm getting the following error when I place an order. The order does get sent to and approved by authorize.net, but I don't get an email receipt from my site and I get this error rather than the checkout success page.

Notice: Undefined variable: WA_Authorize_Net_API_Credentials_x_test_request in /home4/user/mysite/confirm.php on line 73

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the page that has the error and I can take a look. I may need FTP access and a url to fully debug if I can't spot the problem.

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

lee365928

Sure.

Sign in to reply to this post

Ray BorduinWebAssist

Simply replacing the connection file will break a lot of things. You need to also update any recordsets, inserts, and update code to use MySQLi.

I would need to see this page:
/home4/user/mysite/confirm.php

That is the one with the error.

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

lee365928

Ok, I've attached it. Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

Can I see a copy of the file:
webassist/ecart/checkout/credentials/gateways.php

That appears to be out of sync with the page. Once I see that I can tell you what to update. Make sure you make the attachment private.

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

lee365928

here you go.

Sign in to reply to this post

Ray BorduinWebAssist

On line 73 replace:
$WA_Authorize_Net_API_Credentials_x_test_request

with:
$WA_Authorize_Net_API_Credentials_TestMode

I'll look into why it was written wrong when you updated your credentials.

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

lee365928

Great, thanks. That change let the order go through to the payment gateway. Now I get this error;

Parse error: syntax error, unexpected 'purchases' (T_STRING) in /home4/user/site/webassist/email/waue_5b_1.php on line 52

I looked at line 52 and it's part of the ecart generated code, so I'm not sure. I've attached that file.

Sign in to reply to this post

Ray BorduinWebAssist

The issue appears to be on line 77 of that file. Try updating that line to:

$MailBody = $MailBody . "                    	<img src=\"http://www.fangearlive.com/orderfranciscanalliance/images/garments/".$fangearlive->DisplayInfo("Thumbnail")  ."\"><br />".$fangearlive->DisplayInfo("Name")  ."<br /> Size: " . $fangearlive->DisplayInfo("Size")  ."\r\n";
Sign in to reply to this post
Did this help? Tips are appreciated...
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...