Author Topic: SEF urls.... Error with router. Php  (Read 9425 times)

mark R

  • Jr. Member
  • **
  • Posts: 220
SEF urls.... Error with router. Php
« 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
Seek and ye shall find.........
4 VM sites and counting

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: SEF urls.... Error with router. Php
« Reply #1 on: January 31, 2012, 02:35:54 am »
What version of 2?

mark R

  • Jr. Member
  • **
  • Posts: 220
Re: SEF urls.... Error with router. Php
« Reply #2 on: January 31, 2012, 08:33:25 am »
I am using vm 2.0.0


Sent from my Transformer TF101 using Tapatalk
Seek and ye shall find.........
4 VM sites and counting

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: SEF urls.... Error with router. Php
« Reply #3 on: January 31, 2012, 12:00:38 pm »

mark R

  • Jr. Member
  • **
  • Posts: 220
Re: SEF urls.... Error with router. Php
« Reply #4 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
Seek and ye shall find.........
4 VM sites and counting

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: SEF urls.... Error with router. Php
« Reply #5 on: January 31, 2012, 16:28:35 pm »
where do you get this error?

mark R

  • Jr. Member
  • **
  • Posts: 220
Re: SEF urls.... Error with router. Php
« Reply #6 on: January 31, 2012, 17:22:36 pm »
Hi Banquet,

This error appears before the Joomla menu with the VM category link
Code: [Select]
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
Seek and ye shall find.........
4 VM sites and counting

mark R

  • Jr. Member
  • **
  • Posts: 220
Re: SEF urls.... Error with router. Php
« Reply #7 on: January 31, 2012, 17:57:48 pm »
this also appears ate the top of my content pages above my category view

Code: [Select]
<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>
Seek and ye shall find.........
4 VM sites and counting

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: SEF urls.... Error with router. Php
« Reply #8 on: January 31, 2012, 18:06:19 pm »
JVM_VERSION

is not in my router

mark R

  • Jr. Member
  • **
  • Posts: 220
Re: SEF urls.... Error with router. Php
« Reply #9 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)
Code: [Select]
if ( JVM_VERSION===1 ) $this->setMenuItemId();
else $this->setMenuItemIdJ17();
Seek and ye shall find.........
4 VM sites and counting