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

extension don't work - get white screen in BE by entering the config #98

Closed reproplan closed 10 years ago

reproplan commented 10 years ago

After instlalling everything looks fine. indexing the GroupsCatalog Produkte and GroupsCatalog Kategorien dont work. when i try to access system->configuration->Netzarbeiter Extensions->GroupsCatalog 2 i get a white browser window. maybe you have an solution for this problem kind regards matthias hennemann reproplan frankfurt

Vinai commented 10 years ago

Please turn on the Magento Developer Mode and PHP Error Reporting to see Error Messages instead of a white screen. Then report back here please with the resulting stack trace.

reproplan commented 10 years ago

hi, thank you for the quick response!!! here is the resulting stack trace

Warning: include(/Applications/MAMP/htdocs/reproplan-shop/app/code/community/Netzarbeiter/GroupsCatalog2/Block/Adminhtml/System/Config/Renderer/Customergroup.php) [function.include]: failed to open stream: No such file or directory  in /Applications/MAMP/htdocs/reproplan-shop/lib/Varien/Autoload.php on line 93

#0 /Applications/MAMP/htdocs/reproplan-shop/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include(/Applic...', '/Applications/M...', 93, Array)
#1 /Applications/MAMP/htdocs/reproplan-shop/lib/Varien/Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Netzarbeiter_Gr...')
#3 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Core/Model/Layout.php(590): spl_autoload_call('Netzarbeiter_Gr...')
#4 /Applications/MAMP/htdocs/reproplan-shop/app/Mage.php(533): Mage_Core_Model_Layout->getBlockSingleton('netzarbeiter_gr...')
#5 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(310): Mage::getBlockSingleton('netzarbeiter_gr...')
#6 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(229): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#7 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(164): Mage_Adminhtml_Block_System_Config_Form->_initGroup(Object(Varien_Data_Form), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#8 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#9 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(107): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#10 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#11 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#12 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /Applications/MAMP/htdocs/reproplan-shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /Applications/MAMP/htdocs/reproplan-shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /Applications/MAMP/htdocs/reproplan-shop/index.php(87): Mage::run('', 'store')
#16 {main}
Vinai commented 10 years ago

Hi,

please check the file app/code/community/Netzarbeiter/GroupsCatalog2/Block/Adminhtml/System/Config/Renderer/Customergroup.php exists. If not, you probably where hit by a bug of the Magento installer. For some reason I haven't been able to determine some useres suffer from some files being created as folders. To fix it, please download the latest version of the extension from github and copy over all files manually. Then things should work. Please post an update here if the answer solved the issue for you. Thanks.

reproplan commented 10 years ago

Hi,

Thank you this helps but the extension is still not working.

When i try to reindex the GroupsCatalog Produkte and GroupsCatalog Kategorien the following appears:

Fatal error: Call to a member function createIndexTable() on a non-object in /Applications/MAMP/htdocs/reproplan-shop/app/code/community/Netzarbeiter/GroupsCatalog2/Model/Resource/Indexer/Abstract.php on line 187

Please help me i can't sleep tonight ;-)

Kind regards,

Matthias Henkelmann

P.S.: do you speek german?

reproplan commented 10 years ago

Hi, When i switch from "Produkte standardmäßig anzeigen“ to „Produkte standardmäßig verbergen“ this error appears:

Fatal error: Call to a member function changeStatus() on a non-object in /Applications/MAMP/htdocs/reproplan-shop/app/code/community/Netzarbeiter/GroupsCatalog2/Model/System/Config/Backend/Reindex/Abstract.php on line 44

Reindexing still not work.

I would be very thankful for a quick answer.

Lots of thanx,

Matthias

Vinai commented 10 years ago

It seems the setup scripts where not executed correctly. Please run the following SQL command, then clear the config cache and reload any page (front end or backend) to rerun the setup scripts:

DELETE FROM core_resource WHERE code = 'netzarbeiter_groupscatalog2_setup';

If you specified a database table prefix during installation of Magento you will have to adjust the table name accordingly.

reproplan commented 10 years ago

Hallo Vinai,

vielen Dank für deine schnelle Hilfe gestern.

Klasse, die Extension läuft jetzt!!!

Ich bin Newbie in Sachen Magento und muss Dich leider noch einmal mit ein paar Fragen nerven.

Kannst du mir bitte die syntax für den "redirekt to target route" für die Startseite erklären wenn ich die URL eingebe läuft sich Magento tot öffnet aber keine Seite.

Ich nutze in unserer Seite das Megamenu, scheinbar funktioniert die Extension damit nicht. Kategorien werden nicht ausgeblendet.

Gibt es eine Möglichkeit das hin zu bekommen?

Ich bedanke mich nochmals herzlich für deine Hilfe!!!!

Freundliche Grüße aus Frankfurt,

Matthias

Vinai commented 10 years ago

I'm currently traveling so it may be a few days until I can answer properly.

Also, please stick to English as a language here, as more others can profit from the issue thread that way.

Please close this issue if it is solved and open new ones for other issues or questions. Thanks!

Vinai

On 22.08.2014, at 09:31, reproplan notifications@github.com wrote:

Hallo Vinai,

vielen Dank für deine schnelle Hilfe gestern.

Klasse, die Extension läuft jetzt!!!

Ich bin Newbie in Sachen Magento und muss Dich leider noch einmal mit ein paar Fragen nerfen.

Kannst du mir bitte die syntax für den "redirekt to target route" für die Startseite erklären wenn ich die URL eingebe läuft sich Magento tot öffnet aber keine Seite.

Ich nutze in unserer Seite das Megamenu, scheinbar funktioniert die Extension damit nicht. Kategorien werden nicht ausgeblendet.

Gibt es eine Möglichkeit das hin zu bekommen?

Ich bedanke mich nochmals herzlich für deine Hilfe!!!!

Freundliche Grüße aus Frankfurt,

Matthias

— Reply to this email directly or view it on GitHub https://github.com/Vinai/groupscatalog2/issues/98#issuecomment-53031357.

reproplan commented 10 years ago

Sorry, for the language mistake!!! Thank you for your help!!!