Guest Posted November 3, 2007 Share Posted November 3, 2007 I apologize in advance for being something of a support nightmare, but here's my problem. I installed osCommerce about 3 years ago for a site selling reproduction furniture. At the time, I immersed myself in osCommerce and felt I had a pretty good handle on what I was doing, up to and including installing a flat rate shipping module that included specific rates for certain price ranges and a percentage rate for prices over a certain dollar amount. osCommerce and all add-ons installed like a breeze, we customized the look of the site, we were off and running, everything pretty much ran like clockwork and I never had to think about osCommerce again really. Now here I am 3 years later and my client wants to change his shipping rates. When we access the relevant admin panel section (http://www.sitename.com/catalog/admin/modules.php?set=shipping) we get the following error: Warning: main(/home/circa/public_html/catalog/includes/languages/english/modules/shipping/table-bkp.php) [function.main]: failed to open stream: No such file or directory in /home/circa/public_html/catalog/admin/modules.php on line 128 Warning: main(/home/circa/public_html/catalog/includes/languages/english/modules/shipping/table-bkp.php) [function.main]: failed to open stream: No such file or directory in /home/circa/public_html/catalog/admin/modules.php on line 128 Warning: main() [function.include]: Failed opening '/home/circa/public_html/catalog/includes/languages/english/modules/shipping/table-bkp.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/circa/public_html/catalog/admin/modules.php on line 128 Fatal error: Cannot redeclare class table in /home/circa/public_html/catalog/includes/modules/shipping/table.php on line 13 Additionally, underneath this is the usual osCommerce interface where you click on an item and then click on the Edit button to the right -- except that the right hand side of that does not load at all. If that made as little sense as I think it did, I can upload a screenshot. Because I do not remember the name of the shipping module I installed I despair of ever solving this. Does anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted November 3, 2007 Share Posted November 3, 2007 Does anyone have any ideas? Looks like you used table.php but left a backup named table-bkp.php. This is a no-no in osC because the code looks in the shipping modules, reads all files with a php extension and then loads all the language files with the same name in the language directory. For the backup there is no corresponding language file and moreover, when it is loaded the "real" file table.php cannot be loaded because it would be declared twice (once in the backup and once in the "real" file). Solution: rename the backup to table-bkp.php.txt. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 3, 2007 Share Posted November 3, 2007 Thank you thank you thank you! That solved the problem. Never in history has there been a speedier, more useful response. I'm very grateful. Quote Link to comment Share on other sites More sharing options...
shardayyy Posted June 16, 2009 Share Posted June 16, 2009 Thank you very much, i backed up my table.php to backup_table.php and that was the problem. renamed it to backup_table.php.txt and the page displayed fully. Thanks from the future... lol 2007 ---> 2009 Looks like you used table.php but left a backup named table-bkp.php. This is a no-no in osC because the code looks in the shipping modules, reads all files with a php extension and then loads all the language files with the same name in the language directory. For the backup there is no corresponding language file and moreover, when it is loaded the "real" file table.php cannot be loaded because it would be declared twice (once in the backup and once in the "real" file). Solution: rename the backup to table-bkp.php.txt. Quote Link to comment Share on other sites More sharing options...
dtmp Posted June 18, 2009 Share Posted June 18, 2009 Thank you very much, i backed up my table.php to backup_table.php and that was the problem. renamed it to backup_table.php.txt and the page displayed fully. Thanks from the future... lol 2007 ---> 2009 I only had that last line as an error when I tried to display the shipping module page in admin. And I only had one table.php file in that folder. I renamed it and it worked, so what was that file for anyway? Quote Link to comment Share on other sites More sharing options...
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.