osCmax v2.5 User Manual
Results 1 to 8 of 8

FEDEX shipping module error

This is a discussion on FEDEX shipping module error within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; I have recently installed OsCommerce and have most modules functioning. The included contrib for FEDEX does not install correctly. The ...

      
  1. #1
    Lurker
    Join Date
    Nov 2004
    Posts
    4
    Rep Power
    0


    Default FEDEX shipping module error

    I have recently installed OsCommerce and have most modules functioning. The included contrib for FEDEX does not install correctly. The following error message is printed:

    Warning: main(includes/include_once.php): failed to open stream: No such file or directory in /home/home-sch/public_html/ecommerce/os/catalog/includes/modules/shipping/fedex.php on line 4

    Warning: main(): Failed opening 'includes/include_once.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/home-sch/public_html/ecommerce/os/catalog/includes/modules/shipping/fedex.php on line 4

    Not being PHP experienced, I am lost. I have searched the forums and have not seen this error. I have requested help from provider, but have not received any help.

    Has anyone seen this error and have insight how to correct? Thanks for input.

    JStevenT

  2. #2
    Member
    Join Date
    Nov 2004
    Posts
    89
    Rep Power
    0


    Default

    It means that includes/include_once.php does not exist. If you were transferring files through FTP, it most likely got dropped off, because that happens a lot with FTP. Copy that file into the /includes dorectory and it should go away.

  3. #3
    Lurker
    Join Date
    Nov 2004
    Posts
    4
    Rep Power
    0


    Default

    Hello vinces,

    Thanks for the quick comeback! I did a complete search of my OsCommerce download and there is not a includes_once.php file. In fact, there is no FEDEX folder either. I will not use FEDEX initially until I resolve the file issues we have uncovered. Thanks again.

    JStevenT

  4. #4
    Lurker
    Join Date
    Nov 2004
    Posts
    4
    Rep Power
    0


    Default

    Quote Originally Posted by JStevenT
    Hello vinces,

    Thanks for the quick comeback! I did a complete search of my OsCommerce download and there is not a includes_once.php file. In fact, there is no FEDEX folder either. I will not use FEDEX initially until I resolve the file issues we have uncovered. Thanks again.

    JStevenT
    Hello,

    I found the include_once.php file in the includes directory. The code is:

    <?
    if (!defined($include_file . '__')) {
    define($include_file . '__', 1);
    include($include_file);
    }
    ?>

    The fedex.php has the following code in first few lines:
    <?php
    /* $Id: fedex.php,v 1.1.1.1 2004/06/21 22:33:43 scorzo Exp $ */
    if ($action != 'install' && $action != 'remove' && $action != 'check') { // Only use language for catalog
    $include_file = DIR_WS_LANGUAGES . $language . '/modules/shipping/fedex.php';include(DIR_WS_INCLUDES . 'include_once.php');
    }
    // only these three are needed since FedEx only ships to them
    // convert TEP country id to ISO 3166 id
    $fedex_countries = array(38 => 'CA',138 => 'MX',223 => 'US');
    $fedex_countries_nbr = array(38,138,223);
    switch($action) {
    case 'select' :
    print "<TR><TD>" . FONT_STYLE_MAIN . " ";
    print htmlentities(SHIPPING_FEDEX_NAME) . "</FONT></TD>";
    print "<TD> </TD>";
    print "<TD ALIGN=\"right\"> <INPUT TYPE=\"checkbox\" NAME=\"shipping_quote_fedex\" VALUE=\"1\"";
    // if(!$shipping_count) {
    print ' CHECKED';
    // }
    print "></TD></TR>\n";
    break;

    The error code speaks to line 4 in fedex.php which l listed. Does anyone see the error?

    JStevenT

  5. #5
    Member
    Join Date
    Nov 2004
    Posts
    89
    Rep Power
    0


    Default

    I think the problem is that there is no Fedex folder. It probably got skipped if you were transferring it through FTP. Try just uploading that folder specifically, both in includes/modules and includes/languages/english/modules. That hopefully may fix it. I think the error is that it is tryign to call a file that doesn't exist in line 4.

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    89
    Rep Power
    0


    Default

    When I said upload folder, I meant file. Sorry about that.

  7. #7
    Lurker
    Join Date
    Nov 2004
    Posts
    4
    Rep Power
    0


    Default

    Hello Vince,

    I tried adding the includes_once.php in the two directories and the number of errors increased. Took them out and back to same original error. The new question is what is the /usr/local/lib/php refer to? Is this a missing operator in my PHP installation? or just a generic path call out?


    Warning: main(): Failed opening 'includes/include_once.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/home-sch/public_html/ecommerce/os/catalog/includes/modules/shipping/fedex.php on line 4

    I am puzzled.

    JStevenT

  8. #8
    Member
    Join Date
    Nov 2004
    Posts
    89
    Rep Power
    0


    Default

    /usr/local/lib/php sounds like it might be the path to PHP on your server. I am not sure what the error message is saying. Does anybody else have any input?

Similar Threads

  1. No FedEx Shipping Label
    By torweb in forum osCMax v2 Features Discussion
    Replies: 4
    Last Post: 08-25-2006, 02:34 PM
  2. Less Fedex Shipping Options
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 08-20-2006, 03:52 PM
  3. International FedEx Shipping
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 06-29-2006, 02:48 PM
  4. Fedex Shipping Problems
    By driwashsolutions in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 01-04-2006, 11:44 AM
  5. FEDEX Module Error
    By reggiman in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 02-15-2005, 03:04 PM

Bookmarks

Posting Permissions

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