Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default UPS XML - problems copying to server

    Hello,

    I'm trying to install UPSXML (from Wiki) to my server under my following directories...

    store/admin/includes/classes/xmldocument.php
    store/includes/classes/xmldocument.php
    store/includes/languages/english/modules/shipping/upsxml.php
    store/includes/modules/shipping/upsxml.php

    however, after copying files there, I get this error in my Admin panel:

    Fatal error: Cannot redeclare exclude_choices() (previously declared in C:\server\xampp\htdocs\store\includes\languages\english\modules\shipping\upsxml. php:880) in C:\server\xampp\htdocs\store\includes\modules\shipping\upsxml.php on line 910

    I suppose I could have copied the xmlups.php to the wrong folders? Looks like zen doesn't like part of the php file though.
    Using Zen Cart 1.3.7.1 and php 5.05
    -Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: UPS XML - problems copying to server

    You'll notice that there are multiple files of the same name in the zip file you downloaded.
    Be sure that when you unzip you tell it to extract the folder names too.
    Then be sure to upload the right files to the right folders.

    You've got the module file in the language folder.
    .

    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
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: UPS XML - problems copying to server

    hello again,

    I'm still not sure where I went wrong. I've looked through my folders and made sure the right files were in the right folders(at least it appears that way).

    You said i have the module file in the language folder? Where did I go wrong with what I have here?
    store/includes/languages/english/modules/shipping/upsxml.php
    Isn't that what the installation instructions state?

    Or were you referring to something else?
    thanks again.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: UPS XML - problems copying to server

    When you unzipped, you had files in specific folders, right? They need to be uploaded to the same folder structure as they came in ... don't mix them up just because the filenames are the same. The folder structures are important.

    What I meant was the error message is telling you that the content of the file belonging in /includes/modules/shipping/upsxml.php appears to be in the /includes/languages/english/modules/shipping/upsxml.php file.
    .

    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.

 

 

Similar Threads

  1. UPS discounted rates not showing in UPS XML
    By cspan27 in forum Addon Shipping Modules
    Replies: 51
    Last Post: 27 Jun 2016, 03:52 PM
  2. v151 UPS-XML problems with Mexico
    By BGundlach in forum Addon Shipping Modules
    Replies: 2
    Last Post: 10 Jun 2014, 12:55 PM
  3. UPS XML Stopped Communicating with UPS... HELP!
    By rconway28 in forum Addon Shipping Modules
    Replies: 28
    Last Post: 23 Nov 2011, 03:31 PM
  4. Replies: 6
    Last Post: 22 Nov 2011, 11:09 PM
  5. UPS Shipping - not working (UPS-XML addon)
    By breck in forum Addon Shipping Modules
    Replies: 30
    Last Post: 20 Aug 2010, 03:24 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