搜档网
当前位置:搜档网 › magento安装错误汇总

magento安装错误汇总

I solved this problem by creating a new virtualhost “magento.local”
At he begin, my url looks like http://localhost/myproject/magento/

My configuration : windows7/ firefox / wamp / magento 1.4.2.0
I add my new virtualhost in : c:\windows\System32\drivers\etc\hosts
127.0.0.1 magento.local
magento本机安装无法继续以及安装好后无法登陆与注册的问题
由 ADMIN 于 2011-02-27 提交
利用周末时间看了些magento的使用视频以及文章,打算了解下magento模板的制作。于是在本机(windows系统)已经配置好了的服务器(nginx、php、mysql)上安装Magento 1.5.0.1,在接下来的安装与使用过程中遇见了如下几个问题:

(nginx 安装 mangento 时候 conf 文件的配置这不详细说明,大家可以上网搜索很多。)

1、安装时候是通过localhost安装的,在填写访问路径的时候被告知 Please enter a valid URL. Protocol is required (http://, https:// or ftp://),网址格式错误。

搜索后得到如下结果:网址的格式不对(见参考地址1)
第一种方法,可以把localhost 换成 127.0.0.1,于是按照要求修改了提交,还是不能继续安装。
第二种方法,注册时候既然是 js 判断的那么就屏蔽 js ,把文件 magento\js\prototype\validation.js 的第 505 - 507 行屏蔽了。这样就可以继续安装了,安装好后还原屏蔽的 js 就可以了。

2、安装好后前台不能注册用户,后台也不能登陆直接跳出 magento 提示页面说没有设置 cookies。

In wamp\bin\apache2.2.17\conf\ httpd.conf
NameVirtualHost *:80

DocumentRoot “C:\wamp\www\myproject\magento”
ServerName magento.local
ServerAlias magento


If after this modification, you don’t have acces to your project list anymore (your http://localhost)
Add this in httpd.conf

DocumentRoot “C:\wamp\www”
ServerName localhost
ServerAlias localhost


Don’t forget to restart your services, hope that it could help someone



出现Exception printing is disabled by default for security reasons. Error log record number: 793079871864错误,则可如下操作
cp D:\coreamp\htdocs\magento\errors\local.xml.sample D:\coreamp\htdocs\magento\errors\local.xml 开启详细错误报告


当前位置: 首页 - magento新手问题 magento疑难解答 - 解决安装magento报错问题SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘cataloginventory_stock_status’ already exists Trace:
2010-04-27
解决安装magento报错问题SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘cataloginventory_stock_status’ already exists Trace:

栏目:magento新手问题 , magento疑难解答 1,654 views 1 枚回复
有时候安装magento后竟然进入不了前台,提示Error in file: “…\app\code\core\Mage\CatalogInventory\sql\cataloginventory_setup\mysql4-up

grade-0.7.4-0.7.5.php” - SQLSTATE[42S01] 错误,详细错误内容如下:
Error in file: “…\app\code\core\Mage\CatalogInventory\sql\cataloginventory_setup\mysql4-upgrade-0.7.4-0.7.5.php” - SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘cataloginventory_stock_status’ already exists
#0 …\app\code\core\Mage\Core\Model\Resource\Setup.php(292): Mage::exception(‘Mage_Core’, ‘Error in file: …’)
#1 …\app\code\core\Mage\Core\Model\Resource\Setup.php(179): Mage_Core_Model_Resource_Setup->_modifyResourceDb(‘upgrade’, ‘0.7.4′, ‘0.7.5′)
#2 …\app\code\core\Mage\Core\Model\Resource\Setup.php(146): Mage_Core_Model_Resource_Setup->_upgradeResourceDb(‘0.7.4′, ‘0.7.5′)
#3 …\app\code\core\Mage\Core\Model\Resource\Setup.php(121): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 …\app\code\core\Mage\Core\Model\Config.php(263): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 …\app\code\core\Mage\Core\Model\App.php(263): Mage_Core_Model_Config->init(Array)
#6 …\app\Mage.php(434): Mage_Core_Model_App->init(”, ’store’, Array)
#7 …\app\Mage.php(455): Mage::app(”, ’store’, Array) #8 F:\Zend\Apache2\htdocs\magento\index.php(65): Mage::run()
#9 {main}
这种情况一般是在安装magento1.324版本时出现的错误。具体解决方法如下:
1.第一步在你的magento网站目录\app\code\core\Mage\CatalogInventory\sql \cataloginventory_setup中找到mysql4-upgrade-0.7.4-0.7.5.php文件。
2.用编辑器打开该文件,在大约36行处找到
CREATE TABLE ‘{$installer->getTable(‘cataloginventory_stock_status’)}’
在这句之前加上一行
DROP TABLE IF EXISTS {$this->getTable(‘cataloginventory_stock_status’)};
注意别忘记了后面的分号,并且为英文形式的分号。
3.去掉地址栏http://yourdomain/report/?id=703788212&s=default后面的 report/?id=703788212&s=default刷新下地址栏就变成重新安装了,这就意味着安装magento成功啦!(前提:你的服务器配置没有问题)
4.填好magento安装信息,下一步,直到最后OK!

要是还是不成功,就要考虑下环境了,我开始也是这样,换了个AMP环境就安装成功了。





相关主题