News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Router

Started by mitchie, January 03, 2012, 16:05:31 PM

Previous topic - Next topic

mitchie

Hallo,
I'v just updated vm from RC3 (17.12.2011) to final (19.12.2011) and I get this php scripting notice in index.php/shop

Notice: Undefined index: p.product_sku in *****\components\com_virtuemart\router.php on line 84

Notice: Undefined index: c.category_name in *****\components\com_virtuemart\router.php on line 84

Notice: Undefined index: m.mf_name *****\components\com_virtuemart\router.php on line 84

Notice: Undefined index: p.product_name in *****\components\com_virtuemart\router.php on line 84
Best regards,
mitchie

jjk

#1
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

PRO

u might need to delete your config file, then go to the config and save again.

Did you also "update or install tables" in the updates/migration   ?


mitchie

Hallo,
@jjk: thank you, I downloaded the latest router.php from dev directory, replaced the old one but the problem is still there.

@BanquetTables.pro: thank you, I did it but the problem is still there. I only updated vm from rc3 to final (on a totally new installation, no migration).

It seems it is missing $lang[ $query['orderby'] ] value.

I commented line 84:
#$segments[] = $lang['orderby'].','.$lang[ $query['orderby'] ] ;

and inserted these lines:
$q=explode('.',$query['orderby']);
$segments[] = $lang['orderby'].','.$q[0].'.'.$lang[ $q[1] ] ;

fixing the problem.