Page 1 of 1

[SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category description

Posted: 06 Jul 2012, 10:55
by meditant
With 3.2 the category description is show but with 3.2.1 nothing is displayed ????

If you can help me

Best regards

Re: Phoca 3.2.1 and Joomla 2.5.6 no category description dis

Posted: 06 Jul 2012, 12:05
by meditant
when i modify in /components/com_phocagallery/views/category/tmpl/default.php this line 36 :
// Category Description
/* if (isset($this->category->description) && $this->category->description != '' ) {*/
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
echo 'Desc';
echo $this->category->description
//echo JHTML::_('content.prepare', $this->category->description)
.'</div>'. "\n";
/*}*/

it show "Desc" if i uncomment the if test it show nothing like the description files is empty but is not empty ????

Re: Phoca 3.2.1 and Joomla 2.5.6 no category description dis

Posted: 06 Jul 2012, 12:55
by reko
Hi Jan,
i can confirm this bug report. after update from 3.2.0 to 3.2.1 the category description is gone (in category view - it is displayed correctly in categories view, if set to so)
regards,
rk

Re: Phoca 3.2.1 and Joomla 2.5.6 no category description dis

Posted: 06 Jul 2012, 13:44
by meditant
I find the bug !
A little missing field in sql query. The field "description" is missing in file /components/com_phocagallery/models/category.php
Change line 204 :
$query = 'SELECT c.id, c.title, c.alias, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access,' .
with :
$query = 'SELECT c.id, c.title, c.alias, c.description, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access,' .

It is a little fix before the correction.

Best regards

Re: [SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category descript

Posted: 07 Jul 2012, 10:49
by Jan
Hi, thank you very much for the info. In 3.2.1 the SQL queries were optimized.

I will fix it for the next version.

Thank you, Jan

Re: [SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category descript

Posted: 09 Jul 2012, 11:38
by jbx
Thank you so very much for this fix! I was losing my mind for the past 3 hours!

Re: [SOLVED] Phoca 3.2.1 & Joomla 2.5.6 no category descript

Posted: 09 Jul 2012, 12:16
by Jan
Ok, made a quickfix in the same version: Phoca Gallery 3.2.1 from 2012/07/09 includes this fix and can be downloaded here:

https://www.phoca.cz/download/category/1 ... -component

Jan