CDbException

CDbCommand не удалось исполнить SQL-запрос: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/MYDsmsjW' (Errcode: 2 - No such file or directory). The SQL statement executed was: SELECT `t`.`product_id` AS `t0_c0`, `t`.`origin_number` AS `t0_c1`, `t`.`origin_number1` AS `t0_c2`, `t`.`brand` AS `t0_c3`, `manufacturer`.`manufacturer_id` AS `t1_c0`, `manufacturer`.`name` AS `t1_c1`, `manufacturer`.`image` AS `t1_c2`, `manufacturer`.`sort_order` AS `t1_c3`, `manufacturer`.`descr` AS `t1_c4`, `manufacturer`.`online_catalog` AS `t1_c5`, `manufacturer`.`website` AS `t1_c6`, `manufacturer`.`country` AS `t1_c7`, `manufacturer`.`count_products` AS `t1_c8` FROM `oc_product_origins` `t` LEFT JOIN `oc_manufacturer` `manufacturer` ON (`t`.`brand`=`manufacturer`.`manufacturer_id`) WHERE (t.product_id=196983) ORDER BY name, origin_number

/home/admin/web/acomplect.com/public_html/framework/db/CDbCommand.php(543)

531         {
532             if($this->_connection->enableProfiling)
533                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
534 
535             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
536             $message=$e->getMessage();
537             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
538                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
539 
540             if(YII_DEBUG)
541                 $message.='. The SQL statement executed was: '.$this->getText().$par;
542 
543             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
544                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
545         }
546     }
547 
548     /**
549      * Builds a SQL SELECT statement from the given query specification.
550      * @param array $query the query specification in name-value pairs. The following
551      * query options are supported: {@link select}, {@link distinct}, {@link from},
552      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
553      * {@link limit}, {@link offset} and {@link union}.
554      * @throws CDbException if "from" key is not present in given query parameter
555      * @return string the SQL statement

Stack Trace

#6
+
 /home/admin/web/acomplect.com/public_html/protected/controllers/ProductController.php(92): CActiveRecord->findAll(CDbCriteria)
87             )
88         );
89         $criteria->order = 'name, origin_number';
90         //$dependency = new CDbCacheDependency('SELECT COUNT(*) FROM oc_product_origins WHERE product_id=' . Yii::app()->request->getQuery("id"));
91         //$origins = ProductOrigins::model()->cache(60 * 60, $dependency)->findAll($criteria);
92         $origins = ProductOrigins::model()->findAll($criteria);
93 
94         $criteria = new CDbCriteria();
95         $criteria->addCondition('t.product_id=' . Yii::app()->request->getQuery("id"));
96         $criteria->with = array(
97             'marka' => array(
#19
+
 /home/admin/web/acomplect.com/public_html/index.php(15): CApplication->run()
10 
11 require_once($yii);
12 $loader = require_once($composer);
13 Yii::$classMap = $loader->getClassMap();
14 
15 Yii::createWebApplication($config)->run();
2024-03-29 00:01:25 nginx/1.15.5 Yii Framework/1.1.16