Hello,

I have a problem setting up a sugarcrm version on a free webspace. I did upload all the files in the proper directory on the webspace but when I try to start the installation i get the following message:

Fatal error: Call to a member function on a non-object in /home/www/cwcity/hosting/s/u/sugareva/htdocs/include/Localization/Localization.php on line 149

line 149 is this line:
$r = $db->query($q);
in the following part of localization.php
///////////////////////////////////////////////////////////////////////////
//// CURRENCY HANDLING
/**
* wrapper for whatever currency system we implement
*/
function loadCurrencies() {
// doing it dirty here
global $db;
global $sugar_config;

if(empty($db)) {
return array();
}

// load default from config.php
$this->currencies['default'] = array(
'name' => $sugar_config['default_currency_name'],
'symbol' => $sugar_config['default_currency_symbol'],
'conversion_rate' => 1
);

$q = "SELECT id, name, symbol, conversion_rate FROM currencies WHERE status = 'Active' and deleted = 0";
$r = $db->query($q);

while($a = $db->fetchByAssoc($r)) {
$load = array();
$load['name'] = $a['name'];
$load['symbol'] = $a['symbol'];
$load['conversion_rate'] = $a['conversion_rate'];

$this->currencies[$a['id']] = $load;
}
}

my sugar-version ist 4.5d
php should be 5
mysql and webserver type I dont know, but it's from the following webspace-provider: www.cwcity.de

I would be glad if someone could help me, if requested I can try to find more information.

cheers, alex