Question

When i enable developer mode, the magento doesnot work and displays this error instead

Warning: simplexml_load_string(): Entity: line 88: parser error : Opening and ending tag mismatch: global line 34 and config  in D:\Softwares\xamp_new\htdocs\bhupenShop\lib\Varien\Simplexml\Config.php on line 513
#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', 'D:\Softwares\xa...', 513, Array)
#1 D:\Softwares\xamp_new\htdocs\bhupenShop\lib\Varien\Simplexml\Config.php(513): simplexml_load_string('loadString('loadFile('D:\Softwares\xa...')
#4 D:\Softwares\xamp_new\htdocs\bhupenShop\app\code\core\Mage\Core\Model\Config.php(318): Mage_Core_Model_Config->loadModulesConfiguration(Array, Object(Mage_Core_Model_Config))
#5 D:\Softwares\xamp_new\htdocs\bhupenShop\app\code\core\Mage\Core\Model\App.php(414): Mage_Core_Model_Config->loadModules()
#6 D:\Softwares\xamp_new\htdocs\bhupenShop\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#7 D:\Softwares\xamp_new\htdocs\bhupenShop\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#8 D:\Softwares\xamp_new\htdocs\bhupenShop\index.php(87): Mage::run('', 'store')
#9 {main}

---Below is my config.xml file----

<?xml version="1.0"?>
<config>
    <modules>
        <Pfay_UserForm>
            <version>0.1.0</version>    <!-- Version of module -->
        </Pfay_UserForm>
    </modules>
<!-- settings for frontend pages -->
     <frontend>
            <routers>
                <userform>
                    <use>standard</use>
                    <args>
                        <module>Pfay_UserForm</module>
                        <frontName>userform</frontName>
                    </args>
                </userform>
            </routers>

            <layout>
               <updates>
                    <userform>
                         <file>Pfay_UserForm.xml</file>
                     </userform>
                </updates>
            </layout>

    </frontend> 

<!-- settings for backend pages -->
        <!-- router s initially -->
    <admin>
     <routers>
         <userform>
            <use>admin</use>
            <args>
               <module>Pfay_UserForm</module>
               <frontName>userform</frontName>
            </args>
         </userform>
      </routers>
     </admin>

     <!-- then grid and display settings -->

     <adminhtml>
      <layout>
          <updates>
              <userform>
                  <file>pfay_userform.xml</file>
               </userform>
          </updates>
       </layout>


       <menu>
          <userform translate="title" module="userform">
             <title>My UserForm</title>
             <sort_order>100</sort_order>
             <children>
                 <set_time>
                       <title>Details</title>
                       <action>adminuser/adminhtml_index</action>
                  </set_time>
              </children>
           </userform>
        </menu>



    </adminhtml>



    <!-- declaration of every file inside the module goes here -->
     <global>
        <blocks>
             <userform>
                  <class>Pfay_UserForm_Block</class>
             </userform>
          </blocks>


        <!-- ... -->
        <models>
            <userform>
                 <class>Pfay_UserForm_Model</class>
                 <resourceModel>userform_mysql4</resourceModel>
             </userform>
            <userform_mysql4>
                 <class>Pfay_UserForm_Model_Mysql4</class>
                 <entities>
                     <userform>
                       <table>userform</table>
                     </userform>
                  </entities>
            </userform_mysql4>
        </models>
                <!-- allow the plugin to read and write -->
        <resources>
                <!-- connection to write -->
                <userform_write>
                    <connection>
                        <use>core_write</use>
                    </connection>
                </userform_write>
                <!-- connection to read -->
               <userform_read>
                    <connection>
                        <use>core_read</use>
                    </connection>
               </userform_read>
        </resources>
         <!-- -/- -->
    <!-- ... -->

        <helpers>
            <userform>
                <class>Pfay_UserForm_Helper</class>
            </userform>
        </helpers>
    </global> 

</config>
Was it helpful?

Solution

there is an error in one of your config files. the tag <global> is not closed.
Check your latest modules. This may also answer one of your previous questions to why isn't your layout file loaded.
It's because the config.xml file was not loaded and as a side effect Magento does not know what is your layout file.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top