mirza_yasir4 Posted June 25, 2008 Share Posted June 25, 2008 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... Thanks and Regards Yasir Imran Mirza My Contributions Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted June 26, 2008 Share Posted June 26, 2008 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 More sharing options...
mirza_yasir4 Posted July 7, 2008 Author Share Posted July 7, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.