Thread: usps.php error

Results 1 to 10 of 13

Threaded View

  1. #1
    Join Date
    Dec 2006
    Posts
    8
    Plugin Contributions
    0

    Default usps.php error

    I am running 1.3.7

    I installed the new usps.php file to correct the shipping problems and now I get the following error:

    Fatal error: Cannot redeclare class usps in /home/skycandl/public_html/includes/modules/shipping/usps.php on line 13

    This is the code:
    PHP Code:
    <?php
    /**
     * @package shippingMethod
     * @copyright Copyright 2003-2007 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: usps.php 6474 2007-11-18 15:59:32Z ajeh $
     */
    /**
     * USPS Shipping Module class
     *
     */
    class usps extends base {
      
    /**
       * Declare shipping module alias code
       *
       * @var string
       */
      
    var $code;
    I've tried changing class usps extends base { to class usps { but that didn't fix anything. I had uninstalled the module before installing the new file and I deleted the old file before uploading the new one.

    Any help would be greatly appreciated.

    Thank you,
    Last edited by GERob; 20 Nov 2007 at 08:24 PM.

 

 

Similar Threads

  1. v154 PHP Fatal error Call-time pass-by-reference - tpl_yahootreemenu.php
    By RubenZ in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 6 Feb 2015, 05:24 PM
  2. v151 New usps module says "ERROR missing saveusps.php"
    By linniedarling in forum Addon Shipping Modules
    Replies: 2
    Last Post: 23 Mar 2014, 02:33 PM
  3. Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()
    By divinelighting in forum Addon Shipping Modules
    Replies: 2
    Last Post: 11 Jun 2011, 03:17 AM
  4. Replies: 3
    Last Post: 13 Mar 2009, 05:20 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