Open Jeeva-Rathinam opened 5 years ago
Hi @Jeeva-Rathinam ! Could you also provide please your xml config for rewrite?
@northdakota My : app\etc\modules\Eltrino_DiamanteDesk.xml
<?xml version="1.0"?>
<config>
<modules>
<Eltrino_DiamanteDesk>
<active>true</active>
<codePool>community</codePool>
</Eltrino_DiamanteDesk>
</modules>
</config>
How can i solve the issue?
As i understand you have created a new block file Eltrino/Diamantedesk/Block/Adminhtml/Sales/Order/Edit/Tab/Tickets.php
for make it works you also should add your rewrite configuration to file app/code/community/Eltrino/DiamanteDesk/etc/config.xml where should describe your rewrite configuration. For example:
<blocks>
<catalog><!-- alias of the block group you are rewriting -->
<rewrite><!-- reserved tag: specify that you are rewriting something -->
<class_name_here>YourNamespace_YourModule_Block_Your_New_Class_Here</class_name_here> <!-- tag: the rest of the alias of the class you are rewriting. value: the name of your class that rewrites the core class -->
</rewrite>
</catalog>
</blocks>
So i need make sure that this part of your code is correct.
Yes, app/code/community/Eltrino/DiamanteDesk/etc/config.xml (By Default) Here what i need to change...
<?xml version="1.0"?>
<config>
<modules>
<Eltrino_DiamanteDesk>
<version>1.0.2</version>
</Eltrino_DiamanteDesk>
</modules>
<global>
<models>
<eltrino_diamantedesk>
<class>Eltrino_DiamanteDesk_Model</class>
<resourceModel>eltrino_diamantedesk_resource</resourceModel>
</eltrino_diamantedesk>
<eltrino_diamantedesk_resource>
<class>Eltrino_DiamanteDesk_Model_Resource</class>
<entities>
<queue>
<table>diamantedesk_tickets_queue</table>
</queue>
<order_relation>
<table>diamantedesk_order_relation</table>
</order_relation>
<customer_relation>
<table>diamantedesk_customer_relation</table>
</customer_relation>
</entities>
</eltrino_diamantedesk_resource>
</models>
<resources>
<eltrino_diamantedesk_setup>
<setup>
<module>Eltrino_DiamanteDesk</module>
</setup>
</eltrino_diamantedesk_setup>
</resources>
<blocks>
<eltrino_diamantedesk>
<class>Eltrino_DiamanteDesk_Block</class>
</eltrino_diamantedesk>
<!--<adminhtml>-->
<!--<rewrite>-->
<!--<sales_order_view_info>Eltrino_DiamanteDesk_Block_Adminhtml_Sales_Order_View_Info</sales_order_view_info>-->
<!--</rewrite>-->
<!--</adminhtml>-->
</blocks>
<helpers>
<eltrino_diamantedesk>
<class>Eltrino_DiamanteDesk_Helper</class>
</eltrino_diamantedesk>
</helpers>
</global>
<crontab>
<jobs>
<diamantedesk_export_tickets>
<schedule>
<cron_expr>0/5 * * * *</cron_expr>
</schedule>
<run>
<model>eltrino_diamantedesk/queue::processQueue</model>
</run>
</diamantedesk_export_tickets>
<diamantedesk_check_queue>
<schedule>
<cron_expr>0 * * * *</cron_expr>
</schedule>
<run>
<model>eltrino_diamantedesk/observer::checkQueue</model>
</run>
</diamantedesk_check_queue>
</jobs>
</crontab>
<frontend>
<routers>
<diamantedesk>
<use>standard</use>
<args>
<module>Eltrino_DiamanteDesk</module>
<frontName>diamantedesk</frontName>
</args>
</diamantedesk>
</routers>
<layout>
<updates>
<eltrino_diamantedesk>
<file>eltrino/diamantedesk.xml</file>
</eltrino_diamantedesk>
</updates>
</layout>
</frontend>
<adminhtml>
<layout>
<updates>
<eltrino_diamantedesk>
<file>eltrino/diamantedesk.xml</file>
</eltrino_diamantedesk>
</updates>
</layout>
</adminhtml>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<Eltrino_DiamanteDesk before="Mage_Adminhtml">Eltrino_DiamanteDesk_Adminhtml</Eltrino_DiamanteDesk>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</config>
My Magento ver 1.9.2.3 after installed both frontend and backend DiamanteDesk page return a blank page. How can i solve the issue?
Log Error :
2018-11-27T08:03:04+00:00 ERR (3): exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Eltrino_Diamantedesk_Block_Adminhtml_Sales_Order_Edit_Tab_Tickets' in /home/abc/public_html/app/Mage.php:595
My Block : Diamantedesk_Block_Adminhtml_Sales_Order_Edit_Tab_Tickets :