VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: mark R on January 30, 2012, 22:43:35 PM

Title: SEF urls.... Error with router. Php
Post by: mark R on January 30, 2012, 22:43:35 PM
Hi all, the

I am trying to get SEF urls working with vm2 and j1. 7 but I am getting the following error.

Notice: Undefined index: view in .... /components/com_virtuemart/router.php on line 791

I am using joomla menus pointing to vm categories.. Not the vm category module..

Any help would be appreciated

Many thanks
Mark

Sent from my Transformer TF101 using Tapatalk
Title: Re: SEF urls.... Error with router. Php
Post by: PRO on January 31, 2012, 02:35:54 AM
What version of 2?
Title: Re: SEF urls.... Error with router. Php
Post by: mark R on January 31, 2012, 08:33:25 AM
I am using vm 2.0.0


Sent from my Transformer TF101 using Tapatalk
Title: Re: SEF urls.... Error with router. Php
Post by: PRO on January 31, 2012, 12:00:38 PM
make sure you are using the latest router
https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/components/com_virtuemart/
Title: Re: SEF urls.... Error with router. Php
Post by: mark R on January 31, 2012, 15:01:55 PM
Many thanks BanquetPro,
I now receive the following error

Notice: Use of undefined constant JVM_VERSION - assumed 'JVM_VERSION' in /home/precisi/public_html/ptdev/components/com_virtuemart/router.php on line 478

many thanks
Title: Re: SEF urls.... Error with router. Php
Post by: PRO on January 31, 2012, 16:28:35 PM
where do you get this error?
Title: Re: SEF urls.... Error with router. Php
Post by: mark R on January 31, 2012, 17:22:36 PM
Hi Banquet,

This error appears before the Joomla menu with the VM category link

div class="rt-block menu-block">
<br>
<b>Notice</b>
: Use of undefined constant JVM_VERSION - assumed 'JVM_VERSION' in
<b>..../components/com_virtuemart/router.php</b>
on line
<b>478</b>
<br>
<div class="rt-fusionmenu">
<div class="nopill">

thanks again
Title: Re: SEF urls.... Error with router. Php
Post by: mark R on January 31, 2012, 17:57:48 PM
this also appears ate the top of my content pages above my category view

<br>
<b>Notice</b>
: Use of undefined constant JVM_VERSION - assumed 'JVM_VERSION' in
<b>......./components/com_virtuemart/router.php</b>
on line
<b>478</b>
<br>
<div class="category_description"> </div>
<div class="browse-view">
</div>
Title: Re: SEF urls.... Error with router. Php
Post by: PRO on January 31, 2012, 18:06:19 PM
JVM_VERSION

is not in my router
Title: Re: SEF urls.... Error with router. Php
Post by: mark R on January 31, 2012, 18:26:29 PM
It is in the latest SVN

I have removed the offending lines and all is well (not sure of the overall effect but eh its working)
if ( JVM_VERSION===1 ) $this->setMenuItemId();
else $this->setMenuItemIdJ17();