Hi,
I created a basic site that allow authenticated users to upload files onto the database. It works perfectly on my local wamp environment but when I uploaded the files to production (bluehost.com) I get the following error mesg. Does anyone know why this occurs? Is there a setting I am missing?
Thanks!
CDbException
Description
The table "Report" for active record class "Report" cannot be found in the database.
Source File
/home2/techsavv/public_html/staging/yii/framework/db/ar/CActiveRecord.php(2154)
02142: private $_validators;
02143:
02144: /**
02145: * Constructor.
02146: * @param CActiveRecord the model instance
02147: */
02148: public function __construct($model)
02149: {
02150: $this->_model=$model;
02151:
02152: $tableName=$model->tableName();
02153: if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
02154: throw new CDbException(Yii::t(‘yii’,‘The table “{table}” for active record class “{class}” cannot be found in the database.’,
02155: array(’{class}’=>get_class($model),’{table}’=>$tableName)));
02156: if($table->primaryKey===null)
02157: $table->primaryKey=$model->primaryKey();
02158: $this->tableSchema=$table;
02159: $this->columns=$table->columns;
02160:
02161: foreach($table->columns as $name=>$column)
02162: {
02163: if(!$column->isPrimaryKey && $column->defaultValue!==null)
02164: $this->attributeDefaults[$name]=$column->defaultValue;
02165: }
02166: