News:

Support the VirtueMart project and become a member

Main Menu

VM Accourdion Menu Error

Started by joseph011, September 05, 2013, 00:07:12 AM

Previous topic - Next topic

joseph011

Hello,

When I select Russian language in VM Configration, i get this error on left side

Warning : Invalid Argument Supplied for foreach () in / Home / ***** / public_html / ***** / modules / mod_vmaccordionmenu / tmpl / default.php on line 55

This is line 55 to 92

foreach ($tree as $key=>$value) {
   if ($v['level'] < $prev_level) {
      for ($i = 0; $i <($prev_level-$v['level']); $i++) {
         $html .= '</ul>';
      }
   }
   $parent_class = '';
   $children_ul_start = '';
   if ($v['has_children']) {
      $parent_class = 'parent ';
      $children_ul_start = '<ul>';
      $prev_parent = $k;
   }
   $current = '';
   $aclass= 'class="closed"';
   $activeorno = ' closed ';
   if (!$active_marked) {
      if (in_array($k,$active_path)) {
         $activeorno = ' active ';
      }
      if ($k == $active_category_id ) {
         $current = ' id="current" ';
         $parent_class .= ' current ';
         $aclass = 'class="active"';
         $active_marked = true;
      }
   }
   $html .= '<li '.$current.' class="'.$parent_class.$activeorno.'item'.$k.'"><a href="'.$v['category_url'].'" '.$aclass.' ><span>'.$v['category_name'].'</span></a>'.$children_ul_start;
   $prev_level = $v['level'];
}
if (1 < $prev_level) {
   for ($i = 0; $i <($prev_level-1); $i++) {
      $html .= '</ul>';
   }
}
$html .= '</ul>';
echo $html;
?>

What can i do please help
Thank you


Maxim Pishnyak

Turn of warnings errors in Joomla config.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

joseph011

But not working " Accordion Menu and News Show SP2 " modules.

I get this error . How i can fix ?

Maxim Pishnyak

Quote from: joseph011 on September 05, 2013, 22:58:44 PM
1. But not working " Accordion Menu and News Show SP2 " modules.

2. I get this error . How i can fix ?
1. Ask for support author.

2. What error? Mentioned by you above?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

joseph011

Which Accourdion menu can i use for Virtuemart ?

Please tell me which menu can i use for Virtuemart ?

TYhank you

Maxim Pishnyak

Standard VM category module has accordion feature.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

joseph011

Quote from: Maxim Pishnyak on September 12, 2013, 22:45:37 PM
Standard VM category module has accordion feature.

I get this error when i install this module

500 - An error has occurred.
JDatabaseMySQLi::query: 1062 - Duplicate entry '6a1c2702667fba8babe768021e6e9eb0' for key 1 SQL=INSERT INTO `dw4eb_session` (`session_id`, `data`, `time`) VALUES ('6a1c2702667fba8babe768021e6e9eb0', 'hvsvyr0YT3d1isSvhxGs64wzg1-5CE89FY2ArHlfYmMwu1F8U6ujv8LR_5tKVUylhn0Yn0g_D-IKJ9635pi-yqh_J9Fx7202Sm-OOggVoLa8VrFZKgxMGBdGmyC1z8G_Oza7wUVatRFR7G93axeIFfGuTY0zDWF3zo3nr1Ky1hZ9dQ-mRJ8pQmNqxza3d-6MzPBUSRP-ixqlP0V8y0kGXd8ZQnJyQEmHX6esGYxpz0Z7vVEvcZWpB2sU1FwZEzIOm35HQqS4av3t08cPH0Mi3VhwMK6ij5Ye2ravWLXxsid6i6sOrSOKWgjdqdc0_wpDY3yCVKn90Ephf0qqEw08HwtcRzb0ygO5iReqmlRoYg2D4rAM25q395geFKQl5shuv-ewA0VgHeenzvqK2qdpLM5z85cQyMiTP41Q39cKqTyHapR743NWfhvo-96HmJm1RbmuBy_eNdOBM9xPtNMhxIPjP3lfy48K-0eCZy_PIJJVtg2RJ-JXqCRp-xdC3NkCaREK74LTSUOTPUfQwyEJzEWXjIDgyyGdKg3O5WCxi6JrLDWQExKekRZft9vDj9T740rL0MsEvcJWNobh6ICwouX3uLx_iEGZTW2MFY8hdQowaXldW6gSCyZo2rY7-Q106MHRfIScjvIey8EIBL0QrgJZEdc2eCGE5zTuKO0ZC9lV_5nu-RjNHkJbVx83oNllL9Fc5TbLx5bHzghogCTSysXPR-uS31-YnoZuqlyV507wkBeu2poQU4bbI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x9zODDEBeFhfhlyX-qcrrKTfMXq6yuWMkRTjH1NWZwKI78ROf3KKJJy1nBXRaujdmOolekNcQ8O45w8XtPhqkHPbgwkQ9kjMTNSvNuBzWVUKW0WI7J1Y3FChwR3nz7U5YcU_5f1VlQiims1SezhkX2riuG39SZh-PCi7fkOBzbxohfRATCEBfol1p-5nf5ecC48iy04m8WRXP9ev89UYhgCNJPe057n5ejz8hlzkunW3iB6FZ5K5E59XQXgM44yMnMDBLq_DwRjzMINzcWMNjtAKXYO7wglegxyGMjrgHEwK4_qfBLJfe7gupfG4uPVo1zI4l2KPQoSTtYLwaDIiyU2HpLV4HsecXCT2mQDA8QQJh8yX1kM35pe2WDE2PAGq4bQ7URyV1SUEGaLfsgRghyOgZtH9aODSLpmAUzzUf7Ad4qEGV85iFckfL_DCe2vkMRtsSBGmBrd75MhtP2wz9N7NeXE1QQTc4KLNct9kkJSnUdRTmRg9yz5CxgwV6HpOhUGnl3ACfadvweIHpFd96zyHvLncjhEjShUJGJRyU8gDASY4Rur-HWCnr6QDBmgCuGMSThtcS4mbPLydL4b5rgr_axut5mX3omtyIhFNylrF031hvDXMmAWWp9ylAUgcaP1BgFojoIsTGkulgLpfViEMgiexAYsYuY6DA1FjMdWrODdMuxOq-2ifd8h8283UfsWXswwD-7PaTPnxzKRScgWdZo7bDQy2e3bImIWatoaYojQhJGvkGyQL83ORRpsZfrXGIx3COQ.', '1379630747')

Return to Control Panel

Call stack
#   Function   Location
1   JSession->__destruct()   
2   JSession->close()   /home/""""""""/libraries/joomla/session/session.php:134
3   JSessionStorageDatabase->write()   /home/""""""""/libraries/joomla/session/session.php:672
4   JDatabaseMySQLi->query()   /home/""""""/libraries/joomla/session/storage/database.php:129
5   JError::raiseError()   /home/"""""""/libraries/joomla/database/database/mysqli.php:396
6   JError::raise()   /home/""""""/libraries/joomla/error/error.php:251

Maxim Pishnyak

Delete rows in your dw4eb_session table with the help of phpmyadmin. Backup first.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart