1
magento upgrade 1.5.1.0 >> {1.6.2.0,1.7.0.2,1.8.0.0}我試圖刪除所有模塊,直接升級文件並使用magento下載器,沒有運氣, 每次我得到這個錯誤。但在哪裏以及爲什麼它沒有完全正確,如何正確調試它?SQLSTATE [HY093]:無效參數編號:未綁定任何參數
Error in file: "Z:\home\www\store\app\code\core\Mage\Core\sql\core_setup\mysql4-upgrade-1.5.9.9-1.6.0.0.php"
- SQLSTATE[HY093]: Invalid parameter number: no parameters were bound
Trace:
#0 Z:\home\www\store\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 Z:\home\www\store\app\code\core\Mage\Core\Model\Resource\Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.8.28', '1.6.0.3')
#2 Z:\home\www\store\app\code\core\Mage\Core\Model\Resource\Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.8.28', '1.6.0.3')
#3 Z:\home\www\store\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 Z:\home\www\store\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 Z:\home\www\store\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#6 Z:\home\www\store\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#7 Z:\home\www\store\index.php(87): Mage::run('', 'store')
#8 {main}
您確定您的PDO mysql已啓用嗎?檢查你的phpinfo()輸出。 –
錯誤將是: 該適配器需要PDO擴展,但擴展未加載。問題出現在某個表名中'?'在兩者之間。 – ADM