Giter VIP home page Giter VIP logo

Comments (6)

Vinai avatar Vinai commented on June 3, 2024

Hi,

thanks for the report. I'm afraid it doesn't sound familiar, but I'll look into it. Currently I'm refactoring the indexing process, which might have the side effect of resolving your issue along the way. Hope to have more news next week.

from groupscatalog2.

KoenWijnstok avatar KoenWijnstok commented on June 3, 2024

Hmmz, too bad.
Is there any way to troubleshoot your app? does it keep logfiles somewhere?

Is the app multi-store compatible at least? ;) (in other environments)

from groupscatalog2.

Vinai avatar Vinai commented on June 3, 2024

I do use logging a lot during development, but by default no logfiles are written. You would have to add calls where needed.

The module does generally work in a multi-store environment.

The first thing to check is if the settings are correctly stored in the index tables. Every visible entity should have a record in there. To apply the filters, the entity collection is simply joined against the index with an inner join. This is done by Netzarbeiter_GroupsCatalog2_Model_Resource_Filter.

So if there is a record in the index table, but the product still isn't visible, there must be a bug applying the filter.
If there is no record in the index table, then it is an indication for a bug in the indexer Netzarbeiter_GroupsCatalog2_Model_Resource_Indexer_Abstract

from groupscatalog2.

obfus-cutor avatar obfus-cutor commented on June 3, 2024

Hi,

I had a similar issue, especially when i've tried to search for the product and then open it's detail page. It forced me to login. This seemed to be an issue in app/code/community/Netzarbeiter/GroupsCatalog2/Model/Observer.php file in catalogCategoryLoadAfter function. For some reason this function is called twice, first time it has a correct Category entity passed to it, but on the second call Category entity was empty, thus $category->getData() returned an empty array, causing $this->_applyGroupsCatalogSettingsToEntity($category) to turn on $category->getData('forbidden_by_groupscatalog2'), which resulted in redirecting to customer login page. Not sure if this is a correct way to fix that, but wrapping everything with if (array_key_exists('entity_id', $category->getData())) { ... } helped.

Regards.

from groupscatalog2.

Vinai avatar Vinai commented on June 3, 2024

Thank you for your feedback. I'm still unable to reproduce the issue :(
If you find a way to do so in a reproducible manner, please let me know! I would very much appreciate it.

from groupscatalog2.

Vinai avatar Vinai commented on June 3, 2024

I've fixed a bug in today's release 0.3.3 which might have been the cause for the problem you experienced.
Please try this latest release and let me know if the issue persists or not.

from groupscatalog2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.