Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in Payment Module (Admin section)


mirza_yasir4

Recommended Posts

Dear All

 

When I open the admin->modules->payment

 

It gives me this error in the middle of the page, only 2 payment modules appear in the list, remaining don't appear, The error message appears on the top of the list

 

Fatal error: Cannot redeclare class cod in /kunden/alwashe.de/webseiten/imate-shop.com/includes/modules/payment/cod.php on line 13

 

Please anybody help me

 

I am also adding a snapshot of the page here...

 

error20080625mc7.jpg

Thanks and Regards

Yasir Imran Mirza

My Contributions

Link to comment
Share on other sites

This means there is a second file, probably in /includes/modules/payment with this line in it around line 10 - 20 normally.

 

class cod {

 

 

It should be in cod.php but only in that one.

 

Have you created a copy of the file?

 

Look in all the other files in that directory and either change cod to another name or back the file up and delete it.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

  • 2 weeks later...
This means there is a second file, probably in /includes/modules/payment with this line in it around line 10 - 20 normally.

 

class cod {

 

 

It should be in cod.php but only in that one.

 

Have you created a copy of the file?

 

Look in all the other files in that directory and either change cod to another name or back the file up and delete it.

 

 

omg, your guess is correct, Infect I have a habbit of renaming the old files & keep at the same location in my OsCommerce online directory,

last time when I made changings to that file, I renamed old file to '2008-06-06_cod.php' and put new file as 'cod.php'

 

now, When I deleted that file '2008-06-06_cod.php', the error from admin section is gone.

 

Thank you very much bro... :rolleyes:

Thanks and Regards

Yasir Imran Mirza

My Contributions

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...