Back to top

Autore Topic: joomla 1.5.4 + vm 1.1.1 + phpbb 3.0.2  (Letto 2337 volte)

Offline ErGladiatore

  • Esploratore
  • **
  • Post: 132
    • Mostra profilo
joomla 1.5.4 + vm 1.1.1 + phpbb 3.0.2
« il: 24 Lug 2008, 01:15:21 »
Ho installato in locale Joomla 1.5.4 e VM 1.1.1 e tutto perfettamente funzionante. Adesso ho preso un dominio su aruba e quando installo VM nella home page da questo errore:

Fatal error: Cannot use object of type __PHP_Incomplete_Class as array in /web/htdocs/www.aaaa.biz/home/administrator/components/com_virtuemart/classes/ps_shopper_group.php on line 328

Se il componente lo disattivo mi da errore 404.

Ecco il codice:



Codice: [Seleziona]
/**
* Retrieves the Shopper Group Info of the SG specified by $id
*
* @param int $id
* @param boolean $default_group
* @return array
*/
  function get_shoppergroup_by_id($id, $default_group = false) {
    global $auth;
    $ps_vendor_id = vmGet($_SESSION, 'ps_vendor_id', 1 );
    $db = new ps_DB;

    $q =  "SELECT #__{vm}_shopper_group.shopper_group_id, show_price_including_tax, `default`, shopper_group_discount
    FROM `#__{vm}_shopper_group`";
    if( !empty( $auth['user_id'] ) && !$default_group) {       ---------- LINEA 328
      $q .= ",`#__{vm}_shopper_vendor_xref`";
      $q .= " WHERE #__{vm}_shopper_vendor_xref.user_id='" . $id . "' AND ";
      $q .= "#__{vm}_shopper_group.shopper_group_id=#__{vm}_shopper_vendor_xref.shopper_group_id";
    }
    else {
    $q .= " WHERE #__{vm}_shopper_group.vendor_id='$ps_vendor_id' AND `default`='1'";
    }
    $db->query($q);
    if ($db->next_record()){ //not sure that is is filled in database (Steve)
            $group["shopper_group_id"] = $db->f("shopper_group_id");
            $group["shopper_group_discount"] = $db->f("shopper_group_discount");
            $group["show_price_including_tax"] = $db->f("show_price_including_tax");
            $group["default_shopper_group"] = $db->f("default");
        }
        else {
$q = "SELECT #__{vm}_shopper_group.shopper_group_id, show_price_including_tax, `default`, shopper_group_discount
    FROM `#__{vm}_shopper_group`
    WHERE #__{vm}_shopper_group.vendor_id='$ps_vendor_id' AND `default`='1'";
$db->query($q);
$db->next_record();
$group["shopper_group_id"] = $db->f("shopper_group_id");
            $group["shopper_group_discount"] = $db->f("shopper_group_discount");
            $group["show_price_including_tax"] = $db->f("show_price_including_tax");
            $group["default_shopper_group"] = $db->f("default");
   
        }
    return $group;
  }

Se installo joomla + vm funziona appen aintegro phpbb 3.0.2 da quel errore... sapete aiutarmi? il locale funge uff  :-[

 



Web Design Bolzano Kreatif