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

Mage_Eav_Model_Entity_Collection_Abstract, instance of Mage_Catalog_Model_Resource_Category_Flat_Collection #13

Closed fplantinet closed 12 years ago

fplantinet commented 12 years ago

Hello,

When i try to activate your module in Magento 1.6.2.0, front crash with no response.

In var/system.log :

2012-09-26T11:06:03+00:00 ERR (3): Recoverable Error: Argument 1 passed to Netzarbeiter_GroupsCatalog2_Model_Resource_Filter::addGroupsCatalogFilterToCollection() must be an instance of Mage_Eav_Model_Entity_Collection_Abstract, instance of Mage_Catalog_Model_Resource_Category_Flat_Collection given, called in /app/code/community/Netzarbeiter/GroupsCatalog2/Model/Observer.php on line 377 and defined in /app/code/community/Netzarbeiter/GroupsCatalog2/Model/Resource/Filter.php on line 59

And in database, we have many request : SELECT main_table.entity_id, main_table.level, main_table.path, main_table.position, main_table.is_active, main_table.is_anchor, main_table.name, url_rewrite.request_path FROM catalog_category_flat_store_1 AS main_table LEFT JOIN core_url_rewrite AS url_rewrite ON url_rewrite.category_id=main_table.entity_id AND url_rewrite.is_system=1 AND url_rewrite.product_id IS NULL AND url_rewrite.store_id='1' AND url_rewrite.id_path LIKE 'category/%' INNER JOIN groupscatalog_category_idx ON main_table.entity_id=groupscatalog_category_idx.entity_id AND groupscatalog_category_idx.group_id=0 AND groupscatalog_category_idx.store_id=1 INNER JOIN groupscatalog_category_idx AS groupscatalog_category_idx_2 ON main_table.entity_id=groupscatalog_category_idx.entity_id AND groupscatalog_category_idx.group_id=0 AND groupscatalog_category_idx.store_id=1 WHERE (path LIKE '1/2/3/%') AND (main_table.store_id = '1') AND (is_active = '1') AND (include_in_menu = '1') ORDER BY name ASC

I think it's cause by many module installed on this Magento.

Please contact me to solve this problems.

Thanx Vinaï.

Vinai commented 12 years ago

Hi,

how can you produce this behaviour? Obviously the flat catalog needs to be enabled, but what page are you visiting? Admin area or frontend? Logged in or guest? Products in the cart or not? Can you please give me any additional information so I can try and reproduce the problem so I can fix it.

Thanks, Vinai

2012/9/26 fplantinet notifications@github.com

Hello,

When i try to activate your module in Magento 1.6.2.0, front crash with no response.

In var/system.log :

2012-09-26T11:06:03+00:00 ERR (3): Recoverable Error: Argument 1 passed to Netzarbeiter_GroupsCatalog2_Model_Resource_Filter::addGroupsCatalogFilterToCollection() must be an instance of Mage_Eav_Model_Entity_Collection_Abstract, instance of Mage_Catalog_Model_Resource_Category_Flat_Collection given, called in /app/code/community/Netzarbeiter/GroupsCatalog2/Model/Observer.php on line 377 and defined in /app/code/community/Netzarbeiter/GroupsCatalog2/Model/Resource/Filter.php on line 59

And in database, we have many request : SELECT main_table.entity_id, main_table.level, main_table.path, main_table .position, main_table.is_active, main_table.is_anchor, main_table.name, url_rewrite.request_path FROM catalog_category_flat_store_1 AS main_table LEFT JOIN core_url_rewrite AS url_rewrite ON url_rewrite.category_id=main_table.entity_id AND url_rewrite.is_system=1 AND url_rewrite.product_id IS NULL AND url_rewrite.store_id='1' AND url_rewrite.id_path LIKE 'category/%' INNER JOIN groupscatalog_category_idx ON main_table.entity_id=groupscatalog_category_idx.entity_id AND groupscatalog_category_idx.group_id=0 AND groupscatalog_category_idx.store_id=1 INNER JOIN groupscatalog_category_idx AS groupscatalog_category_idx_2 ON main_table.entity_id=groupscatalog_category_idx.entity_id AND groupscatalog_category_idx.group_id=0 AND groupscatalog_category_idx.store_id=1 WHERE (path LIKE '1/2/3/%') AND (main_table.store_id = '1') AND (is_active = '1') AND (include_in_menu = '1') ORDER BY name ASC

I think it's cause by many module installed on this Magento.

Please contact me to solve this problems.

Thanx Vinaï.

— Reply to this email directly or view it on GitHubhttps://github.com/Vinai/groupscatalog2/issues/13.

fplantinet commented 12 years ago

Hello Vinai,

Can't you add me on Skype to reproduce bug in live ?

Cordialement,

Vinai commented 12 years ago

I'm sorry I don't have the time to do individual Skype debugging session. Please post a screenshot, a video, or a detailed description instead so others can benefit from the findings, too. Then I will be happy to fix it as soon as my time allows.

Vinai

2012/9/28 fplantinet notifications@github.com

