Php Magento从1.3.x更新为1.4.x,但存在一些问题

Php Magento从1.3.x更新为1.4.x,但存在一些问题,php,magento,pear,magento-1.4,mage,Php,Magento,Pear,Magento 1.4,Mage,因此,我在升级客户的站点时走的是一条痛苦的道路。我不是magento大师,但我设法升级了它。然而,当我现在加载站点时,我得到了以下信息,我想知道是否有人知道如何修复它 PDOException Object ( [message:protected] => SQLSTATE[HY000]: General error: 1025 Error on rename of './seedpant_staging/#sql-351f_1668fd' to './seedpant_stagi

因此,我在升级客户的站点时走的是一条痛苦的道路。我不是magento大师,但我设法升级了它。然而,当我现在加载站点时,我得到了以下信息,我想知道是否有人知道如何修复它

PDOException Object
(
    [message:protected] => SQLSTATE[HY000]: General error: 1025 Error on rename of './seedpant_staging/#sql-351f_1668fd' to './seedpant_staging/wishlist_item' (errno: 150)
    [string:Exception:private] => 
    [code:protected] => HY000
    [file:protected] => /home/seedpant/public_html/staging/lib/Varien/Db/Adapter/Pdo/Mysql.php
    [line:protected] => 276
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/seedpant/public_html/staging/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 276
                    [function] => query
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `wishlist_item` DROP KEY `FK_ITEM_WISHLIST`
                        )

                )

            [1] => Array
                (
                    [file] => /home/seedpant/public_html/staging/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 517
                    [function] => raw_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `wishlist_item` DROP KEY `FK_ITEM_WISHLIST`
                        )

                )

            [2] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Wishlist/sql/wishlist_setup/mysql4-upgrade-0.7.4-0.7.5.php
                    [line] => 38
                    [function] => dropKey
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => wishlist_item
                            [1] => FK_ITEM_WISHLIST
                        )

                )

            [3] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 376
                    [args] => Array
                        (
                            [0] => /home/seedpant/public_html/staging/app/code/core/Mage/Wishlist/sql/wishlist_setup/mysql4-upgrade-0.7.4-0.7.5.php
                        )

                    [function] => include
                )

            [4] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 289
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => upgrade
                            [1] => 0.7.4
                            [2] => 0.7.8
                        )

                )

            [5] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 233
                    [function] => _upgradeResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 0.7.4
                            [1] => 0.7.8
                        )

                )

            [6] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 161
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [7] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/App.php
                    [line] => 363
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [8] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/App.php
                    [line] => 295
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [9] => Array
                (
                    [file] => /home/seedpant/public_html/staging/app/Mage.php
                    [line] => 596
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => 
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [10] => Array
                (
                    [file] => /home/seedpant/public_html/staging/index.php
                    [line] => 82
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => store
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => HY000
            [1] => 1025
            [2] => Error on rename of './seedpant_staging/#sql-351f_1668fd' to './seedpant_staging/wishlist_item' (errno: 150)
        )

)
痕迹


有点离题了,但是如果你正在升级,为什么不升级到最新的1.9.x或至少1.8.x,它们更稳定、更安全、功能更丰富?我想我必须先从1.3升级到1.4/ssh中的mage说它现在在1.4.2上,但当然Fornted不起作用,所以假设我应该在升级到1.8或1.9之前对其进行排序?
Error in file: "/home/seedpant/public_html/staging/app/code/core/Mage/Wishlist/sql/wishlist_setup/mysql4-upgrade-0.7.4-0.7.5.php" - SQLSTATE[HY000]: General error: 1025 Error on rename of './seedpant_staging/#sql-351f_1668fd' to './seedpant_staging/wishlist_item' (errno: 150)

    #0 /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php(390): Mage::exception('Mage_Core', 'Error in file: ...')
    #1 /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php(289): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.7.4', '0.7.8')
    #2 /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php(233): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.7.4', '0.7.8')
    #3 /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/Resource/Setup.php(161): Mage_Core_Model_Resource_Setup->applyUpdates()
    #4 /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/App.php(363): Mage_Core_Model_Resource_Setup::applyAllUpdates()
    #5 /home/seedpant/public_html/staging/app/code/core/Mage/Core/Model/App.php(295): Mage_Core_Model_App->_initModules()
    #6 /home/seedpant/public_html/staging/app/Mage.php(596): Mage_Core_Model_App->run(Array)
    #7 /home/seedpant/public_html/staging/index.php(82): Mage::run('', 'store')
    #8 {main}