Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2010
    Posts
    4
    Plugin Contributions
    0

    Default USPS SHipping module error

    I did something wrong when installing the USPS shipping module update and now get the error:
    "
    Fatal error: Cannot redeclare class usps in D:\Hosting\5853833\html\includes\modules\shipping\usps.php on line 798 "

    When I try to access the shipping module.

    Also, does anyone know what file the information for the USPS shipping is saved in? I am trying to find my old (worked) USPS ID from an otherwise trashed (failed) ZenCart installation.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS SHipping module error

    It actually sounds like you have a backup copy of the usps.php shipping module loaded on the server ...

    The /includes/modules/shipping is an autoloading directory ...

    NOTE: this can also happen if you accidentally overwrite the language file with the code file in:
    /includes/languages/english/modules/shipping
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: USPS SHipping module error

    Thanks, Ajeh, that fixed the first problem. Any idea on the second issue (in what file the information on id and such for the USPS shipping is stored)?

  4. #4
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: USPS SHipping module error

    Quote Originally Posted by Ajeh View Post
    The /includes/modules/shipping is an autoloading directory ...
    What does this mean, exactly? I've noticed that some modules seem to be scanned by ZC when they're installed, which is a new one on me, as I'm accustomed to php files being interpreted on the fly. Is this what you're talking about?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS SHipping module error

    Quote Originally Posted by dldesigntore View Post
    Thanks, Ajeh, that fixed the first problem. Any idea on the second issue (in what file the information on id and such for the USPS shipping is stored)?
    You can try contacting USPS if you cannot find your original email ...

    You might try checking USPS site and see if they have something to resend you the information based on your email address ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS SHipping module error

    Quote Originally Posted by mzimmers View Post
    What does this mean, exactly? I've noticed that some modules seem to be scanned by ZC when they're installed, which is a new one on me, as I'm accustomed to php files being interpreted on the fly. Is this what you're talking about?
    There are several directories in Zen Cart that are auto loading, meaning that any file in them are "loaded" ...

    So if I have a file called:
    /includes/modules/shipping/usps.php

    and another file called:
    /includes/modules/shipping/usps-old.php

    it would load both files ...

    The problem is, both files contain the same code and causes the error as the file content can only be loaded once ...

    I rename files to:
    /includes/modules/shipping/usps.php_OLD

    so that it is not a php file ...

    NOTE: The better solution is to not leave backup files on the server ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 USPS Shipping Module Error
    By Christian_Wagner in forum Addon Shipping Modules
    Replies: 11
    Last Post: 31 May 2013, 10:42 PM
  2. USPS Shipping Module Error
    By outeredge2 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 10 Mar 2013, 07:07 AM
  3. USPS Shipping module and debug error
    By buildingblocks in forum Addon Shipping Modules
    Replies: 6
    Last Post: 13 Nov 2010, 09:27 PM
  4. USPS Shipping Module Error Codes
    By AirsoftOutfitter in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Jun 2010, 11:36 PM
  5. Internal error caused by USPS Shipping Module, How to resolve it?
    By transtor in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Mar 2009, 01:01 AM

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