Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    help question problem with UPSXML after moving hosting

    not sure if this is the correct area but...

    I moved hosting and now I get an error in upsxml.php in admin trying to open the shipping modules page (checkout works). the error has to do with this line:
    require ('includes/classes/xmldocument.php');

    if I change it to:
    require ('../includes/classes/xmldocument.php');

    it works but then checkout does not.

    I know I'm missing something simple. I tried changing the line to:

    try {
    require ('includes/classes/xmldocument.php');
    }
    catch (Exception $e) {
    require ('../includes/classes/xmldocument.php');
    }


    any ideas?

  2. #2
    Join Date
    Jun 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: problem with UPSXML

    well, this works:
    if (file_exists('includes/classes/xmldocument.php')){
    $xmlFile='includes/classes/xmldocument.php';
    }else {
    $xmlFile='../includes/classes/xmldocument.php';
    }
    require($xmlFile);


    but still not sure why it broke in the first place!

 

 

Similar Threads

  1. v139d Problem with admin after migration to new hosting company.
    By TinMan780 in forum General Questions
    Replies: 2
    Last Post: 17 Jan 2013, 05:05 AM
  2. v138a after moving to different server problem with login to admin
    By Ambra in forum Installing on a Windows Server
    Replies: 6
    Last Post: 16 Jun 2012, 07:55 PM
  3. Problems after moving hosting service
    By enquirer66 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 24 Aug 2010, 07:01 PM
  4. 0 DB_ERROR_NOT_CONNECTED ADMIN Problem After Moving To New Hosting
    By HelenSama in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 1 Apr 2009, 10:32 PM
  5. Problem with images after moving to another folder
    By wolfsinger in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 Sep 2008, 07:32 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