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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| Hello vinces, Thanks for the quick comeback! JStevenT |
|
#4
| |||
| |||
| Quote:
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 . "&nbsp;"; print htmlentities(SHIPPING_FEDEX_NAME) . "</FONT></TD>"; print "<TD>&nbsp;</TD>"; print "<TD ALIGN=\"right\">&nbsp;<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
| |||
| |||
| 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
| |||
| |||
| When I said upload folder, I meant file. Sorry about that. |
|
#7
| |||
| |||
| 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
| |||
| |||
| /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? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No FedEx Shipping Label | torweb | osCMax v2 Features Discussion | 4 | 08-25-2006 02:34 PM |
| Less Fedex Shipping Options | torweb | osCMax v2 Customization/Mods | 2 | 08-20-2006 03:52 PM |
| International FedEx Shipping | torweb | osCMax v2 Customization/Mods | 0 | 06-29-2006 02:48 PM |
| Fedex Shipping Problems | driwashsolutions | osCMax v2 Features Discussion | 0 | 01-04-2006 12:44 PM |
| FEDEX Module Error | reggiman | osCMax v1.7 General Mods Discussion | 3 | 02-15-2005 04:04 PM |