CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Get an error for redeclared function because I have two similar payment methods
Pages: [1]

Author Topic: Get an error for redeclared function because I have two similar payment methods  (Read 871 times)

smashingx

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.22
  • MySQL version: n/a
  • PHP version: n/a
Get an error for redeclared function because I have two similar payment methods
July 11, 2012, 02:21:46 pm
I created two payment methods by credit card using the Cybersource extension. The only thing is that they have is different configurations because they are using 2 different accounts for Cybersource. I get an error when I click on an individual then I go to the tab memberships and then I click on the button "Submit Credit Card Membership" saying that I can't declare a function again since it was already declared, this is the error: Fatal error: Cannot redeclare php_hmacsha1() (previously declared in /sites/all/modules/civicrm/packages/CyberSource/HOP.php:8) in sites/all/modules/civicrm/packages/CyberSourceCEA/HOP.php on line 23

I don't know why is reading both configuration files from the payment processor since I will use only one payment processor. I was wondering if there's any workaround this error. By the way, when I disable one of the two payment processors, i don't get any error.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Get an error for redeclared function because I have two similar payment methods

This forum was archived on 2017-11-26.