Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Echo Online Contribution


EricPrice

Recommended Posts

I installed the echo online contribution because I intend to use them for credit card processing. However, when I get to the last confirmation page and I hit the confirm order button I get this error.

 

Fatal error: Cannot redeclare set_ec_address1() in /var/www/html/dragonscalecounters.com/www/catalog/includes/echo_class.php on line 558

 

 

The particular line it is balking at is

 

function set_ec_address1($value)

{

$this->ec_address1 = urlencode($value);

 

}

 

Without giving much of a look at the code itself (which I assume works) It appears functionally similiar to the lines both above and below it.

 

Can anyone help out?

 

Eric Price

Dragon Scale Counters, LLC

http://www.dragonscalecounters.com

Link to comment
Share on other sites

I fixed this problem:

 

Here's what I did:

 

Go to includes/echo_class.php

 

And delete the function that it lists as an error.

It will probably give you another error for a different function - delete that function, then do the same again

 

I deleted three functions. They must be duplicate entries.

 

This happened to me when my web host upgraded the php version.

Flag%20-%20Daniel%20-%20Multicolor%20on%20Clear.gif
Link to comment
Share on other sites

Thanks for the heads up. This is what I ultimately ended up doing as well just on the basis of trial and error. I wonder if we could append this information somehow to the contribution itself? I wonder if its only with certain versions of php.

Link to comment
Share on other sites

Are many of you using the echo contribution with os2.2?

I'm using the latest contribution, with the dec. snapshot, and Linda's free_pay/free_ship.

 

The problem I'm having may be an Echo issue or cart issue.?? I'm looking for a little feedback. The orders proccess correctly for users, but on the "view transactions" at echo-inc the expiration date is wrong. Sometimes the year is +3, +4, -4, etc. There's no apparant pattern.

 

In the mysql database, the expiration date shows correctly. The final_price, and auth_code, along with other fields are missing.

 

Also, is there any easy fix for encrypting or Xing out the echo ccard numbers when only using echo payments? Since I'm only using echo payments, I don't have the other default card on which will X out the middle numbers.

 

I like echo- just trying to get it working smoothly with the nice oscommerce features.

 

Any direction will help.

Thanks

-Doug

-Doug

Link to comment
Share on other sites

Here's the answer by A. Schultz

 

In the includes/modules/payment/echo_cc.php look for

a line that says:

$echoPHP->set_ccexp_year($HTTP_POST_VARS['cc_expires_month']);

 

Change it to:

$echoPHP->set_ccexp_year($HTTP_POST_VARS['cc_expires_year']);

 

 

Seems like a little goof when the module was rewritten.

I believe updated contribution will be posted soon. :D

-Doug

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...