抓取结果
Database Exception – yii\db\Exception PDOException: SQLSTATE[HY000]: General error: 145 Table './xxbaike_www/mz_article' is marked as crashed and should be repaired in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php:1290 Stack trace: #0 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php(1290): PDOStatement->execute() #1 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php(1158): yii\db\Command->internalExecute('SELECT * FROM `...') #2 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL) #3 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll() #4 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL) #5 /www/wwwroot/www.xxbaike.com/frontendV2/modules/content/controllers/DefaultController.php(100): yii\db\ActiveQuery->all() #6 [internal function]: frontendV2\modules\content\controllers\DefaultController->actionIndex() #7 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #8 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #9 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array) #10 /www/wwwroot/www.xxbaike.com/common/core/base/BaseApplication.php(79): yii\base\Module->runAction('', Array) #11 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Application.php(386): common\core\base\BaseApplication->handleRequest(Object(yii\web\Request)) #12 /www/wwwroot/www.xxbaike.com/frontendV2/web/index.php(58): yii\base\Application->run() #13 {main} Next yii\db\Exception: SQLSTATE[HY000]: General error: 145 Table './xxbaike_www/mz_article' is marked as crashed and should be repaired The SQL being executed was: SELECT * FROM `mz_article` WHERE ((`siteid`=1) AND (`status`=4)) AND (`thumb` <> '') AND (FIND_IN_SET('1',`posids`)) ORDER BY `published_at` DESC, `updated_at` DESC LIMIT 8 in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Schema.php:664 Stack trace: #0 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php(1295): yii\db\Schema->convertException(Object(PDOException), 'SELECT * FROM `...') #1 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php(1158): yii\db\Command->internalExecute('SELECT * FROM `...') #2 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL) #3 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll() #4 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL) #5 /www/wwwroot/www.xxbaike.com/frontendV2/modules/content/controllers/DefaultController.php(100): yii\db\ActiveQuery->all() #6 [internal function]: frontendV2\modules\content\controllers\DefaultController->actionIndex() #7 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #8 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #9 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array) #10 /www/wwwroot/www.xxbaike.com/common/core/base/BaseApplication.php(79): yii\base\Module->runAction('', Array) #11 /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Application.php(386): common\core\base\BaseApplication->handleRequest(Object(yii\web\Request)) #12 /www/wwwroot/www.xxbaike.com/frontendV2/web/index.php(58): yii\base\Application->run() #13 {main} Additional Information: Array ( [0] => HY000 [1] => 145 [2] => Table './xxbaike_www/mz_article' is marked as crashed and should be repaired ) Copied! Database Exception – yii\db\Exception SQLSTATE[HY000]: General error: 145 Table './xxbaike_www/mz_article' is marked as crashed and should be repaired The SQL being executed was: SELECT * FROM `mz_article` WHERE ((`siteid`=1) AND (`status`=4)) AND (`thumb` <> '') AND (FIND_IN_SET('1',`posids`)) ORDER BY `published_at` DESC, `updated_at` DESC LIMIT 8 Error Info: Array ( [0] => HY000 [1] => 145 [2] => Table './xxbaike_www/mz_article' is marked as crashed and should be repaired ) ↵ Caused by: PDOException SQLSTATE[HY000]: General error: 145 Table './xxbaike_www/mz_article' is marked as crashed and should be repaired in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php at line 1290 1. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Schema.php at line 664 655656657658659660661662663664665666667668669670671672673 $exceptionClass = '\yii\db\Exception'; foreach ($this->exceptionMap as $error => $class) { if (strpos($e->getMessage(), $error) !== false) { $exceptionClass = $class; } } $message = $e->getMessage() . "\nThe SQL being executed was: $rawSql"; $errorInfo = $e instanceof \PDOException ? $e->errorInfo : null; return new $exceptionClass($message, $errorInfo, (int) $e->getCode(), $e); } /** * Returns a value indicating whether a SQL statement is for read purpose. * @param string $sql the SQL statement * @return bool whether a SQL statement is for read purpose. */ public function isReadQuery($sql) { 2. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php at line 1295 – yii\db\Schema::convertException(PDOException, 'SELECT * FROM `mz_article` WHERE...') 1289129012911292129312941295129612971298129913001301 } else { $this->pdoStatement->execute(); } break; } catch (\Exception $e) { $rawSql = $rawSql ?: $this->getRawSql(); $e = $this->db->getSchema()->convertException($e, $rawSql); if ($this->_retryHandler === null || !call_user_func($this->_retryHandler, $e, $attempt)) { throw $e; } } } } 3. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php at line 1158 – yii\db\Command::internalExecute('SELECT * FROM `mz_article` WHERE...') 1152115311541155115611571158115911601161116211631164 $this->prepare(true); try { $profile and Yii::beginProfile($rawSql, 'yii\db\Command::query'); $this->internalExecute($rawSql); if ($method === '') { $result = new DataReader($this); } else { if ($fetchMode === null) { $fetchMode = $this->fetchMode; 4. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Command.php at line 399 – yii\db\Command::queryInternal('fetchAll', null) 393394395396397398399400401402403404405 * @return array all rows of the query result. Each array element is an array representing a row of data. * An empty array is returned if the query results in nothing. * @throws Exception execution failed */ public function queryAll($fetchMode = null) { return $this->queryInternal('fetchAll', $fetchMode); } /** * Executes the SQL statement and returns the first row of the result. * This method is best used when only the first row of result is needed for a query. * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://secure.php.net/manual/en/pdostatement.setfetchmode.php) 5. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/Query.php at line 237 – yii\db\Command::queryAll() 231232233234235236237238239240241242243 */ public function all($db = null) { if ($this->emulateExecution) { return []; } $rows = $this->createCommand($db)->queryAll(); return $this->populate($rows); } /** * Converts the raw query results into the format as specified by this query. * This method is internally used to convert the data fetched from database 6. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/db/ActiveQuery.php at line 133 – yii\db\Query::all(null) 127128129130131132133134135136137138139 * @param Connection $db the DB connection used to create the DB command. * If null, the DB connection returned by [[modelClass]] will be used. * @return array|ActiveRecord[] the query results. If the query results in nothing, an empty array will be returned. */ public function all($db = null) { return parent::all($db); } /** * {@inheritdoc} */ public function prepare($builder) 7. in /www/wwwroot/www.xxbaike.com/frontendV2/modules/content/controllers/DefaultController.php at line 100 – yii\db\ActiveQuery::all() 949596979899100101102103104105106 /** * 网站首页 */ public function actionIndex() { $data = array(); //焦点图 $data['focusThumbModel'] = Article::find()->where(['siteid'=>$this->siteid, 'status' => self::STATUS])->andWhere("`thumb` <> ''")->andWhere("FIND_IN_SET('1',`posids`)")->orderBy('`published_at` DESC,`updated_at` DESC')->indexBy('id')->limit(8)->all(); //置顶图片文章 $data['topModel'] = Article::find()->where(['siteid'=>$this->siteid, 'status' => self::STATUS, 'top_ok'=>1])->orderBy('`hits` DESC,`published_at` DESC')->indexBy('id')->limit(10)->all(); $data['topThumbModel'] = Article::find()->where(['siteid'=>$this->siteid, 'status' => self::STATUS, 'top_ok'=>1])->andWhere("`thumb` <> ''")->orderBy('`hits` DESC,`published_at` DESC')->indexBy('id')->limit(10)->all(); //推荐文章 8. frontendV2\modules\content\controllers\DefaultController::actionIndex() 9. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([frontendV2\modules\content\controllers\DefaultController, 'actionIndex'], []) 515253545556575859 $args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } } 10. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Controller.php at line 157 – yii\base\InlineAction::runWithParams([]) 151152153154155156157158159160161162163 } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */ 11. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Module.php at line 528 – yii\base\Controller::runAction('index', []) 522523524525526527528529530531532533534 $parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; } 12. in /www/wwwroot/www.xxbaike.com/common/core/base/BaseApplication.php at line 79 – yii\base\Module::runAction('', []) 73747576777879808182838485 $params = array_splice($this->catchAll, 1); } try { LuLu::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $actionsResult = $this->runAction($route, $params); $result = $actionsResult instanceof ActionResult ? $actionsResult->result : $actionsResult; if ($result instanceof \yii\web\Response) { return $result; 13. in /www/wwwroot/www.xxbaike.com/vendor/yiisoft/yii2/base/Application.php at line 386 – common\core\base\BaseApplication::handleRequest(yii\web\Request) 380381382383384385386387388389390391392 { try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send(); 14. in /www/wwwroot/www.xxbaike.com/frontendV2/web/index.php at line 58 – yii\base\Application::run() 52535455565758 if($siteStatus == '0') { $sys_close_tips = isset($activeSites[$siteid]) ? $activeSites[$siteid]['close_tips'] : ''; $app->catchAll = ['/content/default/close', 'message' => $sys_close_tips]; } $app->run(); 2025-09-09, 04:37:19 nginx/1.28.0 Yii Framework/2.0.18-dev
网站标题
生活百科_百科全书_百科大全_世界百科知识大全-信息百科网
关键词
生活百科,百科全书,百科大全,世界百科知识大全
站点描述
信息百科网为您提供各种生活百科、百科全书、百科大全、世界百科知识等内容,看百科就上信息百科网