Dmitriy Ozhegov Posted September 19, 2013 at 08:45 PM Share Posted September 19, 2013 at 08:45 PM 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. router.zip Link to comment
Alejandro Posted September 19, 2013 at 09:16 PM Share Posted September 19, 2013 at 09:16 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Dmitriy Ozhegov Posted September 19, 2013 at 09:36 PM Author Share Posted September 19, 2013 at 09:36 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts