Re: [Yams-discuss] yams 0.6.1 bug
Brought to you by:
modred
From: Derek C. <der...@ma...> - 2000-03-15 21:08:17
|
I tried this and the drop-down lists still don't appear. Any thoughts? I did implement the other fixes discussed for the search feature and that worked. But, I still can't get these departments to show up. I get the following error still: [Wed Mar 15 16:08:51 2000] [error] [client 192.168.3.1] unable to include "/cgi\ -bin/commerce/shop/toplevel.pl?type=department" in parsed file /home/httpd/html\ /commerce/shop/index.shtml [Wed Mar 15 16:08:53 2000] toplevel.pl: Use of uninitialized value at (eval 14)\ line 27. [Wed Mar 15 16:08:53 2000] [error] [client 192.168.3.1] malformed header from s\ cript. Bad header=<H2>Choose Category</H2><FORM : /home/httpd/cgi-bin/commerce/\ shop/toplevel.pl [Wed Mar 15 16:08:53 2000] [error] [client 192.168.3.1] unable to include "/cgi\ -bin/commerce/shop/toplevel.pl?type=category" in parsed file /home/httpd/html/c\ ommerce/shop/index.shtml Derek Pat Eyler wrote: > > Derek, > it should be modules/Yams/cart.pm that gets the fix. Below is the needed > patch , but it's also attached as a file called quickpatch. to use > it do the following > > $ patch Cart.pm < quickpatch > > in the modules/Yams directory. > > -pate > > --- Cart.pm Fri Mar 10 14:02:53 2000 > +++ newcart.pm Tue Mar 14 22:13:34 2000 > @@ -981,7 +981,7 @@ > } > else > { > - $sql .= "ORDER BY sku"; > + $sql .= " ORDER BY sku"; > } > } > > @@ -1135,7 +1135,7 @@ > # Figure out sku to start the previous page on > $sql = "SELECT sku FROM products WHERE department = > $q_department AND sku $op $q_start"; > $sql .= " AND subdepartment = $q_subdepartment" > if(defined($subdepartment)); > - $sql .= "ORDER BY sku DESC LIMIT $products_per_page"; > + $sql .= " ORDER BY sku DESC LIMIT $products_per_page"; > > $sth = &dbsql($DBH, $sql); > my($prev_sku, $temp); > > ------------------------------------------------------------------------ > Name: quickpatch > quickpatch Type: Plain Text (TEXT/PLAIN) > Encoding: BASE64 |