VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: mabeall32 on December 06, 2011, 02:05:06 AM

Title: router.php on line 84
Post by: mabeall32 on December 06, 2011, 02:05:06 AM
When I installed rc3_pre_e I get an error of
Notice: Undefined index: p.product_name in C:\.........\com_virtuemart\router.php on line 84
help? ??? ?
Notice: Undefined property: VirtuemartViewCategory::$pagination in C:\www\matlinmfg\components\com_virtuemart\views\category\tmpl\nonstock.php on line 181
Fatal error: Call to a member function getResultsCounter() on a non-object in C:\www\matlinmfg\components\com_virtuemart\views\category\tmpl\nonstock.php on line 181
Title: Re: router.php on line 84
Post by: Milbo on December 06, 2011, 10:01:40 AM
This are two errors. One error is in the router. I think it is an old sef link, which is not longer valid (clean your cached urls).

The other error is the changed pagination. So you must update your layout to use vmPagination and not pagination.
Title: Re: router.php on line 84
Post by: zzsser on December 06, 2011, 15:09:07 PM
Hi !

I have the same errors:

Notice: Undefined index: p.product_name in /homez.398/stickerv/www/components/com_virtuemart/router.php on line 84

Notice: Undefined property: VirtuemartViewCategory::$pagination in /homez.398/stickerv/www/components/com_virtuemart/views/category/tmpl/default-stickerv3.php on line 180

Fatal error: Call to a member function getResultsCounter() on a non-object in /homez.398/stickerv/www/components/com_virtuemart/views/category/tmpl/default-stickerv3.php on line 180


Quote from: Milbo on December 06, 2011, 10:01:40 AM
This are two errors. One error is in the router. I think it is an old sef link, which is not longer valid (clean your cached urls).
--> I did it but this error remains  :-[


Quote from: Milbo on December 06, 2011, 10:01:40 AM
The other error is the changed pagination. So you must update your layout to use vmPagination and not pagination.
--> Super, it works by changing all "$this->pagination" in "$this->vmPagination"  ;)
Title: Re: router.php on line 84
Post by: mabeall32 on December 06, 2011, 16:20:27 PM
Same with me.  I cleared the vmPagination up but the router.php on line 84 is still given me problems.  I have cleared my cache, on all my browsers and all do the same.
Undefined index: p.product_name in C:\www\matlinmfg\components\com_virtuemart\router.php on line 84
Title: Re: router.php on line 84
Post by: joomlaforever on December 07, 2011, 07:59:07 AM
same error with F RC3 version too...
Title: Re: router.php on line 84
Post by: Milbo on December 07, 2011, 16:29:03 PM
Try to go in your virtuemart configuration, where you can store all the order by and search fields.... Choose them again and store the config,.. disable the caching for this operation, then it should work.
Title: Re: router.php on line 84
Post by: Studio 42 on December 07, 2011, 16:43:13 PM
HI all,

We missed to update the language key for Order BY and of course was not found.

In SVN this are fixed now.

AFTER UPDATE :
Go to virtuemart config and save you choices, to have the new right settings.
Title: Re: router.php on line 84
Post by: zzsser on December 07, 2011, 17:15:20 PM
Hi Milbo and Electricity !

Thank you for your replies but I don't understand  :-\.

Milbo, which tab do you mean in the configuration of virtuemart (shop, frontend,...) ?

Electricity, what is SVN ? Is this : http://dev.virtuemart.net/projects/virtuemart/files ? The latest version is Pre f, the one I already installed.

Title: Re: router.php on line 84
Post by: zzsser on December 07, 2011, 17:42:42 PM
I finaly found which tab: the 6th one ("Tri des produits" in french) but I don't know how to disable caching for this.

I choose some filters and now I have 2 erros (the same ones):

Notice: Undefined index: product_name in /homez.398/stickerv/www/components/com_virtuemart/router.php on line 84

Notice: Undefined index: product_price in /homez.398/stickerv/www/components/com_virtuemart/router.php on line 84
Title: Re: router.php on line 84
Post by: PRO on December 07, 2011, 17:46:40 PM
Quote from: zzsser on December 07, 2011, 17:15:20 PM
Hi Milbo and Electricity !

Milbo, which tab do you mean in the configuration of virtuemart (shop, frontend,...) ?

"Product Order Settings" TAB

and SVN  is the latest version files that are NOT released in a package yet. So they release a package, and the bugs that are found are all fixed in the SVN first, and then finally released in a package.

You need software to download the full package from SVN. SEE (http://dev.virtuemart.net/projects/1/wiki/Setting_up_a_Development_Environment)

BUT, if you need an exact file and dont have the software, you can go here, and download it.

https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/
Title: Re: router.php on line 84
Post by: zzsser on December 07, 2011, 17:49:57 PM
Thank you BanquetTables.pro for this explanation!

I replaced the router.php file and it's ok now !

Tks again !