Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error installing UPS Choice.


Guest

Recommended Posts

I have osCommerce v2.2 and I'm trying to install UPSChoice 1.8.3 (I believe). I follow the steps installing and get to step 5 and when I go into my Admin--> Modules--> Shipping, it gives me these error messages:

 

Warning: include(/hermes/bosweb/web120/b1206/ipw.testagrimm/public_html/Cart/includes/languages/english/modules/shipping/ups.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosweb/web120/b1206/ipw.testagrimm/public_html/Cart/admin/modules.php on line 128

 

Warning: include() [function.include]: Failed opening '/hermes/bosweb/web120/b1206/ipw.testagrimm/public_html/Cart/includes/languages/english/modules/shipping/ups.php' for inclusion (include_path='.:/usr/local/lib/php-5.2.4/lib/php') in /hermes/bosweb/web120/b1206/ipw.testagrimm/public_html/Cart/admin/modules.php on line 128

 

I think It may have something to do with step 4 where is tells me to open admin/modules.php and go to around line 37 and look for:

 

switch ($HTTP_GET_VARS['action']) {
   case 'save':
     while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
       tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
     }

and change it with:

 

    switch ($HTTP_GET_VARS['action']) {
   case 'save':
     while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
       if( is_array( $value ) ) $value = implode( ", ", $value);
       tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
     }

 

My line of code its looking for looks like this:

 

switch ($action) {
     case 'save':
       while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
         tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
       }

 

I think it may have to do with the line of code from mine that says switch ($action).

If I leave out the switch ($HTTP_GET_VARS['action']) so that it it uses what is currently on that line (switch ($action)) and I get the same error message except it says line 129 instead of 128.

 

Does anyone know how to fix this or had the same issues.

Link to comment
Share on other sites

Sorry I forgot to add something.

 

The following code is what line 128 and line 129 display.

 


   include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/' . $module_type . '/' . $file);

 

Line 128 is the blank line and line 129 is the code.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...