Wingpilot66 Posted August 16, 2010 Posted August 16, 2010 HELP! We've been using Oscommerce for over 5 years now with ECHO credit card and we recently upgraded to OsCommerce v2.2 and now in the Payment Modules we get the following messages at the top of the screen. Warning: main(/home/content/m/s/w/mswhitford/html/catalog/includes/languages/english/modules/payment/echo_class.php) [function.main]: failed to open stream: No such file or directory in /home/content/m/s/w/mswhitford/html/catalog/admin/modules.php on line 128 Warning: main() [function.include]: Failed opening '/home/content/m/s/w/mswhitford/html/catalog/includes/languages/english/modules/payment/echo_class.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/m/s/w/mswhitford/html/catalog/admin/modules.php on line 128 we can install/turn on the module and it works somewhat but there are errors. Can anyone point me in the right direction to fix this? thanks in advance, David Quote
germ Posted August 16, 2010 Posted August 16, 2010 This file is missing: /catalog/includes/languages/english/modules/payment/echo_class.php Uploading it from the most recent backup that contains it would be the most logical solution. Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Wingpilot66 Posted August 16, 2010 Author Posted August 16, 2010 This file is missing: /catalog/includes/languages/english/modules/payment/echo_class.php Uploading it from the most recent backup that contains it would be the most logical solution. Hi Germ, I did that previously and I am still getting this error? I guess I should go check to make sure the files exist in that location again. Any other possible suggestions? Thanks again! David Quote
germ Posted August 16, 2010 Posted August 16, 2010 You can check the permissions on the file (should be 644). But that's not the error you're getting. The server says the file isn't where the program expects it to be. Servers don't make mistakes - They just run programs. Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Wingpilot66 Posted August 16, 2010 Author Posted August 16, 2010 You can check the permissions on the file (should be 644). But that's not the error you're getting. The server says the file isn't where the program expects it to be. Servers don't make mistakes - They just run programs. OK, the server was RIGHT! I was wrong. I've put the file in the specified location now I get this error and the payment module section is all screwed up. Payment Modules Fatal error: Cannot redeclare class echophp in /home/content/m/s/w/mswhitford/html/catalog/includes/modules/payment/echo_class.php on line 30 the modules screen is now unusable. and has changed the list entirely. ??? Ughhhh from one to another issue!! Thanks a ton for your help. David Quote
germ Posted August 16, 2010 Posted August 16, 2010 The keyword there is "redeclare". That means this file is in an "include" or "require" more than once. You need to search the trail of "includes" and "requires" and remove (actully I'd just put a // before it to comment it out) all the the first reference to it. There is no "magic bullet" for this. You just have to look dilligently. If you have the site files backed up on a PC there are (free) search utilities available that can assist. I use one called "Agent Ransack", but others are around. Read my signature about making backups - you break it (worse that it is) - you bought it... :blush: Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Wingpilot66 Posted August 17, 2010 Author Posted August 17, 2010 The keyword there is "redeclare". That means this file is in an "include" or "require" more than once. You need to search the trail of "includes" and "requires" and remove (actully I'd just put a // before it to comment it out) all the the first reference to it. There is no "magic bullet" for this. You just have to look dilligently. If you have the site files backed up on a PC there are (free) search utilities available that can assist. I use one called "Agent Ransack", but others are around. Read my signature about making backups - you break it (worse that it is) - you bought it... :blush: Ok, We're making progress. the error in Admin section is gone and I can setup ECHO now. It works on the shopping cart but now I have a NEW error that comes up after entering CC info, etc... and confirming the order. here is the error: Warning: before_process(includes/echo_class.php) [function.before-process]: failed to open stream: No such file or directory in /home/content/m/s/w/mswhitford/html/catalog/includes/modules/payment/echo_cc.php on line 142 Warning: before_process() [function.include]: Failed opening 'includes/echo_class.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/m/s/w/mswhitford/html/catalog/includes/modules/payment/echo_cc.php on line 142 Fatal error: Cannot instantiate non-existent class: echophp in /home/content/m/s/w/mswhitford/html/catalog/includes/modules/payment/echo_cc.php on line 143 THanks again!!! DAvid Quote
germ Posted August 17, 2010 Posted August 17, 2010 Looks like it's saying this file is missing: /catalog/includes/echo_class.php Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Wingpilot66 Posted August 17, 2010 Author Posted August 17, 2010 Looks like it's saying this file is missing: /catalog/includes/echo_class.php Hi Jim, Ok, We're getting real close to solving this issue. all is working as far as Echo goes on the cart side. Now, it errors out when it is sending data to echo. We called Echo and they are saying that the transaction is failing because somewhere on the cart side is it adding $11,000 in tax and it will not go thru. I've checked all zones, countries and the tax rate. Those are all corect. Any ideas where I could look to find the $11,000 dollar number??? Thanks again for all your help. David Quote
Wingpilot66 Posted August 20, 2010 Author Posted August 20, 2010 BUMP Hi Jim, Ok, We're getting real close to solving this issue. all is working as far as Echo goes on the cart side. Now, it errors out when it is sending data to echo. We called Echo and they are saying that the transaction is failing because somewhere on the cart side is it adding $11,000 in tax and it will not go thru. I've checked all zones, countries and the tax rate. Those are all corect. Any ideas where I could look to find the $11,000 dollar number??? Thanks again for all your help. David Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.