Re: Phoca Galerry Plugin with Joomla 3
Posted: 27 Jun 2013, 15:09
I'm looking for problem by my own. So what I found:
in file plugins/content/phocagallery/phocagallery.php there are 5 lines: 1449 - 1454
When I've removed these lines plugin started to work and image is shown in frontend. There is only additionale error printed:
I've checed up and there is such function in joomla 3.0 "JHTML::_( 'image" and it's used in phocagallery component so maybe its not imported or the arguments are wrong. Please help to make this lines work.
in file plugins/content/phocagallery/phocagallery.php there are 5 lines: 1449 - 1454
Code: Select all
if (isset($image->extid) && $image->extid != '') {
// SIZE WILL BE NOT CORRECTED
$oImg = JHTML::_( 'image',$image->extl, '', '', '', $image->title );
} else {
$oImg = JHTML::_( 'image.site', str_replace ('phoca_thumb_m_','phoca_thumb_l_',$image->linkthumbnailpath), '', '', '', $image->title );
}
Code: Select all
Warning: Division by zero in /administrator/components/com_phocagallery/libraries/phocagallery/image/image.php on line 206