Error

Class 'Mongo' not found

/data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDB.php(144)

132             try
133             {
134                 Yii::trace('Opening MongoDB connection', 'ext.MongoDb.EMongoDB');
135                 if(empty($this->connectionString))
136                     throw new EMongoException(Yii::t('yii', 'EMongoDB.connectionString cannot be empty.'));
137 
138                 if($this->persistentConnection !== false)
139                     $this->_mongoConnection = new Mongo($this->connectionString, array(
140                         'connect'=>$this->autoConnect,
141                         'persist'=>$this->persistentConnection
142                     ));
143                 else
144                     $this->_mongoConnection = new Mongo($this->connectionString, array(
145                         'connect'=>$this->autoConnect,
146                     ));
147 
148                 return $this->_mongoConnection;
149             }
150             catch(MongoConnectionException $e)
151             {
152                 throw new EMongoException(Yii::t(
153                     'yii',
154                     'EMongoDB failed to open connection: {error}',
155                     array('{error}'=>$e->getMessage())
156                 ), $e->getCode());

Stack Trace

#0
+
 /data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDB.php(181): EMongoDB->getConnection()
176      * @since v1.0
177      */
178     public function getDbInstance()
179     {
180         if($this->_mongoDb === null)
181             return $this->_mongoDb = $this->getConnection()->selectDB($this->dbName);
182         else
183             return $this->_mongoDb;
184     }
185 
186     /**
#1
+
 /data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(221): EMongoDB->getDbInstance()
216      * @return MongoDB
217      * @since v1.0
218      */
219     public function getDb()
220     {
221         return $this->getMongoDBComponent()->getDbInstance();
222     }
223 
224     /**
225      * This method must return collection name for use with this model
226      * this must be implemented in child classes
#2
+
 /data/infoEzProduction/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(246): EMongoDocument->getDb()
241      * @since v1.0
242      */
243     public function getCollection()
244     {
245         if(!isset(self::$_collections[$this->getCollectionName()]))
246         self::$_collections[$this->getCollectionName()] = $this->getDb()->selectCollection($this->getCollectionName());
247 
248         return self::$_collections[$this->getCollectionName()];
249     }
250 
251     /**
2024-03-29 15:14:47 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.12