I hope hivemind has some more suggestions for fixing this error from the Yii Framework. The exact error specific to our setup is:
CDbException The "users" table for the active "Users" record class cannot be found in the database.
I am using the Yii Framework 1.1.11-dev from SVN, although this was just an attempt to fix the problem. We used the latest stable version 1.1.10.
We are trying to install code on our live server that works in my dev env. I feel the problem is almost certainly related to the database configuration, but I'm not sure where to find it.
I already searched here and searched the Yii forums where I found this problem listed a couple of times. Recommended fixes we have already tried include
- removal of a host and port from dsn
- with and without a schema for the table name (for example, "users" and "public.users")
- GRANT ALL ON THE DATABASE [dbname] Go to postgres
- Provide everything on each table in db using the code found here
The environment is as follows:
- DEV - OSX 10.7, PHP 5.3.10, PostgreSQL 9.0.3
- PROD - FC15, PHP 5.3.10, PostgreSQL 9.0.7
The error indicates that the user table does not exist, although this is pretty clear.
~$ psql -U postgres psql (9.0.7) Type "help" for help. postgres=
Our configuration in protected / config / main.php
'db'=>array( 'connectionString' => 'pgsql:dbname=lppsync', 'emulatePrepare' => true, 'username' => 'postgres', 'password' => '', ),
And the corresponding part of the user model
class Users extends CActiveRecord { public static function model($className=__CLASS__) { return parent::model($className); } public function tableName() { return 'users'; }
source share