Jump to content

[Solved] jReviews and jDemotivator conflict


Dmitriy Ozhegov

Recommended Posts

I get some conflict with jReviews and jDemotivator component.

 

Details: there is MenuItem for jDemotivator published in TopMenu.

When I go to jReviews list (category) http://crimson-land.ru/games/side-scroller.html there is an Notice apper near the menu item.

Notice: Undefined index: type in /var/www/slepoy/data/www/crimson-land.ru/components/com_demotivator/router.php on line 28

 

I turned off in backend all "notice and error messages" - it didn't helped because notice display not at special message area.

 

No any jDemotivatorModules are published in this page.

 

I asked jDemotivator's developer about that. He has no Idea because it works OK with any others  components.

Plugin "System - JReviews SEF" is unpublised now.

 

router.php part os code 28-42:

$type = JRequest::getVar('type', $query['type']); /** получаем тип картинки, если для него есть свое меню - подставляем в ссылку*/    
   if($type and $type !== $settype){  /** если задан тип и этот тип не совпадает с заданным у активного меню*/
   	$items		= $menu->getItems('component', 'com_demotivator');        
   	if (is_array($items))
   	{
       	foreach ($items as $item){
               if($type == $item->params->get('type') and $active->home == 0){//если пункт меню не главный
                  $segments[] = $item->alias;
               }
               if($type == $item->params->get('type') and $active->home == 1){//если пункт меню главный
                  $segments[] = $item->route;
               }      
           }
       }
   }

If I delete this part of code, message is dissapeared (but there can be somr problems with SEF or demotivators Doubles)

Please, can You help or give some advice?

Thanks.

post-13096-14242990352617_thumb.jpg

router.zip

Link to comment
×
×
  • Create New...