zoukankan      html  css  js  c++  java
  • megento 安装过程问题 畅想由我

    确认 app/etc , var , 和 media 这几个文件夹是可写的.

    Please enter a valid URL. Protocol is required (http://, https:// or ftp://)

    js\prototype\validation.js

    505行左右,注释:

    ['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
                    return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
                }],

    示例网址:

    www.example.com

    修改本地DNS:WINDOWS\system32\drivers\etc\hosts

    127.0.0.1  www.example.com

    Please enter 7 or more characters. Password should contain both numeric and alphabetic characters.

    js\prototype\validation.js

    477行,注释:

    ['validate-admin-password', 'Please enter 7 or more characters. Password should contain both numeric and alphabetic characters.', function(v) {
                    var pass=v.strip();
                    if (0 == pass.length) {
                        return true;
                    }
                    if (!(/[a-z]/i.test(v)) || !(/[0-9]/.test(v))) {
                        return false;
                    }
                    return !(pass.length < 7);
                }],

    无法进入下一步。

    长度为7,英文字符[a-z]和[0-9]

    安装完,后台的账号密码没有用?(可能是base_url的问题)

    -------------------------------------------------------------------

    本地安装成功后无法进入后台,密码和用户名均正确

    这是一个cookie问题,使用firefox等非IE核心浏览器可以解决这个问题.虽然浏览器处理cookie的方式很相似但并不是100%相同. Magento1.4以上的版本已经完全修复这个问题.
    在IE和 chrome等浏览器,用户名和密码正确而无法进入后台问题

    具体修正这个问题的方法是定位到:

     app/code/core/Mage/Core/Model/Session/Abstract/Varien.php ,大约在97行,

    if (isset($cookieParams['domain'])) {
    //$cookieParams['domain'] = $cookie->getDomain();//本机测试,注释掉这一行        }

    ------------------------------------------------------------------------

    重装:

    1.删除magento的根目录下app/etc文件夹中的local.xml文件和var 文件夹中所以缓存文件。

    2.清空数据库里的所有表(有必要的话你也可以删掉之前的数据库,然后为magento新建一个空数据库)。

    3.导入示例数据库或导入你之前备份的完整无误数据库。

    在 configuration这一步:

    没建数据库,也没有错误提示。

    有一个选项: Skip Base URL Validation Before the Next Step
    选一下。

    {{base_url}} is not recommended to use in a production environment to declare the Base Unsecure URL / Base Secure URL. It is highly recommended to change this value in your Magento configuration.

    -----------------------------------------------------------------------

    - Login into your Magento admin

    - Navigate to: System-> Configurations and select the ‘Web’ tab.

    - For every Website and Store view in the ‘Current Configuration Scope’ drop-down (assuming you do not have them set to ‘use default’ or ‘ use website)
    Open both Unsecure and Secure sections.

    Look for the value of ‘Base URL’. if this field does not contain {{base_url}}, you are not affected, and there is no need to do anything else. If you see {{base_url}} you need to replace this value with full base URL of your store (e.g. http://www.somedomain.com) which includes your full domain you wish to use with Magento.

    在 system->configuratios->web 的 Base Unsecure Url 和 Base Secure Url 选项中

    {{base_url}} 都改为 http://www.example.com

     System > Cache management and refresh all caches.

    ----------------------------------------------------------------------------------

    You have 1 critical, 4 major, 19 minor and 9 notice unread message(s). ==>Go to messages inbox. ==>Select All==>Actions: Mark as Read 提交即可。

    -----------------------------------------------------

    Messages Inbox  是 system->notifications

    --------------------------------------------------------------

    One or more of the Indexes are not up to date: Product Attributes, Product Prices, Catalog URL Rewrites, Product Flat Data, Category Flat Data, Category Products, Catalog Search Index, Stock Status, Tag Aggregation Data. Click here to go to Index Management and rebuild required indexes.

    -------------------------------------------------------------

     system->index management

    rebuilding the indexes

    执行Index Management 重建索引就可以

    --------------------------------------------------------------------

    There was a problem with reindexing process.

    下载一个magento 数据库修复工具

    http://www.magentocommerce.com/download

    2、重新安装一个同版本的magento

    3、用修复工作修复一下

    4、清除缓存

    就可以用

  • 相关阅读:
    朗志轻量级项目管理解决方案-RBAC角色权限模块介绍
    关于业务规则层、业务实体层、业务外观层、模型层的作用很不清楚,殷切期望解答
    已有类实例,现在想拥有另一个相同状态的实例,除了反序列化还有别的办法吗?
    签名工具
    请教一个winform程序设计上的问题
    在使用WeifenLuo Suite时遇到的问题,自己记录一下,备忘
    解读C#正则表达式
    [导入]jbuilder 2006开发struts+sqlserver2K准备工作
    如何用设计模式变相实现类的多继承?
    WriteXmlSchema(xsdFileName)和GetXmlSchema()输出的内容的差异
  • 原文地址:https://www.cnblogs.com/plan/p/2694367.html
Copyright © 2011-2022 走看看