This question is asked for many times, but none of the solution worked for me. I tried referring core modules to correct the errors in my config files, but it helped me little. Following are the code snippets:


<?xml version="1.0"?>

    <!-- Global Configuration Starts -->

        <helpers> <!-- Helpers -->

        <blocks> <!-- Blocks -->













    <!-- !! Global Configuration -->

    <!-- Admin Configuration Starts -->
        <!-- Routing Configuration Starts -->
                        <originalpricing before="Mage_Adminhtml">Package_OriginalPricing_Adminhtml</originalpricing>
        <!-- !! Routing Configuration -->
    <!-- !! Admin Configuration -->

    <!-- Adminhtml Configuration Starts -->
        <!-- Layouts Configuration Starts -->
        <!-- !! Layouts Configuration -->

        <!-- Menu Configuration Starts -->
                    <!-- Parent menu -->
                    <originalpricing module="originalpricing" translate="title">

                        <title>Original Price CSV</title>

                        <children> <!-- Child menu -->
                            <index translate="title"> <!-- Assign menu -->
                                <title>Upload CSV</title>

                            <removeproducts translate="title"> <!-- Remove menu -->
                                <title>Remove CSV</title>


        <!-- !! Menu Configuration -->

    <!-- !! Adminhtml Configuration -->



<?xml version='1.0'?>

<layout version="0.1.0">

    <adminhtml_originalpricing_index> <!-- bulkpricing index action -->
        <reference name="content">
            <block type="originalpricing/adminhtml_originalpricing_assign" name="orig_assign_products" />



class Package_OriginalPricing_Adminhtml_OriginalpricingController extends Mage_Adminhtml_Controller_Action

    public function indexAction ()
        $this->_title($this->__('Catalog'))->_title($this->__('Upload CSV'));


Block Assign

class Package_OriginalPricing_Block_Adminhtml_Originalpricing_Assign extends Mage_Adminhtml_Block_Widget_Form_Container
    public function __construct()

        $helper = Mage::helper('originalpricing');

        $this->_objectId = 'id';
        $this->_blockGroup = 'originalpricing';
        $this->_controller = 'adminhtml_originalpricing';
        $this->_mode = 'assign';
        $this->_headerText = $helper->__('Upload CSV');

        $this->_updateButton('save', 'label', $helper->__('Upload & Save'));



class Package_OriginalPricing_Block_Adminhtml_Originalpricing_Assign_Form extends Mage_Adminhtml_Block_Widget_Form

    protected function _prepareForm()
        $form = new Varien_Data_Form(array(
                'id' => 'edit_form',
                'action' => $this->getUrl('*/*/assign'),
                'method' => 'post',
                'enctype' => 'multipart/form-data'

        $helper = Mage::helper('originalpricing');



        $fieldset = $form->addFieldset('assign_form', array(
            'legend' =>$helper->__('Upload CSV for Products')

        $fieldset->addField('sku_list', 'textarea', array(
            'label'     => $helper->__('SKU(s)'),
            'class'     => 'required-entry',
            'required'  => true,
            'name'      => 'sku_list',
            'note'     => $helper->__('Enter Product SKU separated by (,) comma'),

        $fieldset->addField('csv_file', 'file', array(
            'label'     => $helper->__('CSV File'),
            'class'     => 'required-entry',
            'required'  => true,
            'name'      => 'csv_file',
            'note'     => $helper->__('Choose a .csv file to be uploaded'),

        return parent::_prepareForm();


Everything is working fine on my local but not on live server.

  • @Priyank I have updated question with controllers code – Sagar Guhe Dec 4 '17 at 4:30
  • Yes it's placed here app/design/adminhtml/default/default/layout/originalpricing.xml – Sagar Guhe Dec 4 '17 at 4:35
  • Please replace "OriginalPricing" to "Originalpricing" in all files and check – Abdul Dec 4 '17 at 4:39
  • Module Name? dir name and modules/Package_OriginalPricing.xml all have same name... – Sagar Guhe Dec 4 '17 at 4:41
  • It is case sensitive module name issue – Abdul Dec 4 '17 at 4:43

I am posting answer to my question after two days of frustration and useless changes... The problem was not in my code but the the site had Compilation enabled from System >> Tools >> Compilation so I recompiled magento and suddenly all started to work. This was working on my local just because of the same reason that my local donot have Compilation enabled

|improve this answer|||||

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.