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

Varien Class issue after install #10

Closed rebl00ded closed 12 years ago

rebl00ded commented 12 years ago

Vinai,

Really enjoy the concept of this plugin, however we seem to be having issues getting it to work properly. Here is the issue we're receiving when we try to go into to the catalog configuration area (It has been redacted to keep out clients site id private):

Fatal error: Class 'Mage_Groupscatalog_Block_Adminhtml_Catalog_Product_HelperCustomergroups' not found in /home/b**/publichtml/s*****.com/lib/Varien/Data/Form/Abstract.php on line 144

Do you have any ideas why this might be doing this? The Magento version we're using is 1.6.2; cache has been cleared and the indexes re-indexed. The following setting are setup in the plugin:

/----Begin----/ Enable Module: (bool) True

Product Mode: Show Products by Default Hide Products from: NOT LOGGED IN and General Sales

Category Mode: Show Products by Default Hide Categories from: NOT LOGGED IN and General Sales

How to handle guests accessing a hidden entity: Redirect Redirect route for guests: customer/account/login

How to handle logged in customers accessing a hidden entity: Redirect Redirect route for logged in customers: {{HOME_URL}}/custom/moreinfo.html (This is a CMS page)

Display a message when a hidden entity is accessed?: No Auto refresh CATEGORY cache

Automatically refresh the CATEGORY BLOCK HTML cache to update the category navigation when the visibility setting for a category is changed. : (bool) True (Yes) /----End----/

Any pointers on how to get this working would bee great! Thank you for your time.

-Josh

bastianccm commented 12 years ago

Hi,

seems as if the module config (config.xml inside the etc folder of the module) isn't loaded properly. Did you cleared the configuration cache? And is the file existing and readable for the webserver? You could clear the whole cache by deleting the var/cache/ folder.

These are my suggestions to get it working...

Vinai commented 12 years ago

From the error message it seems you are using the old version of the GroupsCatalog module, not GroupsCatalog2. Or did you upgrade and simple remove the files of the old extension?

jambi007 commented 12 years ago

Hi! I got the same problem. When I access my product catalog and go into a product, the error "/lib/Varien/Data/Form/Abstract.php on line 144" appears. Its really sad, because I managed to put up a multistore site and finaly this problem...uninstalling the groupscatalog2 (and adjusting the database) module didnt solve the problem...any given help would be appreciated..

-jambi

rebl00ded commented 12 years ago

Turned out to be because I had GroupCatalog (1) installed and did a simple Magento Connect uninstall. Had to reinstall it to make everything work right.

On a side-note: Vinai, is it easy to add a routine to erase (from the database) the product/catalog/group relationships? I would be interested in working on this with you.

Vinai commented 12 years ago

When the old GroupsCatalog and the new GroupsCatalog2 are both installed, you can use the migration wizard that is part of GroupsCatalog2 to migrate all settings and cleanly remove the old GroupsCatalog extension.

If you simply want to uninstall the old GroupsCatalog module without migrating any settings please refer to the UNINSTALL section of that modules readme file. In essence, you need to run the following SQL to fix things:

DELETE FROM `eav_attribute` WHERE attribute_code LIKE 'groupscatalog%';
DELETE FROM `core_resource` WHERE code = 'groupscatalog_setup';
Vinai commented 12 years ago

@rebl00ded You mean like a button to remove all existing GroupsCatalog settings from all categories and products?

Vinai commented 12 years ago

Closing since no feedback.