Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dreaded Fatal Error


dskowron

Recommended Posts

Posted

I have had an install of OSCommerce running just fine for several years. Recently I moved it to a new server. I also updated my Authorize.net AIM module. I placed it into the two places it was on my old server. One is in the includes/modules/payment directory under the shop's root, and the other is in the payment directory under languages/english/modules/payment directory. When I try to configure the AIM module, I get this:

 

"Fatal error: Cannot redeclare class authorizenet_aim in /home2/redbeart/public_html/osc/includes/modules/payment/authorizenet_aim.php on line 15".

 

I have searched this foeum for two days and have seen the fixes. None seem to be working for me. Can someone please give me a clue? Where else could this class be defined but in the AIM modules? It's driving me batty!

 

Thank you in advance for any help.

Posted

The php code Authorize.net enabling module goes in includes/modules/payment/ but the other location, languages/english/modules/payment/, is for language definitions. This is a different, separate file with the same name as the module that it provides definitions for.

For ALL problems, please review this link first -> osCommerce Knowledge Base

Posted

I absolutely owe you a debt of gratitude! Nowhere was that ever mentioned! I always wondered why there were two files of the same name.

 

Do you play guitar? I can reward you if you do. See redbeartrading.com if you want, and contact me via the link there.

 

Thank you so much. I hope this can be of help to anyone else.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...