Support

Home Forums Event Espresso Premium Authorize net error

Authorize net error

Posted: October 30, 2012 at 11:57 am

Viewing 5 reply threads


Patrick Charlier

October 30, 2012 at 11:57 am

Hi, We got recently an error message on all our Authorize.net transactions. It used to work fine and haven’t upgraded. The error message: Fatal error: Cannot redeclare class AuthorizeNetException in ******.com/wp-content/plugins/event-espresso/gateways/aim/AuthorizeNet.php on line 24 Any ideas? Thanks.


Sidney Harrell

October 30, 2012 at 12:13 pm

Are you using another plugin that uses the Authorize.net library? You can get around the problem by renaming the exception class on line 24 of /aim/AuthorizeNet.php to EEAuthorizeNetException and renaming it on line 310 of /aim/lib/AuthorizeNetAIM.php.


Patrick Charlier

October 30, 2012 at 12:57 pm

Yes, we use gravity form authorize.net plugin but they used to work together.

Anyway, thanks to you I got the concept down 🙂

I had to keep testing and rename all the class that were conflicting (about 15) and it works now.


Thomas Richards

November 6, 2012 at 5:59 pm

I think this is the exact problem we are having. I found the same error in our log files, and our Authorize.net just stopped working

Sidney-is there a patch coming out that fixes this problem? We used to use GF Authorize.net but haven’t for a long time and it isn’t active on our system. Why can’t event espresso just use unique class names?

Patrick – Would you mind being specific about what you changed so I can replicate it?


Patrick Charlier

November 6, 2012 at 7:24 pm

Hi Thomas,

I don’t remember every file I changed. I compressed the ‘aim’ folder under > wp-content\plugins\event-espresso\gateways\ – You can download it here
You can either replace the entire folder or use a file compare program to find all the changes we did which is basically renamed some functions.

Hope this help.


Thomas Richards

November 9, 2012 at 4:13 pm

Patrick,

Wow thanks for helping me out. I downloaded the file. I’ll see if it works.

Thank you,
Thomas

Viewing 5 reply threads

The support post ‘Authorize net error’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso