我的安装程序脚本无法运行。Magento 1.7 - 安装程序脚本不运行
/app/etc/modules/Starmall_Salesorder.xml
<?xml version="1.0"?>
<config>
<modules>
<Starmall_Salesorder>
<active>true</active>
<version>0.1.0</version>
<codePool>local</codePool>
</Starmall_Salesorder>
</modules>
的Config.xml
<modules>
<Starmall_Salesorder>
<version>0.1.0</version>
</Starmall_Salesorder>
</modules>
...
<resources>
<starmall_salesorder_setup>
<setup>
<module>Starmall_Salesorder</module>
</setup>
</starmall_salesorder_setup>
</resources>
...
/应用程序/代码/本地/ Starmall/Salesorder/SQL/starmall_salesorder_setup/mysql4-install-0.1.0.php:
<?php echo 'Running installer: '.get_class($this)."\n <br /> \n";
die("Exit for now");
加载页面时,我看不到测试输出。
此模块的core_resource
中没有行。
没有错误,看看在/ var /日志
为什么这个安装程序无法运行?
我加入调试线app/code/core/Mage/Core/Model/Resource/Setup.php
它没有得到这里的这个功能_installResourceDb($newVersion)
protected function _installResourceDb($newVersion)
{
Mage::log("this line is not added to log file");
$oldVersion = $this->_modifyResourceDb(self::TYPE_DB_INSTALL, '', $newVersion);
$this->_modifyResourceDb(self::TYPE_DB_UPGRADE, $oldVersion, $newVersion);
$this->_getResource()->setDbVersion($this->_resourceName, $newVersion);
return $this;
}
1)验证配置缓存被禁用或至少它被清除。 2)发布模块的声明文件(位于* app/etc/modules/*中)。 – benmarks
我已经添加了我的'/ app/etc/modules/Starmall_Salesorder.xml'我禁用了缓存并删除了以确保/ var文件夹 – Guus