VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sgrunch on April 20, 2016, 10:49:24 AM

Title: VM 3.0.16 error 404 big problem + category title bug
Post by: sgrunch on April 20, 2016, 10:49:24 AM
after updating the error being 404 no longer works - only redirect to home page o top level category
I have downgrade VM at 3.0.13.2 and works good. The proble is with the 3.0.14

the management of the title of the category will not work - only category name

Paolo
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: Ghost on April 20, 2016, 12:12:12 PM
Find this line in router.php:
if($catId!==false){ and change it to if($catId!=false){ This fix is in VM repo, but it's not in 3.0.16 for some reason http://dev.virtuemart.net/projects/virtuemart/repository/diff/branches/com_virtuemart.3.0.12.4/components/com_virtuemart/router.php?utf8=%E2%9C%93&rev=9196&rev_to=9168
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: lindapowers on April 20, 2016, 15:21:36 PM
There is another error in 3.0.16 - Selecting childs from the dropwdown list in the category view does not load the child, does not work.

Had to install 3.0.14 back to make it load childs from the browse view again,

Regards
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: Milbo on April 20, 2016, 20:34:06 PM
Hello lindapowers,
it is just the default.php layout in the category view
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: sgrunch on May 05, 2016, 11:31:49 AM
Quote from: Ghost on April 20, 2016, 12:12:12 PM
Find this line in router.php:
if($catId!==false){ and change it to if($catId!=false){ This fix is in VM repo, but it's not in 3.0.16 for some reason http://dev.virtuemart.net/projects/virtuemart/repository/diff/branches/com_virtuemart.3.0.12.4/components/com_virtuemart/router.php?utf8=%E2%9C%93&rev=9196&rev_to=9168

This resolve 404 or Page title ?
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: Ghost on May 05, 2016, 11:47:03 AM
404. What issue are you having with page title?
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: sgrunch on May 05, 2016, 11:54:42 AM
Quote from: Ghost on May 05, 2016, 11:47:03 AM
404. What issue are you having with page title?

with 3.0.16 the title of the category page is not working show only the category name and not other combination
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: lindapowers on May 05, 2016, 13:35:17 PM
Quote from: Milbo on April 20, 2016, 20:34:06 PM
Hello lindapowers,
it is just the default.php layout in the category view

Hi Max I don't see the change in the repository, I downloaded 3.0.16 yesterday and bug is present when changing childs from category view.

Regards
Title: Re: VM 3.0.16 error 404 big problem + category title bug
Post by: sgrunch on May 10, 2016, 18:48:32 PM
I have find the error - wich the 3.0.16 the browser page title don't work with the field custom title of VM category.
There's an error on file category/view.html.php at line 305 $document->setTitle( $title );
   if ($virtuemart_manufacturer_id>0 and !empty($this->products['0'])){

         if (!empty($this->products['0'][0])) $title .=' '.$this->products['0'][0]->mf_name ;
         $document->setTitle( $title );
         // Override Category name when viewing manufacturers products !IMPORTANT AFTER page title.
         if (!empty($this->products['0'][0]) and isset($category->category_name)) $category->category_name = $this->products['0'][0]->mf_name ;

      }
changed in

   if ($virtuemart_manufacturer_id>0 and !empty($this->products['0'])){

         if (!empty($this->products['0'][0])) $title .=' '.$this->products['0'][0]->mf_name ;
      
         // Override Category name when viewing manufacturers products !IMPORTANT AFTER page title.
         if (!empty($this->products['0'][0]) and isset($category->category_name)) $category->category_name = $this->products['0'][0]->mf_name ;

      }
   $document->setTitle( $title );