Salve,
ho un problema mettendo on line un sito che ho realizzato e che in locale mi funziona perfettamente.
/home/.sites/148/site6/web/2/yii/framework/db/CDbConnection.php(382)
370 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371 try
372 {
373 Yii::trace('Opening DB connection','system.db.CDbConnection');
374 $this->_pdo=$this->createPdoInstance();
375 $this->initConnection($this->_pdo);
376 $this->_active=true;
377 }
378 catch(PDOException $e)
379 {
380 if(YII_DEBUG)
381 {
382 throw new CDbException('CDbConnection failed to open the DB connection: '.
383 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384 }
385 else
386 {
387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389 }
390 }
391 }
392 }
393
394 /**
In pratica quando il sito va a interrogare in qualche modo il db Yii mi dice che non posso farlo. Il database che uso è di tipo Sqlite.
In requirements in effetti ho un warning sul PDO per Sqlite nonostante nella sezione PDO del phpInfo mi dica:
PDO
PDO support enabled
PDO drivers mysql, sqlite2
Inoltre il comando
print_r(PDO::getAvailableDrivers());
restituisce
Array ( [0] => mysql [1] => sqlite2 )
Qualcuno ha idea di cosa stia succedendo?
PS: sto usando il modulo Users… se può servire.