I am getting error of Invalid block on Live site but same code is working in Local system. Can anyone help me in getting out from this ASAP.

Below is my code:


<?xml version="1.0"?>



class Wildnet_Customsalesgrid_Block_Adminhtml_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid {

    protected function _prepareColumns() {

        $this->addColumnAfter('customer_email', array(
                'header' => Mage::helper('customer')->__('Customer Email'),
                'index' => 'email',
                'type' => 'text',
        ), 'shipping_name');

        return parent::_prepareColumns();




class Wildnet_Customsalesgrid_Model_Observer

   public function salesOrderGridCollectionLoadBefore(Varien_Event_Observer $observer) {

       /** @var Mage_Sales_Model_Resource_Order_Grid_Collection $collection */
       $collection = $observer->getEvent()->getOrderGridCollection();

           array('customer_table' => $collection->getTable('customer/entity')),
           'main_table.customer_id = customer_table.entity_id',

This code is working fine in local without any issue but in Live it is showing Invalid block error.

  • i hope definitely some case sensitive issue is there – Mujahidh May 24 '17 at 6:00
  • but this code is working in local system, i am uploading same code on live but it's not working. Suggest please ? – BornCoder May 24 '17 at 6:25

Before installing any new extension on Live, Disable the compilation from System -> Tools -> Compilation ->Disable.

Disable cache also and install new extension after installation the run the compilation and enable the cache.

Note: After installation run compilation don't enable it. Compilation will automatically enable otherwise you will get Fatal error and site will be down.

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.