0

I got error in custom module. I am getting error like this:

Fatal error: Class 'Test_log_Adminhtml_Block_Log' not found in app/code/core/Mage/Core/Model/Layout.php on line 491

How to fix this? xml file

        <blocks>
        <log>
            <class>Test_log_Block</class>
        </wsalogger>
       <log_adminhtml>
            <class>Test_log_Adminhtml_Block</class>
        </log_adminhtml>
    </blocks>
4
  • 3
    provide complete this module code Apr 4, 2017 at 7:41
  • means xml code? @MurtuzaZabuawala
    – User0434
    Apr 4, 2017 at 7:43
  • yes xml and php code as well Apr 4, 2017 at 7:48
  • updated xml file
    – User0434
    Apr 4, 2017 at 8:00

1 Answer 1

1

please change as follow

    <log_adminhtml>
        <class>Test_log_Block_Adminhtml</class>
    </log_adminhtml>
2
  • error gone but data not displaying
    – User0434
    Apr 4, 2017 at 8:03
  • That's why I am asking please provide me your full php code So Ican check Apr 4, 2017 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.