Advertisement
Guest User

CCDB Error

a guest
Mar 24th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.68 KB | None | 0 0
  1. CDbException
  2.  
  3. CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0-0' for key 'CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID'. The SQL statement executed was: INSERT INTO `catalog_product_option_title` (`option_id`, `store_id`) VALUES (:yp0, :yp1)
  4.  
  5. /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/db/CDbCommand.php(358)
  6.  
  7. 346         {
  8. 347             if($this->_connection->enableProfiling)
  9. 348                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
  10. 349
  11. 350             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
  12. 351             $message=$e->getMessage();
  13. 352             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
  14. 353                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
  15. 354
  16. 355             if(YII_DEBUG)
  17. 356                 $message.='. The SQL statement executed was: '.$this->getText().$par;
  18. 357
  19. 358             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
  20. 359                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
  21. 360         }
  22. 361     }
  23. 362
  24. 363     /**
  25. 364      * Executes the SQL statement and returns query result.
  26. 365      * This method is for executing an SQL query that returns result set.
  27. 366      * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
  28. 367      * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
  29. 368      * them in this way can improve the performance. Note that if you pass parameters in this way,
  30. 369      * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
  31. 370      * Please also note that all values are treated as strings in this case, if you need them to be handled as
  32. Stack Trace
  33. #0 
  34. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/db/ar/CActiveRecord.php(1080): CDbCommand->execute()
  35. #1 
  36. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/db/ar/CActiveRecord.php(809): CActiveRecord->insert(null)
  37. #2 
  38. –  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/protected/controllers/MigrateController.php(1322): CActiveRecord->save()
  39. 1317                                                                     $option_title2->$key = $option_title->$key;
  40. 1318                                                                 }
  41. 1319                                                             }
  42. 1320                                                             $option_title2->store_id = $store_id;
  43. 1321
  44. 1322                                                             if (!$option_title2->save()) {
  45. 1323                                                                 $errors[] = get_class($option_title2).": ".MigrateSteps::getStringErrors($option_title2->getErrors());
  46. 1324                                                             }
  47. 1325                                                         }
  48. 1326                                                     }
  49. 1327                                                 }
  50. #3 
  51. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/web/actions/CInlineAction.php(49): MigrateController->actionStep5()
  52. #4 
  53. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/web/CController.php(308): CInlineAction->runWithParams(array())
  54. #5 
  55. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/web/CController.php(286): CController->runAction(CInlineAction)
  56. #6 
  57. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
  58. #7 
  59. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/web/CWebApplication.php(282): CController->run("step5")
  60. #8 
  61. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/web/CWebApplication.php(141): CWebApplication->runController("migrate/step5")
  62. #9 
  63. +  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/yii/base/CApplication.php(184): CWebApplication->processRequest()
  64. #10
  65. –  /var/www/vhosts/s18844961.onlinehome-server.info/httpdocs/pub/ub-tool/index.php(13): CApplication->run()
  66. 08 // change the following paths if necessary
  67. 09 $yii=dirname(__FILE__).'/yii/yii.php';
  68. 10 $config=dirname(__FILE__).'/protected/config/main.php';
  69. 11
  70. 12 require_once($yii);
  71. 13 Yii::createWebApplication($config)->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement