MAGENTO : Wrong attribute group ID

166
August 06, 2018, at 5:50 PM

I need some help how can I solve this error, im installing the extension ERP.

 Error in file: "/app/code/community/MDN/Purchase/sql/Purchase_setup/mysql4-upgrade-0.1.0-0.2.0.php" - Wrong attribute group ID
 #1 /app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.1.0', '2.8.6.6')
 #2 /app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.1.0', '2.8.6.6')
 #3 /app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
 #4 /app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates()
 #5 /app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()
 #6 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
 #7 /index.php(86): Mage::run('', 'store')
 #8 {main}

this is the code for mysql4-upgrade-0.1.0-0.2.0.php

$installer=$this;
$installer->startSetup();
$installer->addAttribute('catalog_product','default_supply_delay', array(
                                'type'      => 'int',
                                'visible'   => false,
                                'label'     => 'Default Supply delay',
                                'required'  => false,
                                'default'   => '5',
                                'global'       => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
                                'note'      => 'In days'
                                ));
$installer->addAttribute('catalog_product','supply_date', array(
                                                        'type'      => 'datetime',
                                                        'visible'   => false,
                                                        'label'     => 'Supply date',
                                                        'required'  => false,
                                                        'global'       => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE
                                                        ));

$installer->endSetup();
Answer 1

try to add group key in array and provide name of the group of attribute

  'group' => 'Test Group',
Rent Charter Buses Company
READ ALSO
convert string to base convert 62

convert string to base convert 62

I was trying to make a URL shortenerWhere the give url needs to convert to base 62

202
prepare SQLite insert statement inside php for loop

prepare SQLite insert statement inside php for loop

I want to prepare an SQL insert statement inside PHP for loop, my statement is something like this

174
How can I adapt the Stripe.js payment UI?

How can I adapt the Stripe.js payment UI?

I am using the Stripejs payment form for my PHP website

179
How to decode utf8 data into simple string in php

How to decode utf8 data into simple string in php

I am facing issue while decoding a utf8 string into simple string which is i am getting from androidString contains both words and emoji's

228