Vinai / groupscatalog2

Magento extension to enable you to hide categories and products from customers depending on their customer group. This is a Magento 1.6 and newer compatible version of the Netzarbeiter Customer Groups Catalog extension.
139 stars 60 forks source link

"Can't retrieve entity config: catalog/catalog_product" in installer script install-0.2.9.php #75

Closed sandermangel closed 10 years ago

sandermangel commented 10 years ago

When installing the extension on a Magento 1.8.0.0 the installer throws an error when reaching installer script 0.2.9.

The error thrown:

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

    [message:protected] => Can't retrieve entity config: catalog/catalog_product
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => app/Mage.php
    [line:protected] => 594
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource.php
                    [line] => 272
                    [function] => throwException
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Can't retrieve entity config: catalog/catalog_product
                        )

                )

            [1] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource.php
                    [line] => 409
                    [function] => getTableName
                    [class] => Mage_Core_Model_Resource
                    [type] => ->
                    [args] => Array
                        (
                            [0] => catalog/catalog_product
                        )

                )

            [2] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 984
                    [function] => getFkName
                    [class] => Mage_Core_Model_Resource
                    [type] => ->
                    [args] => Array
                        (
                            [0] => groupscatalog_product_idx
                            [1] => catalog_entity_id
                            [2] => catalog/catalog_product
                            [3] => entity_id
                        )

                )

            [3] => Array
                (
                    [file] => app/code/community/Netzarbeiter/GroupsCatalog2/Model/Resource/Setup.php
                    [line] => 61
                    [function] => getFkName
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => groupscatalog_product_idx
                            [1] => catalog_entity_id
                            [2] => catalog/catalog_product
                            [3] => entity_id
                        )

                )

            [4] => Array
                (
                    [file] => app/code/community/Netzarbeiter/GroupsCatalog2/sql/netzarbeiter_groupscatalog2_setup/install-0.2.9.php
                    [line] => 36
                    [function] => createIndexTable
                    [class] => Netzarbeiter_GroupsCatalog2_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => catalog_product
                        )

                )

            [5] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => app/code/community/Netzarbeiter/GroupsCatalog2/sql/netzarbeiter_groupscatalog2_setup/install-0.2.9.php
                        )

                    [function] => include
                )

            [6] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 421
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => install
                            [1] => 
                            [2] => 0.3.3
                        )

                )

            [7] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 327
                    [function] => _installResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 0.3.3
                        )

                )

            [8] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 235
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [9] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/App.php
                    [line] => 417
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [10] => Array
                (
                    [file] => app/code/core/Mage/Core/Model/App.php
                    [line] => 343
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [11] => Array
                (
                    [file] => app/Mage.php
                    [line] => 683
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => con_nl_nl
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [12] => Array
                (
                    [file] => index.php
                    [line] => 85
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => con_nl_nl
                            [1] => store
                        )

                )

        )

    [previous:Exception:private] => 
)
Error in file: "app/code/community/Netzarbeiter/GroupsCatalog2/sql/netzarbeiter_groupscatalog2_setup/install-0.2.9.php" - Can't retrieve entity config: catalog/catalog_product

#0 app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '0.3.3')
#2 app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('0.3.3')
#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(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 app/Mage.php(683): Mage_Core_Model_App->run(Array)
#7 index.php(85): Mage::run('con_nl_nl', 'store')
#8 {main}
Vinai commented 10 years ago

Thank you for your report! I've just pushed a fix to the repository and I apologize for this stupid mistake. Will be uploading the fixed version to Magento Connect, too.