VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: frankbootmaker on December 13, 2011, 22:00:22 PM

Title: [solved] Category view failed after update to RC3 K and J
Post by: frankbootmaker on December 13, 2011, 22:00:22 PM
Hi,

I have a site running on Joomla 1.7.3 / VM 2.0 RC3 J and encountered
a problem once updated from the RC2 M version to either K or J.

The update went fine, both core and aio was installed without a single issue.
After update the category view stopped working. If I click on category that
contains any product a malformed white background page appears.

Is this an update bug maybe?
Title: Re: Category view failed after update to RC3 K and J
Post by: Milbo on December 14, 2011, 01:16:25 AM
I think you use your own layout,.. we changed the pagination to vmPagination, look inteh template subboard for this.
Title: Re: Category view failed after update to RC3 K and J
Post by: frankbootmaker on December 14, 2011, 09:47:41 AM
It was just fine in the rc2 m, what has been changed in rc3 that causes it?

The site I'mtalking about is http://kencebolt.nethorizon.eu/index.php/kencebolt and if you click
on the middle category -that has an assigned product- you see the result.

I purchased this template that was perfect with rc2 m...

What article do you refer in the templating forum section that might fix this?
Title: Re: Category view failed after update to RC3 K and J
Post by: Milbo on December 14, 2011, 10:49:51 AM
as I said "we changed the pagination to vmPagination". Look in the template board, here http://forum.virtuemart.net/index.php?board=130.0 .

Title: Re: Category view failed after update to RC3 K and J
Post by: jjk on December 14, 2011, 10:55:53 AM
Just in case Milbo's advice doesn't solve your problem you might try this:
http://forum.virtuemart.net/index.php?topic=94761.msg310842#msg310842 (http://forum.virtuemart.net/index.php?topic=94761.msg310842#msg310842)
Title: Re: Category view failed after update to RC3 K and J
Post by: Milbo on December 14, 2011, 16:26:54 PM
he should turn on error reporting and I am almost 100% sure there will be there with the pagination. Look in the FE/views/category/tmpl/default.php

There around line 168 is somethign like

<div class="width30 floatright display-number"><?php echo $this->pagination->getResultsCounter();?><br/><?php echo $this->pagination->getLimitBox(); ?></div>
<div id="bottom-pagination"><?php echo $this->pagination->getPagesLinks(); ?><span style="float:right"><?php echo $this->pagination->getPagesCounter(); ?></span></div>


you just must change this to

<div class="width30 floatright display-number"><?php echo $this->vmPagination->getResultsCounter();?><br/><?php echo $this->vmPagination->getLimitBox(); ?></div>
<div id="bottom-pagination"><?php echo $this->vmPagination->getPagesLinks(); ?><span style="float:right"><?php echo $this->vmPagination->getPagesCounter(); ?></span></div>


You must do this analog to the categories view (category and categories).
Title: Re: Category view failed after update to RC3 K and J
Post by: frankbootmaker on December 14, 2011, 23:09:37 PM
Hi Milbo,

ok, I see now what you ment as change to vmPagination ... it did the fix.

Thank you very much!

Cheers,
Ferenc