I have enable Error reporting in my joomla settings and select level on Maximum.
Then i look have a trouble with undefined variable - itemid, news_text.
- Code: Select all
Notice: Undefined variable: itemid in /var/www/.../modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 1265
Notice: Undefined variable: news_text in /var/www/.../modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 1269
When i looking in the code in rows 1265 or 1269 - i can`t finding transfer this parameters in function image_vm!
- Code: Select all
function image_vm($config, $news_id, $news_cid, $news_image, $news_title){
$news_title = str_replace('"', """, $news_title);
$IMG_SOURCE = JURI::root() . $news_image;
$IMG_LINK = 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$news_id.'&virtuemart_category_id='.$news_cid.'&Itemid='.$itemid;
if(preg_match('/\<img.*src=.*?\>/',$news_text)){
$imgStartPos = JString::strpos($news_text, 'src="');
if($imgStartPos) $imgEndPos = JString::strpos($news_text, '"', $imgStartPos + 5);
if($imgStartPos > 0) $IMG_SOURCE = JString::substr($news_text, ($imgStartPos + 5), ($imgEndPos - ($imgStartPos + 5)));
}
...........
Why you do not send and no checks the parameters? or give set to default values for them?

Version: GK4 3.1. 05/04/2012