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>
  • 3
    provide complete this module code – Murtuza Zabuawala Apr 4 '17 at 7:41
  • means xml code? @MurtuzaZabuawala – Nadh Apr 4 '17 at 7:43
  • yes xml and php code as well – Murtuza Zabuawala Apr 4 '17 at 7:48
  • updated xml file – Nadh Apr 4 '17 at 8:00
1

please change as follow

    <log_adminhtml>
        <class>Test_log_Block_Adminhtml</class>
    </log_adminhtml>
  • error gone but data not displaying – Nadh Apr 4 '17 at 8:03
  • That's why I am asking please provide me your full php code So Ican check – Murtuza Zabuawala Apr 4 '17 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.