[interchange-bugs] [rt.icdevgroup.org #311] Shipping file error caused by recent TemplateDir changes

Stefan Hornburg via RT interchange at rt.icdevgroup.org
Fri Sep 4 17:28:20 UTC 2009


<URL: http://rt.icdevgroup.org/Ticket/Display.html?id=311 >

On Fri Sep 04 16:19:36 2009, david wrote:
> On Wed Sep 02 06:34:39 2009, racke wrote:
> > This error message appeared after the TemplateDir changes:
> > 
> > Can't use file '/home/racke/passion/products/349.csv' with NoAbsolute set
> > Can't use file '/home/racke/passion/products/349.csv' with NoAbsolute set
> > Bad shipping file for zone '349', lookup disabled.
> > 
> > Regards
> >          Racke
> 
> Untested patch:
> 
> diff --git a/lib/Vend/Ship.pm b/lib/Vend/Ship.pm
> index 56f094b..f49652c 100644
> --- a/lib/Vend/Ship.pm
> +++ b/lib/Vend/Ship.pm
> @@ -389,6 +389,7 @@ sub read_shipping {
>  											$base_dir,
>  											"$ref->{zone_name}.csv",
>  										) if ! $ref->{zone_file};
> +				local $Global::NoAbsolute;
>  				$ref->{zone_data} =  readfile($ref->{zone_file});
>  			}
>  			unless ($ref->{zone_data}) {

The patch avoids the error, yes. It doesn't look like the right thing to do, though.

The configuration line leading to this error is:

UpsZoneFile   products/349.csv

Regards
         Racke




More information about the interchange-bugs mailing list