我的安裝程序腳本無法運行。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