close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout button has disappeared since php version was changed by host. Is this a related issue? Suggestions?

Thread began 10/10/2013 2:18 pm by rlubaway4049221 | Last modified 10/11/2013 12:58 pm by Jason Byrnes | 3642 views | 7 replies |

rlubaway4049221

Checkout button has disappeared since php version was changed by host. Is this a related issue? Suggestions?

https://micounties.org/events/regDonateMACPAC.php After filling out the form and clicking on donate now button, it takes you to a page with your information and a checkout button to enter the payment gateway (authorize.net). The database is collecting info all right, but the Checkout Button has disappeared. I reuploaded a original copy of the page, didn't work. The last working donation was Sept. 26. On Oct. 3 the php version was set back to 5.3 because the client's wordpress blog page (the rest of the site is in DreamWeaver) was skewed following InMotion Hosting's recent update to a newer php without our knowing. That took weeks to figure out what the issue was. Now this! Any clue?

Sign in to reply to this post

Jason ByrnesWebAssist

on viewing source of the confirm page, i see the following error:

<b>Fatal error</b>: Call to undefined function mhash() in <b>/home/comput42/public_html/testdev/WA_eCart/checkoutScripts/WA_simlib.php</b> on line <b>30</b><br />


sounds like your php server does not have the mhash library enabled.

try changing the WA_eCart/checkoutScripts/WA_simlib.php file to use the hash function instead.

change:
return (bin2hex (mhash(MHASH_MD5, $data, $key)));


to:
return (bin2hex (hash(MHASH_MD5, $data, $key)));

Sign in to reply to this post

rlubaway4049221

Success!

Thanks, Jason. Worked like a charm.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.

Sign in to reply to this post

rlubaway4049221

Another error here. (103)

Oops. Should have continued with a test. Still not working. The checkout button appears but it returns an error with this URL:
https://secure.authorize.net/gateway/transact.dll
The following errors have occurred.
(103) This transaction cannot be accepted.

What I’ve tried:
Changing the php version to 5.2 (was 5.3) Host company says that’s how to get mhash enabled but checkout button still doesn’t show up unless I do what you suggested below.
changing the WA_eCart/checkoutScripts/WA_simlib.php file to use the hash function instead.
change:
return (bin2hex (mhash(MHASH_MD5, $data, $key)));
to:
return (bin2hex (hash(MHASH_MD5, $data, $key)));

Should I also change that MHASH to HASH?
Or is there something about enabling mhash that the host company isn't getting right?

Sign in to reply to this post

Jason ByrnesWebAssist

See PM

Sign in to reply to this post

rlubaway4049221

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you got things 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...