E
E
Enniack2016-02-09 12:30:21
Yii
Enniack, 2016-02-09 12:30:21

Why does the site not work after the migration (YII)?

After transferring the site from hosting to hosting (website on YII 1.1.14), it throws an error
CDbException
The table "{{gallery}}", mentioned in the active record of the "Gallery" class, was not found in the database.
Tell me where to look?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Bukharev, 2016-02-09
@evgenybuckharev

Does the gallery table exist in the database?
Clearing the cache helps if db schema caching is enabled, it is disabled by default, and many do not enable it

A
Alexander, 2016-02-09
@kentuck1213

to base

R
Ruslan Ibragimov, 2016-02-09
@durachook

if it has already been created but the error persists, clean the runtime folder, the table schemas are stored there,
you can do this Yii::app()->cache->flush();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question