Hello Vinai,

Can't you add me on Skype to reproduce bug in live ?

Skype account : fblutch Name : Plantinet Florent

Cordialement,

Florent PLANTINET Miura Conseil 3, rue d'Ainay 69380 Chazay d'Azergues 0.811.696.035 Miura Conseil http://www.miura-conseil.com/ | MAGexperthttp://www.magexpert.com/| Notre boutique http://www.miura-conseil.biz/ | Notre bloghttp://blog.miura-conseil.com/ [image: Certifité Développeur Magento]

2012/9/28 Vinai Kopp notifications@github.com

Hi,

how can you produce this behaviour? Obviously the flat catalog needs to be enabled, but what page are you visiting? Admin area or frontend? Logged in or guest? Products in the cart or not? Can you please give me any additional information so I can try and reproduce the problem so I can fix it.

Thanks, Vinai

2012/9/26 fplantinet notifications@github.com

Hello,

When i try to activate your module in Magento 1.6.2.0, front crash with no response.

In var/system.log :

2012-09-26T11:06:03+00:00 ERR (3): Recoverable Error: Argument 1 passed to

Netzarbeiter_GroupsCatalog2_Model_Resource_Filter::addGroupsCatalogFilterToCollection()

must be an instance of Mage_Eav_Model_Entity_Collection_Abstract, instance of Mage_Catalog_Model_Resource_Category_Flat_Collection given, called in /app/code/community/Netzarbeiter/GroupsCatalog2/Model/Observer.php on line 377 and defined in

/app/code/community/Netzarbeiter/GroupsCatalog2/Model/Resource/Filter.php

on line 59

And in database, we have many request : SELECT main_table.entity_id, main_table.level, main_table.path, main_table .position, main_table.is_active, main_table.is_anchor, main_table.name,

url_rewrite.request_path FROM catalog_category_flat_store_1 AS main_table LEFT JOIN core_url_rewrite AS url_rewrite ON url_rewrite.category_id=main_table.entity_id AND url_rewrite.is_system=1 AND url_rewrite.product_id IS NULL AND url_rewrite.store_id='1' AND url_rewrite.id_path LIKE 'category/%' INNER JOIN groupscatalog_category_idx ON main_table.entity_id=groupscatalog_category_idx.entity_id AND groupscatalog_category_idx.group_id=0 AND groupscatalog_category_idx.store_id=1 INNER JOIN groupscatalog_category_idx AS groupscatalog_category_idx_2 ON main_table.entity_id=groupscatalog_category_idx.entity_id AND groupscatalog_category_idx.group_id=0 AND groupscatalog_category_idx.store_id=1 WHERE (path LIKE '1/2/3/%') AND

(main_table.store_id = '1') AND (is_active = '1') AND (include_in_menu

'1') ORDER BY name ASC

I think it's cause by many module installed on this Magento.

Please contact me to solve this problems.

Thanx Vinaï.

— Reply to this email directly or view it on GitHub< https://github.com/Vinai/groupscatalog2/issues/13>.

— Reply to this email directly or view it on GitHub< https://github.com/Vinai/groupscatalog2/issues/13#issuecomment-8967968>.

Avertissement concernant la confidentialité. Ce message et les documents qui y sont joints sont strictement réservés à l'usage de l'individu ou de l'entreprise à qui ils sont adressés et contiennent de l'information privilégiée et confidentielle. Si le lecteur de ce message n'est pas le destinataire projeté, il est par les présentes avisé que tout dévoilement, distribution ou copie de cette communication est strictement prohibé. Si vous avez reçu cette communication par erreur, veuillez en aviser l'émetteur immédiatement par courrier électronique et détruire ce message et les documents joints. Avant d'imprimer, ayez une pensée pour notre environnement...

— Reply to this email directly or view it on GitHubhttps://github.com/Vinai/groupscatalog2/issues/13#issuecomment-8968084.

Vinai commented 12 years ago

I just pushed a new version 0.1.9 that hopefully should fix the issue, even though I couldn't reproduce it. Could you please test and let me know the results? Thank you!

fplantinet commented 12 years ago

Thanx, i test this afternoon and i come back to you.

Cordialement,

fplantinet commented 12 years ago

Hello,

Can you try your module with this module in attachment.

I think you use same function.

Cordialement,

Vinai commented 12 years ago

You cannot use email attachments with github issues (see https://github.com/Vinai/groupscatalog2/issues/13). I did not receive any code. Please choose another manner of communication. Also, please only forward code that is free open source.

Vinai commented 12 years ago

Since the class in question no longer expects an instance of Mage_Eav_Model_Entity_Collection_Abstract, the original exception should no longer occur. Also, this thread isn't related to Issue #12: Netzarbeiter_GroupsCatalog2 SEO Sitemap, so I'm closing this one now. If another error is happening please open a new issue with an according exception. Thank you.

fplantinet commented 11 years ago

Hello Vinai, Sorry for my late reply, but I have many projects currently underway. I tried the latest versions of the module and back to you if the problem persists.