Magento 1.4 installer script is not firing
my config.xml is :
<?xml version="1.0"?>
<config>
<modules>
<Premium_PlatinumBlock>
<version>1.0.0</version>
</Premium_PlatinumBlock>
</modules>
<global>
<helpers>
<premium_platinumblock>
<class>Premium_PlatinumBlock_Helper</class>
</premium_platinumblock>
</helpers>
<resources>
<premium_platinumblock_setup>
<setup>
<module>Premium_PlatinumBlock</module>
</setup>
</premium_platinumblock_setup>
</resources>
</global>
</config>
my installer script -
Premium/PlatinumBlock/sql/premium_platinumblock_setup/mysql4-install-1.0.0.php
$installer = $this;
$installer->startSetup();
$storeId = 2;
$type = 'block';
$title = 'Block123';
$identifier = 'my_block';
$content = <<<'EOD here'
EOD;
Mage::getModel('cms/'.$type)
->setStoreId($storeId)
->load($identifier)
->setTitle($title)
->setIdentifier($identifier)
->setStores(array($storeId))
->setIsActive(true)
->setContent($content)
->save();
$installer->endSetup();
magento-1.4 install-script
add a comment |
my config.xml is :
<?xml version="1.0"?>
<config>
<modules>
<Premium_PlatinumBlock>
<version>1.0.0</version>
</Premium_PlatinumBlock>
</modules>
<global>
<helpers>
<premium_platinumblock>
<class>Premium_PlatinumBlock_Helper</class>
</premium_platinumblock>
</helpers>
<resources>
<premium_platinumblock_setup>
<setup>
<module>Premium_PlatinumBlock</module>
</setup>
</premium_platinumblock_setup>
</resources>
</global>
</config>
my installer script -
Premium/PlatinumBlock/sql/premium_platinumblock_setup/mysql4-install-1.0.0.php
$installer = $this;
$installer->startSetup();
$storeId = 2;
$type = 'block';
$title = 'Block123';
$identifier = 'my_block';
$content = <<<'EOD here'
EOD;
Mage::getModel('cms/'.$type)
->setStoreId($storeId)
->load($identifier)
->setTitle($title)
->setIdentifier($identifier)
->setStores(array($storeId))
->setIsActive(true)
->setContent($content)
->save();
$installer->endSetup();
magento-1.4 install-script
1
try replacing <module>premium_PlatinumBlock</module> by <module>Premium_PlatinumBlock</module>
– magento noob
Mar 24 '17 at 11:15
this is just a typing mistake here. Its not working out. is it different for magento 1.4
– Priyanka Saini
Mar 24 '17 at 11:57
Just to be sure, there is a fileapp/etc/modules/Premium_PlatinumBlock.xml
where it says that the extension is active? Also check thecore_resource
table in the database and check if your extension is listed there and check the version of the extension. If that's already 1.0.0 or higher, your installer will not be executed.
– Arjen Miedema
Mar 31 '17 at 6:15
add a comment |
my config.xml is :
<?xml version="1.0"?>
<config>
<modules>
<Premium_PlatinumBlock>
<version>1.0.0</version>
</Premium_PlatinumBlock>
</modules>
<global>
<helpers>
<premium_platinumblock>
<class>Premium_PlatinumBlock_Helper</class>
</premium_platinumblock>
</helpers>
<resources>
<premium_platinumblock_setup>
<setup>
<module>Premium_PlatinumBlock</module>
</setup>
</premium_platinumblock_setup>
</resources>
</global>
</config>
my installer script -
Premium/PlatinumBlock/sql/premium_platinumblock_setup/mysql4-install-1.0.0.php
$installer = $this;
$installer->startSetup();
$storeId = 2;
$type = 'block';
$title = 'Block123';
$identifier = 'my_block';
$content = <<<'EOD here'
EOD;
Mage::getModel('cms/'.$type)
->setStoreId($storeId)
->load($identifier)
->setTitle($title)
->setIdentifier($identifier)
->setStores(array($storeId))
->setIsActive(true)
->setContent($content)
->save();
$installer->endSetup();
magento-1.4 install-script
my config.xml is :
<?xml version="1.0"?>
<config>
<modules>
<Premium_PlatinumBlock>
<version>1.0.0</version>
</Premium_PlatinumBlock>
</modules>
<global>
<helpers>
<premium_platinumblock>
<class>Premium_PlatinumBlock_Helper</class>
</premium_platinumblock>
</helpers>
<resources>
<premium_platinumblock_setup>
<setup>
<module>Premium_PlatinumBlock</module>
</setup>
</premium_platinumblock_setup>
</resources>
</global>
</config>
my installer script -
Premium/PlatinumBlock/sql/premium_platinumblock_setup/mysql4-install-1.0.0.php
$installer = $this;
$installer->startSetup();
$storeId = 2;
$type = 'block';
$title = 'Block123';
$identifier = 'my_block';
$content = <<<'EOD here'
EOD;
Mage::getModel('cms/'.$type)
->setStoreId($storeId)
->load($identifier)
->setTitle($title)
->setIdentifier($identifier)
->setStores(array($storeId))
->setIsActive(true)
->setContent($content)
->save();
$installer->endSetup();
magento-1.4 install-script
magento-1.4 install-script
edited Mar 24 '17 at 11:56
Priyanka Saini
asked Mar 24 '17 at 11:05
Priyanka SainiPriyanka Saini
715
715
1
try replacing <module>premium_PlatinumBlock</module> by <module>Premium_PlatinumBlock</module>
– magento noob
Mar 24 '17 at 11:15
this is just a typing mistake here. Its not working out. is it different for magento 1.4
– Priyanka Saini
Mar 24 '17 at 11:57
Just to be sure, there is a fileapp/etc/modules/Premium_PlatinumBlock.xml
where it says that the extension is active? Also check thecore_resource
table in the database and check if your extension is listed there and check the version of the extension. If that's already 1.0.0 or higher, your installer will not be executed.
– Arjen Miedema
Mar 31 '17 at 6:15
add a comment |
1
try replacing <module>premium_PlatinumBlock</module> by <module>Premium_PlatinumBlock</module>
– magento noob
Mar 24 '17 at 11:15
this is just a typing mistake here. Its not working out. is it different for magento 1.4
– Priyanka Saini
Mar 24 '17 at 11:57
Just to be sure, there is a fileapp/etc/modules/Premium_PlatinumBlock.xml
where it says that the extension is active? Also check thecore_resource
table in the database and check if your extension is listed there and check the version of the extension. If that's already 1.0.0 or higher, your installer will not be executed.
– Arjen Miedema
Mar 31 '17 at 6:15
1
1
try replacing <module>premium_PlatinumBlock</module> by <module>Premium_PlatinumBlock</module>
– magento noob
Mar 24 '17 at 11:15
try replacing <module>premium_PlatinumBlock</module> by <module>Premium_PlatinumBlock</module>
– magento noob
Mar 24 '17 at 11:15
this is just a typing mistake here. Its not working out. is it different for magento 1.4
– Priyanka Saini
Mar 24 '17 at 11:57
this is just a typing mistake here. Its not working out. is it different for magento 1.4
– Priyanka Saini
Mar 24 '17 at 11:57
Just to be sure, there is a file
app/etc/modules/Premium_PlatinumBlock.xml
where it says that the extension is active? Also check the core_resource
table in the database and check if your extension is listed there and check the version of the extension. If that's already 1.0.0 or higher, your installer will not be executed.– Arjen Miedema
Mar 31 '17 at 6:15
Just to be sure, there is a file
app/etc/modules/Premium_PlatinumBlock.xml
where it says that the extension is active? Also check the core_resource
table in the database and check if your extension is listed there and check the version of the extension. If that's already 1.0.0 or higher, your installer will not be executed.– Arjen Miedema
Mar 31 '17 at 6:15
add a comment |
1 Answer
1
active
oldest
votes
Here I was missing the class in setup, that's why it was not running. I fixed it like
<resources>
<platinumblock_setup >
<setup>
<module>PlatinumBlock</module>
<class>Mage_Core_Model_Resource_Setup</class>
</setup>
</platinumblock_setup >
</resources>
</global>
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f166042%2fmagento-1-4-installer-script-is-not-firing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here I was missing the class in setup, that's why it was not running. I fixed it like
<resources>
<platinumblock_setup >
<setup>
<module>PlatinumBlock</module>
<class>Mage_Core_Model_Resource_Setup</class>
</setup>
</platinumblock_setup >
</resources>
</global>
add a comment |
Here I was missing the class in setup, that's why it was not running. I fixed it like
<resources>
<platinumblock_setup >
<setup>
<module>PlatinumBlock</module>
<class>Mage_Core_Model_Resource_Setup</class>
</setup>
</platinumblock_setup >
</resources>
</global>
add a comment |
Here I was missing the class in setup, that's why it was not running. I fixed it like
<resources>
<platinumblock_setup >
<setup>
<module>PlatinumBlock</module>
<class>Mage_Core_Model_Resource_Setup</class>
</setup>
</platinumblock_setup >
</resources>
</global>
Here I was missing the class in setup, that's why it was not running. I fixed it like
<resources>
<platinumblock_setup >
<setup>
<module>PlatinumBlock</module>
<class>Mage_Core_Model_Resource_Setup</class>
</setup>
</platinumblock_setup >
</resources>
</global>
edited 6 mins ago
answered May 30 '17 at 10:54
Priyanka SainiPriyanka Saini
715
715
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f166042%2fmagento-1-4-installer-script-is-not-firing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
try replacing <module>premium_PlatinumBlock</module> by <module>Premium_PlatinumBlock</module>
– magento noob
Mar 24 '17 at 11:15
this is just a typing mistake here. Its not working out. is it different for magento 1.4
– Priyanka Saini
Mar 24 '17 at 11:57
Just to be sure, there is a file
app/etc/modules/Premium_PlatinumBlock.xml
where it says that the extension is active? Also check thecore_resource
table in the database and check if your extension is listed there and check the version of the extension. If that's already 1.0.0 or higher, your installer will not be executed.– Arjen Miedema
Mar 31 '17 at 6:15