Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    129
    Plugin Contributions
    0

    Default How to Get Rid of Old Shipping Module?

    Hi All,

    Whenever I make changes to a base zen cart file (when the template process isn't supported by that particular file), I'm in the habit of first renaming the original one to be filename_orig just so that I have something to go back to if I messed up my changes.

    Somewhere along the line, I must have done this with the shipping module. I must have renamed /includes/languages/english/modules/shipping/usps.php to usps_orig.php. Then I deleted usps_orig, I guess.

    So now when I go into the shipping module screen from admin, I get these errors:
    Warning: include(/includes/languages/english/modules/shipping/usps_orig.php) [function.include]: failed to open stream: No such file or directory in admin/modules.php on line 173

    Warning: include() [function.include]: Failed opening '/includes/languages/english/modules/shipping/usps_orig.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in admin/modules.php on line 173

    Fatal error: Cannot redeclare class usps in /includes/modules/shipping/usps_orig.php on line 806


    I tried to fix it by copying usps.php to usps_orig.php but then I still get the last error cannot redeclare class usps.

    Anyway to salvage this? How can I get Zen Cart not to look for usps_orig? With these errors showing, Zen Cart won't let me change any settings in the shipping method.

    Thanks,
    Susie

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How to Get Rid of Old Shipping Module?

    Shipping modules come in pairs of files: one logic module and one language file. If you have one but not the other you'll get errors.

    /includes/modules/shipping/*.php
    must match the same file NAMES in:
    /includes/languages/english/modules/shipping/*.php

    So ... go and delete the usps_orig.php files in either/both folders and your error will go away.

    ... and stop renaming by appending "_orig" but leaving ".php".
    Instead, rename to ".php_orig" or something that's not ending in ".php"
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: How to Get Rid of Old Shipping Module?

    Oh!!! Thanks so much! That solved it.

    And I'll change my practices with renaming.

    --Susie

 

 

Similar Threads

  1. Shipping text - how do I get rid of the "(2-3 days)"?
    By kdipaolo in forum General Questions
    Replies: 3
    Last Post: 27 Feb 2012, 04:11 PM
  2. Replies: 6
    Last Post: 13 Nov 2010, 02:31 AM
  3. How do I get rid of shipping altogether?
    By Birdie in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 1 Sep 2009, 03:15 PM
  4. How to get rid of all shipping during checkout?
    By karma-lab in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 May 2008, 07:00 AM
  5. How do I get rid of, "Free shipping for orders over $0.00"?
    By debtag in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 3 Feb 2008, 05:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg