-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sometime my code run well, but sometime this error occurs #5797
Comments
code fragments: |
How many records you have in table associated with MItem? |
3 records |
show your |
Please show the PHP type of the value of |
it is object, mysql, yes, I enabled schema caching 2014-10-31 09:08:52,yii\db\TableSchema Object
.... CREATE TABLE wx_item ( config/db.php: web.php |
Please replace line 359 in $schema = static::getTableSchema();
if (!$schema instanceof TableSchema) {
throw new Exception("Unexpected type: " . gettype($schema));
}
$columns = $schema->columns; |
type is string 2014-10-31 13:19:34 [171.82.160.72][][-][error][yii\db\Exception] exception 'yii\db\Exception' with message 'Unexpected type: string' in /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/ActiveRecord.php:370 |
What is the value of |
it is string type, and its value is some number, such as "0.83963800 1415176883". yes, i will check my memcached |
i replace the memcache with apc, and got new errors |
The APC issue was already fixed in master. |
2014-10-29 14:15:35 [111.172.8.83][][-][error][yii\base\ErrorException:8] exception 'yii\base\ErrorException' with message 'Trying to get property of non-object' in /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/ActiveRecord.php:359
Stack trace:
#0 /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/ActiveRecord.php(359): yii\base\ErrorHandler->handleError(8, 'Trying to get p...', '/mnt/wwwroot/wx...', 359, Array)
#1 /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/ActiveQueryTrait.php(132): yii\db\ActiveRecord::populateRecord(Object(app\models\MItem), Array)
#2 /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/ActiveQuery.php(218): yii\db\ActiveQuery->createModels(Array)
#3 /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/Query.php(207): yii\db\ActiveQuery->populate(Array)
#4 /mnt/wwwroot/wx/vendor/yiisoft/yii2/db/ActiveQuery.php(130): yii\db\Query->all(NULL)
#5 /mnt/wwwroot/wx/controllers/WapController.php(1143): yii\db\ActiveQuery->all()
#6 [internal function]: app\controllers\WapController->actionCardlist()
#7 /mnt/wwwroot/wx/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)
#8 /mnt/wwwroot/wx/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array)
#9 /mnt/wwwroot/wx/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('cardlist', Array)
#10 /mnt/wwwroot/wx/vendor/yiisoft/yii2/web/Application.php(83): yii\base\Module->runAction('wap/cardlist', Array)
#11 /mnt/wwwroot/wx/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request))
#12 /mnt/wwwroot/wx/web/index.php(14): yii\base\Application->run()
#13 {main}
Yii is 2.0.0
The text was updated successfully, but these errors were encountered: