Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installing UPS Module


Guest

Recommended Posts

Posted

I just downloaded the "UPS with insurance & bug fix & minimum shipping cost" contribution. I'm really new to this and don't know how to install it. I put the ups.php in the /includes/modules/shipping directory then went to the Admin/Modules/Shipping section. The following erros showed up:

 

Warning: main(/home/content/d/i/v/divemate/html/catalog/includes/languages/english/modules/shipping/ups.php): failed to open stream: No such file or directory in /home/content/d/i/v/divemate/html/catalog/admin/modules.php on line 128

 

Warning: main(/home/content/d/i/v/divemate/html/catalog/includes/languages/english/modules/shipping/ups.php): failed to open stream: No such file or directory in /home/content/d/i/v/divemate/html/catalog/admin/modules.php on line 128

 

Warning: main(): Failed opening '/home/content/d/i/v/divemate/html/catalog/includes/languages/english/modules/shipping/ups.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/d/i/v/divemate/html/catalog/admin/modules.php on line 128

 

There was also a box where it looked like I could install the module, so I did. I then configured it and refreshed the page. I still get the errors shown above. What do I do?

 

Respectfully,

 

Myron, the osCommerce Neophyte

Posted

OK... So in my lack of patience waiting on some good advice I tried something that's made a difference, but probably not the right thing as I got another error message. What I did was to coy the ups.php to the includes/languages/english/modules/shipping directory. Now I get the following error:

 

Fatal error: Cannot redeclare class ups in /home/content/d/i/v/divemate/html/catalog/includes/modules/shipping/ups.php on line 29

Posted

I figured how to get it out...

 

First delete the ups.php files from includes/modules/shipping and includes/languages/english/modules/shipping. Then modify the value of the database table configuration where the record's configuration_key = "MODULE_SHIPPING_INSTALLED" to not include ;ups.php.

 

Now if I can just figure out how to get it installed correctly...

Posted

I still can't get the UPS contribution to install. I've been snooping around trying to figure out exactly what happens in the install process and where my particular failure may be occuring. I'm trying to install UPS Choice 1.8. In the instructions Step 5 I'm instructed to:

 

"Replace catalog/includes/modules/shipping/ups.php with the ups.php

of this contribution package (you disabled it and you've got a backup, right?)."

 

I'm thinking the operative word here is "Replace". I'm not replacing anything; it didn't exist to start out with. Additionally, in the ups.php code it says:

 

*/

 

class ups {

var $code, $title, $descrption, $icon, $enabled, $types;

 

// class constructor

function ups() {

global $order;

 

$this->code = 'ups';

$this->title = MODULE_SHIPPING_UPS_TEXT_TITLE;

$this->description = MODULE_SHIPPING_UPS_TEXT_DESCRIPTION;

$this->sort_order = MODULE_SHIPPING_UPS_SORT_ORDER;

$this->icon = DIR_WS_ICONS . 'shipping_ups.gif';

$this->tax_class = MODULE_SHIPPING_UPS_TAX_CLASS;

$this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);

 

 

I'm not a PHP developer (yet), but it seems to me it's looking for some pre-existing values here. When I look in the Admin/Modules/Shipping where I got the error messages I lised in my first post of this thread, I see all of the variable names shown above, not the values you'd expect to be there. This leads me to believe that there's more to this installation than is in the instruction; notably that perhaps something else needd to be installed prior to this module. Is that the case? Am I on the right track here?

Archived

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

×
×
  • Create New...