PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Authorize.Net Settings - Fatal error: Cannot redeclare class AuthorizeNetARB

  1. Hi,

    After installing and activating the Authorize.Net add-on, I receive the following error when trying to access the settings page for Authorize.Net:

    Fatal error: Cannot redeclare class AuthorizeNetARB in /home/domain/public_html/wp/wp-content/plugins/gravityformsauthorizenet/api/lib/AuthorizeNetARB.php on line 131

    This is under Forms -> Settings -> Authorize.Net

    Any ideas as to what is causing this?

    Posted 7 years ago on Friday March 9, 2012 | Permalink
  2. To further troubleshoot this, I have deactivated our store plugin, which is Shopp. Shopp currently has a payment gateway installed for access to Authorize.Net as well and this is causing a conflict between both add-ons.

    I am not sure where to go from here.

    UPDATE:
    I looked into the files for the Authorize.Net addon. I found the AuthorizeNet.php file in:

    plugins/gravityformsauthorizenet/api/AuthorizeNet.php

    And commented out the line:

    require dirname(__FILE__) . '/lib/AuthorizeNetARB.php';

    Now, I have access to the settings without conflict. I could also disable the payment gateway for Authorize.Net in the Shopp plugin to get access to the settings without "Fatal Error."

    Once I got everything set up I tried some test transactions with test and real credit cards. Receiving the errors for the credit card itself being incorrect.

    Ideas?

    Posted 7 years ago on Friday March 9, 2012 | Permalink
  3. Joshua.MacLeod
    Member

    Any news on this? I have shopp also and when submitting just getting ajax loading forever till I disabled shopp - authorize.net pluggin.

    Posted 7 years ago on Monday April 23, 2012 | Permalink
  4. I"m receiving this error too, is there any progress on this from support?

    Posted 7 years ago on Thursday June 21, 2012 | Permalink
  5. @craiggrella, do you have any other plugins installed which utilize authorize.net?

    Posted 7 years ago on Friday June 22, 2012 | Permalink
  6. Joshua.MacLeod
    Member

    Since I am using Automated Recurring Billing through Gravity Forms and not Shopp, I renamed class in shopp plugin to avoid conflict.

    plugins - AuthorizeNet - Authorize.net.php - Class AuthorizeNetARB

    Posted 7 years ago on Thursday June 28, 2012 | Permalink
  7. David Peralty
    Administrator

    Did that fix your issue Joshua?

    Posted 7 years ago on Thursday June 28, 2012 | Permalink