0

使用 mamp 在我的本地主机上安装 Magento 后,我无法访问管理门户。我去

http://localhost:8888/shop1/index.php/admin/

然后使用我的用户名和密码,仅此而已。没有错误,没有什么,只是登录管理面板。

我究竟做错了什么?

注意:我还重新安装了 3 次并重新下载了文件以安装 Magento。

在此先感谢您的帮助

更新


这只发生在 google chrome、safari 和 mozilla 上运行缓慢但有效。

更新 2


我正在尝试使用 127.0.0.1 并使用 firefox 重新安装,但我得到了这个异常:

Mage_Core_Exception 对象 ( [_messages:protected] => 数组 ( )

[message:protected] => Can't retrieve entity config: sales/quote_shipping_rate
[string:Exception:private] => 
[code:protected] => 0
[file:protected] => /Applications/MAMP/htdocs/shop2/app/Mage.php
[line:protected] => 594
[trace:Exception:private] => Array
    (
        [0] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/Resource.php
                [line] => 272
                [function] => throwException
                [class] => Mage
                [type] => ::
                [args] => Array
                    (
                        [0] => Can't retrieve entity config: sales/quote_shipping_rate
                    )

            )

        [1] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/Resource/Setup.php
                [line] => 184
                [function] => getTableName
                [class] => Mage_Core_Model_Resource
                [type] => ->
                [args] => Array
                    (
                        [0] => sales/quote_shipping_rate
                    )

            )

        [2] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Sales/Model/Resource/Setup.php
                [line] => 87
                [function] => getTable
                [class] => Mage_Core_Model_Resource_Setup
                [type] => ->
                [args] => Array
                    (
                        [0] => sales/quote_shipping_rate
                    )

            )

        [3] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Sales/Model/Resource/Setup.php
                [line] => 101
                [function] => _flatTableExist
                [class] => Mage_Sales_Model_Resource_Setup
                [type] => ->
                [args] => Array
                    (
                        [0] => sales/quote_shipping_rate
                    )

            )

        [4] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Sales/sql/sales_setup/mysql4-upgrade-0.9.16-0.9.17.php
                [line] => 32
                [function] => addAttribute
                [class] => Mage_Sales_Model_Resource_Setup
                [type] => ->
                [args] => Array
                    (
                        [0] => quote_address_rate
                        [1] => method_title
                        [2] => Array
                            (
                                [type] => text
                            )

                    )

            )

        [5] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/Resource/Setup.php
                [line] => 624
                [args] => Array
                    (
                        [0] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Sales/sql/sales_setup/mysql4-upgrade-0.9.16-0.9.17.php
                    )

                [function] => include
            )

        [6] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/Resource/Setup.php
                [line] => 437
                [function] => _modifyResourceDb
                [class] => Mage_Core_Model_Resource_Setup
                [type] => ->
                [args] => Array
                    (
                        [0] => upgrade
                        [1] => 0.9.14
                        [2] => 1.6.0.8
                    )

            )

        [7] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/Resource/Setup.php
                [line] => 320
                [function] => _upgradeResourceDb
                [class] => Mage_Core_Model_Resource_Setup
                [type] => ->
                [args] => Array
                    (
                        [0] => 0.9.14
                        [1] => 1.6.0.8
                    )

            )

        [8] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/Resource/Setup.php
                [line] => 235
                [function] => applyUpdates
                [class] => Mage_Core_Model_Resource_Setup
                [type] => ->
                [args] => Array
                    (
                    )

            )

        [9] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/App.php
                [line] => 417
                [function] => applyAllUpdates
                [class] => Mage_Core_Model_Resource_Setup
                [type] => ::
                [args] => Array
                    (
                    )

            )

        [10] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/code/core/Mage/Core/Model/App.php
                [line] => 343
                [function] => _initModules
                [class] => Mage_Core_Model_App
                [type] => ->
                [args] => Array
                    (
                    )

            )

        [11] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/app/Mage.php
                [line] => 683
                [function] => run
                [class] => Mage_Core_Model_App
                [type] => ->
                [args] => Array
                    (
                        [0] => Array
                            (
                                [scope_code] => 
                                [scope_type] => store
                                [options] => Array
                                    (
                                    )

                            )

                    )

            )

        [12] => Array
            (
                [file] => /Applications/MAMP/htdocs/shop2/index.php
                [line] => 87
                [function] => run
                [class] => Mage
                [type] => ::
                [args] => Array
                    (
                        [0] => 
                        [1] => store
                    )

            )

    )

[previous:Exception:private] =>  )
4

1 回答 1

1

这是由于域为 localhost 时未正确设置 cookie。

将其更改为 127.0.0.1 并且它应该可以工作,可能需要再次卸载。

于 2013-10-04T16:48:22.253 回答