0

For some reason Magento stopped working after i tried installing a attribute. It doesn't show up in var/log, setting init_set to 1 simply gives me a blank page with no error and changing htacess memory limit doesn't work. Disabling the module gives me another error (Invalid backend model specified: 1). What is causing all this?

Config file:

<timer_setup>
            <setup>
                <module>Apptha_Timer</module>
                <class>Apptha_Timer_Model_Resource_Eav_Mysql4_Setup</class>
            </setup>

            <connection>
                <use>core_setup</use>
            </connection>
        </timer_setup>

mysql4-upgrade-0.1.4-1.0.0.php:

$installer = $this;

$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
$installer->startSetup();

$setup->addAttribute('catalog_product', 'countdown', array(
    'group'                 => 'Prices',
    'label'                 => 'Ativar Cronometro Regressivo',
    'type'                  => 'int',
    'input'                 => 'boolean',
    'default_value_yesno'   => 1,
    'class'                 => '',
    'backend'               => '',
    'frontend'              => '',
    'global'                => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
    'visible'               => true,
    'required'              => false,
    'user_defined'          => true,
    'searchable'            => false,
    'filterable'            => false,
    'comparable'            => false,
    'visible_on_front'              => true,
    'visible_in_advanced_search'    => false,
    'unique'                => false
));
$installer->endSetup();

Setup.php:

class Apptha_Timer_Model_Resource_Eav_Mysql4_Setup extends Mage_Core_Model_Resource_Setup
{

}
0

Check the web server error log. There are certain scenarios where this is the only place that useful error messages are found.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.