Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in admin of shipping module.


Guest

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 year later...

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...