首页 排行 分类 完本 书单 专题 用户中心 原创专区
作品分类
    KXcms Framework - 系统发生错误
    Hi,出错了!

    获取表category信息发生错误

    错误位置

    /www/wwwroot/www.92zhao.com/kuxin/model.php  LINE: 295

    285                 $fields = [];
    286                 if ($tableInfo = $this->db()->fetchAll("SHOW FIELDS FROM {$tablename}")) {
    287                     foreach ($tableInfo as $v) {
    288                         if ($v['Key'] == 'PRI')
    289                             $pks[] = strtolower($v['Field']);
    290                         $fields[strtolower($v['Field'])] = strpos($v['Type'], 'int') !== false;
    291                     }
    292                     DI::Cache()->set('tablefield_' . $tablename, $fields);
    293                     return $fields;
    294                 } else {
    295                     trigger_error('获取表' . $tablename . '信息发生错误 ', E_USER_ERROR);
    296                     return false;
    297                 }
    298             });
    299             Registry::set('tablefield_' . $tablename, $fields);
    300             return $fields;
    301         });
    302     }
    303 
    304     public function getPk(): string
    305     {
    
    TRACE
    #0  include() called at [/www/wwwroot/www.92zhao.com/kuxin/response.php:331]
    #1  Kuxin\Response::error(获取表category信息发生错误 , /www/wwwroot/www.92zhao.com/kuxin/model.php, 295) called at [/www/wwwroot/www.92zhao.com/kuxin/kuxin.php:183]
    #2  Kuxin\Kuxin::error(256, 获取表category信息发生错误 , /www/wwwroot/www.92zhao.com/kuxin/model.php, 295, Array ([tablename] => category,[fields] => Array (),[tableInfo] => ))
    #3  trigger_error(获取表category信息发生错误 , 256) called at [/www/wwwroot/www.92zhao.com/kuxin/model.php:295]
    #4  Kuxin\Model->Kuxin\{closure}(tablefield_category) called at [/www/wwwroot/www.92zhao.com/kuxin/cache.php:81]
    #5  Kuxin\Cache->debugGet(tablefield_category, Closure Object ()) called at [/www/wwwroot/www.92zhao.com/kuxin/model.php:298]
    #6  Kuxin\Model->Kuxin\{closure}(tablefield_category) called at [/www/wwwroot/www.92zhao.com/kuxin/registry.php:32]
    #7  Kuxin\Registry::get(tablefield_category, Closure Object ()) called at [/www/wwwroot/www.92zhao.com/kuxin/model.php:301]
    #8  Kuxin\Model->getTableField(category) called at [/www/wwwroot/www.92zhao.com/kuxin/model.php:689]
    #9  Kuxin\Model->parseWhereCondition(Array ([0] => Array ([pid] => 1),[1] => Array ([status] => 1))) called at [/www/wwwroot/www.92zhao.com/kuxin/model.php:681]
    #10 Kuxin\Model->parseWhere() called at [/www/wwwroot/www.92zhao.com/kuxin/model.php:480]
    #11 Kuxin\Model->select() called at [/www/wwwroot/www.92zhao.com/app/block/category.php:1]
    #12 App\Block\Category->list(Array ([withall] => 0,[pid] => 1)) called at [/www/wwwroot/www.92zhao.com/kuxin/block.php:38]
    #13 Kuxin\Block::Kuxin\{closure}(ef75d2164389b53719471ffc078d1f71) called at [/www/wwwroot/www.92zhao.com/kuxin/cache.php:81]
    #14 Kuxin\Cache->debugGet(ef75d2164389b53719471ffc078d1f71, Closure Object ()) called at [/www/wwwroot/www.92zhao.com/kuxin/block.php:44]
    #15 Kuxin\Block::show(category.list, Array ([withall] => 0,[pid] => 1)) called at [/www/wwwroot/www.92zhao.com/storage/template/kxwebno1,index.phtml:101]
    #16 include(/www/wwwroot/www.92zhao.com/storage/template/kxwebno1,index.phtml) called at [/www/wwwroot/www.92zhao.com/kuxin/view.php:146]
    #17 Kuxin\View::make(/index) called at [/www/wwwroot/www.92zhao.com/app/controller/index.php:20]
    #18 app\controller\Index->index() called at [/www/wwwroot/www.92zhao.com/kuxin/kuxin.php:111]
    #19 Kuxin\Kuxin::start() called at [/www/wwwroot/www.92zhao.com/kuxin/kuxin.php:215]
    #20 include(/www/wwwroot/www.92zhao.com/kuxin/kuxin.php) called at [/www/wwwroot/www.92zhao.com/public/index.php:5]
    
    文件加载
    /www/wwwroot/www.92zhao.com/public/index.php
    /www/wwwroot/www.92zhao.com/kuxin/kuxin.php
    /www/wwwroot/www.92zhao.com/kuxin/loader.php
    /www/wwwroot/www.92zhao.com/kuxin/config.php
    /www/wwwroot/www.92zhao.com/app/config/const.php
    /www/wwwroot/www.92zhao.com/app/config/kuxin.php
    /www/wwwroot/www.92zhao.com/env.php
    /www/wwwroot/www.92zhao.com/kuxin/helper/arr.php
    /www/wwwroot/www.92zhao.com/kuxin/registry.php
    /www/wwwroot/www.92zhao.com/app/helper.php
    /www/wwwroot/www.92zhao.com/app/version.php
    /www/wwwroot/www.92zhao.com/kuxin/plugin.php
    /www/wwwroot/www.92zhao.com/kuxin/helper/serialize.php
    /www/wwwroot/www.92zhao.com/app/plugin/configcache/configcache.php
    /www/wwwroot/www.92zhao.com/kuxin/di.php
    /www/wwwroot/www.92zhao.com/kuxin/cache.php
    /www/wwwroot/www.92zhao.com/kuxin/cache/memcached.php
    /www/wwwroot/www.92zhao.com/kuxin/db/mysql.php
    /www/wwwroot/www.92zhao.com/kuxin/router.php
    /www/wwwroot/www.92zhao.com/app/controller/index.php
    /www/wwwroot/www.92zhao.com/app/improve/web.php
    /www/wwwroot/www.92zhao.com/kuxin/controller.php
    /www/wwwroot/www.92zhao.com/app/model/stat/stat.php
    /www/wwwroot/www.92zhao.com/app/improve/model.php
    /www/wwwroot/www.92zhao.com/kuxin/model.php
    /www/wwwroot/www.92zhao.com/app/model/user/user.php
    /www/wwwroot/www.92zhao.com/kuxin/cookie.php
    /www/wwwroot/www.92zhao.com/kuxin/input.php
    /www/wwwroot/www.92zhao.com/kuxin/view.php
    /www/wwwroot/www.92zhao.com/app/component/domain.php
    /www/wwwroot/www.92zhao.com/kuxin/request.php
    /www/wwwroot/www.92zhao.com/kuxin/storage.php
    /www/wwwroot/www.92zhao.com/kuxin/storage/file.php
    /www/wwwroot/www.92zhao.com/storage/template/kxwebno1,index.phtml
    /www/wwwroot/www.92zhao.com/storage/template/parsetpl/a6790b13c8b33609ce977fbc79c31049.php
    /www/wwwroot/www.92zhao.com/kuxin/helper/url.php
    /www/wwwroot/www.92zhao.com/kuxin/response.php
    /www/wwwroot/www.92zhao.com/kuxin/block.php
    /www/wwwroot/www.92zhao.com/kuxin/helper/json.php
    /www/wwwroot/www.92zhao.com/app/block/category.php
    /www/wwwroot/www.92zhao.com/app/improve/block.php
    /www/wwwroot/www.92zhao.com/app/model/novel/category.php
    /www/wwwroot/www.92zhao.com/kuxin/filter.php
    /www/wwwroot/www.92zhao.com/kuxin/tpl/error.php