Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

06.14100 problem with GiftMessage installation
 
maciek79
Jr. Member
 
Total Posts:  15
Joined:  2007-11-20
 

Hello,

I have just tried to ugrade to newest version 0.6.14100 (light) but such error occured:
I have several products with custom attribute set defined.
Deleting Core/GiftMessage directory makes store working (except orders admin area)

Full error message: http://ibex.pl/magento.html

Mage_Eav_Exception Object
(
    
[_messages:protected] => Array
        (
        )

    
[message:protected] => Wrong attribute group ID
    [string
:private] => 
    
[code:protected] => 0
    [file
:protected] => /home/users/ibex_pl/public_html/sklep-test/app/Mage.php
    [line
:protected] => 334
    [trace
:private] => Array
        (
            
[0] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] 
=> 251
                    [function] 
=> exception
                    [class] 
=> Mage
                    [type] 
=> ::
                    
[args] => Array
                        (
                            
[0] => Mage_Eav
                            [1] 
=> Wrong attribute group ID
                        
)

                )

            
[1] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] 
=> 389
                    [function] 
=> getAttributeGroupId
                    [class] 
=> Mage_Eav_Model_Entity_Setup
                    [type] 
=> ->
                    
[args] => Array
                        (
                            
[0] => 10
                            [1] 
=> 36
                            [2] 
=> General
                        
)

                )

            
[2] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] 
=> 320
                    [function] 
=> addAttributeToSet
                    [class] 
=> Mage_Eav_Model_Entity_Setup
                    [type] 
=> ->
                    
[args] => Array
                        (
                            
[0] => 10
                            [1] 
=> 36
                            [2] 
=> General
                            [3] 
=> gift_message_aviable
                            [4] 
=> 
                        )

                )

            
[3] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.1.0-0.1.1.php
                    [line] 
=> 71
                    [function] 
=> addAttribute
                    [class] 
=> Mage_Eav_Model_Entity_Setup
                    [type] 
=> ->
                    
[args] => Array
                        (
                            
[0] => catalog_product
                            [1] 
=> gift_message_aviable
                            [2] 
=> Array
                                (
                                    
[type] => int
                                    [backend] 
=> 
                                    
[frontend] => 
                                    
[label] => Allow Gift Message
                                    [input] 
=> boolean
                                    [class] 
=> 
                                    
[source] => 
                                    
[global] => 1
                                    [visible] 
=> 1
                                    [required] 
=> 
                                    
[user_defined] => 
                                    
[default] => 1
                                    [visible_on_front] 
=> 
                                )

                        )

                )

            
[4] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] 
=> 235
                    [args] 
=> Array
                        (
                            
[0] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.1.0-0.1.1.php
                        
)

                    
[function] => include
                )

            
[5] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] 
=> 145
                    [function] 
=> _modifyResourceDb
                    [class] 
=> Mage_Core_Model_Resource_Setup
                    [type] 
=> ->
                    
[args] => Array
                        (
                            
[0] => upgrade
                            [1] 
=> 0.1.0
                            [2] 
=> 0.1.3
                        
)

                )

            
[6] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] 
=> 111
                    [function] 
=> _upgradeResourceDb
                    [class] 
=> Mage_Core_Model_Resource_Setup
                    [type] 
=> ->
                    
[args] => Array
                        (
                            
[0] => 0.1.0
                            [1] 
=> 0.1.3
                        
)

                )

            
[7] => Array
                (
                    
[file] => /home/users/ibex_pl/public_html/sklep-test/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] 
=> 94
                    [function] 
=> applyUpdates
                    [class] 
=> Mage_Core_Model_Resource_Setup
                    [type] 
=> ->
                    
[args] => Array
                        (
                        )

                )
 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael_1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi maciek79,

Could you please post here what does the following query return:

SELECT FROM `eav_attribute_groupWHERE `attribute_set_id` =36;

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
maciek79
Jr. Member
 
Total Posts:  15
Joined:  2007-11-20
 

Hi!,

Query results in attachment,
Attribute sets names are in Polish.

“Ogólne” means Common - there is a special polish character.

Maciek

ps.
as a workaround I renamed *.php files in code/core/Mage/GiftMessage/sql/giftmessage_setup directory to *.abc

Image Attachments
eav.gif
 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael_1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Ok, in order to upgrade to the latest version you can just temporary rename that group as it was by default - ‘General’, put the GiftMessage module files in their places, upgrade and then change that group name back to “Ogólne”.

The problem is that new attributes are added to the attribute group “General” by its name. We’ll fix this in the next releases.

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
maciek79
Jr. Member
 
Total Posts:  15
Joined:  2007-11-20
 

Thanks.
I hope you will publish preview-releases more frequently so we all could learn on-the-fly how Magento works smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
w4yward
Member
 
Total Posts:  35
Joined:  2008-10-08
 

Thank you, thank you, thank you.  I was having a catalog wrong attribute ID error, that’s been crashing my site for the 4 days.  replacing *.abc for *.php cleared up the issue. It didn’t solve it, but at least my site works now.

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top