<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mukesh Chapagain&#039;s Blog &#187; error</title>
	<atom:link href="http://blog.chapagain.com.np/tag/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chapagain.com.np</link>
	<description>PHP Magento jQuery SQL Wordpress Joomla Programming &#38; Tutorial</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:54:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Magento: Helper Data not found error</title>
		<link>http://blog.chapagain.com.np/magento-helper-data-not-found-error/</link>
		<comments>http://blog.chapagain.com.np/magento-helper-data-not-found-error/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 03:24:44 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[helper]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1149</guid>
		<description><![CDATA[I created a module, let&#8217;s say, &#8216;MyModule&#8217;. When I go to the Admin -> System -> Configuration section of this module, I get this weird error. Fatal error: Class &#8216;Mage_MyModule_Helper_Data&#8217; not found - My Module is enabled. - I have helper class in &#8216;Helper&#8217; folder of my module. - I have deleted/refreshed all cache and [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-get-list-of-all-modules-programmatically/' rel='bookmark' title='Permanent Link: Magento: How to get list of all modules programmatically?'>Magento: How to get list of all modules programmatically?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-setsaveparametersinsession-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function setSaveParametersInSession() on a non-object'>Magento: Fatal error: Call to a member function setSaveParametersInSession() on a non-object</a></li>
<li><a href='http://blog.chapagain.com.np/magento-block-controller-model-helper-override/' rel='bookmark' title='Permanent Link: Magento: Block Controller Model Helper Override'>Magento: Block Controller Model Helper Override</a></li>
<li><a href='http://blog.chapagain.com.np/magento-read-write-xml/' rel='bookmark' title='Permanent Link: Magento: Read Write XML'>Magento: Read Write XML</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I created a module, let&#8217;s say, &#8216;MyModule&#8217;. When I go to the Admin -> System -> Configuration section of this module, I get this weird error.</p>
<blockquote><p>
Fatal error: Class &#8216;Mage_MyModule_Helper_Data&#8217; not found
</p></blockquote>
<p><span id="more-1149"></span></p>
<p>- My Module is enabled.<br />
- I have helper class in &#8216;Helper&#8217; folder of my module.<br />
- I have deleted/refreshed all cache and session.</p>
<p>According to my findings, the problem should be in XML file. Either the XML file inside <strong>app/etc/modules</strong> or the XML file inside <strong>MyNamespace/MyModule/etc</strong>.</p>
<p><strong>1) XML is strictly case sensitive</strong></p>
<p>I opened <strong>app/etc/modules/MyNamespace_MyModule.xml</strong> to check the case sensitive issue as the XML files are strictly case sensitive.</p>
<p>Everything was okay with it. Here is the code:-</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
  &lt;modules&gt;
    &lt;MyNamespace_MyModule&gt;
      &lt;codePool&gt;local&lt;/codePool&gt;
      &lt;active&gt;true&lt;/active&gt;
    &lt;/MyNamespace_MyModule&gt;
  &lt;/modules&gt;
&lt;/config&gt;
</pre>
<p>I was checking the <strong>codePool</strong> node. You might get this error if you write codepool (all small letters) instead of codePool (P capital). However, in my case, it was okay.</p>
<p><strong>2) XML doesn&#8217;t ignore whitespace (even if it is commented)</strong></p>
<p>This was the main cause of the error in my case. You should not keep space in between XML content. I had kept space in <strong>MyNamespace/MyModule/etc/config.xml</strong></p>
<p>The tricky part is that the space was inside commented XML code. Didn&#8217;t know that XML checks for whitespace inside commented code as well.</p>
<p>I have commented out some code in config.xml as below:-</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- &lt;default&gt;
		&lt;catalog&gt;
			&lt;mymodule&gt;
				&lt;mymessage&gt;Hello World!&lt;/mymessage&gt;
			&lt;/mymodule&gt;
	&lt;/default&gt; --&gt;
</pre>
<p>The space just after the comment start (before default node) and the space just before the comment end (after closing default node) was causing the error. I deleted the whole commented code and my problem was solved. :)</p>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1149&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-get-list-of-all-modules-programmatically/' rel='bookmark' title='Permanent Link: Magento: How to get list of all modules programmatically?'>Magento: How to get list of all modules programmatically?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-setsaveparametersinsession-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function setSaveParametersInSession() on a non-object'>Magento: Fatal error: Call to a member function setSaveParametersInSession() on a non-object</a></li>
<li><a href='http://blog.chapagain.com.np/magento-block-controller-model-helper-override/' rel='bookmark' title='Permanent Link: Magento: Block Controller Model Helper Override'>Magento: Block Controller Model Helper Override</a></li>
<li><a href='http://blog.chapagain.com.np/magento-read-write-xml/' rel='bookmark' title='Permanent Link: Magento: Read Write XML'>Magento: Read Write XML</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-helper-data-not-found-error/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Magento: Fatal error: Call to a member function setSaveParametersInSession() on a non-object</title>
		<link>http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-setsaveparametersinsession-on-a-non-object/</link>
		<comments>http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-setsaveparametersinsession-on-a-non-object/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 00:27:44 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1138</guid>
		<description><![CDATA[Scenario I was creating a module. I already had one Grid displayed in admin. The Grid was being displayed by a Block class, for example: MyNamespace_MyModule_Block_Adminhtml_MyModule Now, I had to display another Grid using a new Block class. Let&#8217;s say, I created a new Block class: MyNamespace_MyModule_Block_Adminhtml_MyNewGrid I just copied code from MyNamespace_MyModule_Block_Adminhtml_MyModule and copied [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-remove-or-rename-add-new-button-from-admin-grid/' rel='bookmark' title='Permanent Link: Magento: How to remove or rename &#8216;Add New&#8217; button from Admin Grid?'>Magento: How to remove or rename &#8216;Add New&#8217; button from Admin Grid?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-helper-data-not-found-error/' rel='bookmark' title='Permanent Link: Magento: Helper Data not found error'>Magento: Helper Data not found error</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-call-block-directly-from-phtml-file-without-defining-in-layout/' rel='bookmark' title='Permanent Link: Magento: How to call block directly from phtml file without defining in layout?'>Magento: How to call block directly from phtml file without defining in layout?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-call-static-block-from-template-file/' rel='bookmark' title='Permanent Link: Magento: How to call static block from template file?'>Magento: How to call static block from template file?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario</strong></p>
<p>I was creating a module. I already had one Grid displayed in admin. The Grid was being displayed by a Block class, for example: MyNamespace_MyModule_Block_Adminhtml_MyModule<br />
Now, I had to display another Grid using a new Block class. Let&#8217;s say, I created a new Block class: MyNamespace_MyModule_Block_Adminhtml_MyNewGrid</p>
<p>I just copied code from MyNamespace_MyModule_Block_Adminhtml_MyModule and copied it to MyNamespace_MyModule_Block_Adminhtml_MyNewGrid class.</p>
<p><span id="more-1138"></span></p>
<p><strong>MyNamespace_MyModule_Block_Adminhtml_MyModule</strong></p>
<pre class="brush: php; title: ; notranslate">
class MyNamespace_MyModule_Block_Adminhtml_MyModule extends Mage_Adminhtml_Block_Widget_Grid_Container
{
  public function __construct()
  {
    $this-&gt;_controller = 'adminhtml_mymodule';
    $this-&gt;_blockGroup = 'mymodule';
    $this-&gt;_headerText = Mage::helper('mymodule')-&gt;__('Module Data');
    parent::__construct();
  }
}
</pre>
<p><strong>MyNamespace_MyModule_Block_Adminhtml_MyNewGrid</strong></p>
<pre class="brush: php; title: ; notranslate">
class MyNamespace_MyModule_Block_Adminhtml_MyNewGrid extends Mage_Adminhtml_Block_Widget_Grid_Container
{
  public function __construct()
  {
    $this-&gt;_controller = 'adminhtml_mymodule';
    $this-&gt;_blockGroup = 'mynewgrid';
    $this-&gt;_headerText = Mage::helper('mymodule')-&gt;__('Module Data New');
    parent::__construct();
  }
}
</pre>
<p><strong>Cause</strong></p>
<p>The main mistake over here was the confusing naming for <strong>controller</strong> and <strong>blockGroup</strong>. </p>
<blockquote><p><code>$this->_controller</code> = This is not the controller class name. It is actually your Block class name.<br />
<code>$this->_blockGroup</code> = This is your module&#8217;s name.</p></blockquote>
<p><strong>Solution</strong></p>
<p>Hence, I updated my new grid class in the following way and the problem was solved. See the change in <strong>controller</strong> and <strong>blockGroup</strong> from the previous code.</p>
<p><strong>MyNamespace_MyModule_Block_Adminhtml_MyNewGrid</strong></p>
<pre class="brush: php; title: ; notranslate">
class MyNamespace_MyModule_Block_Adminhtml_MyNewGrid extends Mage_Adminhtml_Block_Widget_Grid_Container
{
  public function __construct()
  {
    $this-&gt;_controller = 'adminhtml_mynewgrid';
    $this-&gt;_blockGroup = 'mymodule';
    $this-&gt;_headerText = Mage::helper('mymodule')-&gt;__('Module Data New');
    parent::__construct();
  }
}
</pre>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1138&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-remove-or-rename-add-new-button-from-admin-grid/' rel='bookmark' title='Permanent Link: Magento: How to remove or rename &#8216;Add New&#8217; button from Admin Grid?'>Magento: How to remove or rename &#8216;Add New&#8217; button from Admin Grid?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-helper-data-not-found-error/' rel='bookmark' title='Permanent Link: Magento: Helper Data not found error'>Magento: Helper Data not found error</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-call-block-directly-from-phtml-file-without-defining-in-layout/' rel='bookmark' title='Permanent Link: Magento: How to call block directly from phtml file without defining in layout?'>Magento: How to call block directly from phtml file without defining in layout?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-call-static-block-from-template-file/' rel='bookmark' title='Permanent Link: Magento: How to call static block from template file?'>Magento: How to call static block from template file?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-setsaveparametersinsession-on-a-non-object/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Magento 1.4: No products displayed in category listing</title>
		<link>http://blog.chapagain.com.np/magento-1-4-no-products-displayed-in-category-listing/</link>
		<comments>http://blog.chapagain.com.np/magento-1-4-no-products-displayed-in-category-listing/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 13:24:37 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[product]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=869</guid>
		<description><![CDATA[Scenario: I have a fresh installation of Magento 1.4. I already have installed the sample data for Magento. Now, when I go to the category listing page, no products are displayed. It says &#8220;There are no products matching the selection.&#8220;. By category listing page, I mean the product listing page displayed when any category is [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/displaying-all-products-and-new-products-listing-in-columngrid-layout-zen-cart/' rel='bookmark' title='Permanent Link: Displaying all products and new products listing in column/grid layout &#8211; Zen-cart'>Displaying all products and new products listing in column/grid layout &#8211; Zen-cart</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-bestselling-products-by-category-and-date-time/' rel='bookmark' title='Permanent Link: Magento: Get Bestselling products by category and date time'>Magento: Get Bestselling products by category and date time</a></li>
<li><a href='http://blog.chapagain.com.np/magento-downloadable-products-not-displayed-in-associated-products-tab-in-grouped-product/' rel='bookmark' title='Permanent Link: Magento: Downloadable products not displayed in Associated Products tab in Grouped Product'>Magento: Downloadable products not displayed in Associated Products tab in Grouped Product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-filter-product-collection-using-2-or-more-category-filters/' rel='bookmark' title='Permanent Link: Magento: How to filter product collection using 2 or more category filters?'>Magento: How to filter product collection using 2 or more category filters?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-category-name-and-url-from-product/' rel='bookmark' title='Permanent Link: Magento: Get category name and url from product'>Magento: Get category name and url from product</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>I have a fresh installation of Magento 1.4. I already have installed the sample data for Magento. </p>
<p>Now, when I go to the category listing page, no products are displayed. It says &#8220;<strong>There are no products matching the selection.</strong>&#8220;.</p>
<p><span id="more-869"></span></p>
<p>By category listing page, I mean the product listing page displayed when any category is clicked. Like, product listing for Furniture category, product listing for Living Room category, etc.</p>
<p><strong>Solution:</strong></p>
<p>- Go to <strong>System -> Index Management</strong><br />
- Select All Checkbox<br />
- In Actions, select &#8216;<strong>Reindex Data</strong>&#8216;<br />
- Click Submit</p>
<p>Now, go to the category listing page. You will be able to see the products.</p>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=869&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/displaying-all-products-and-new-products-listing-in-columngrid-layout-zen-cart/' rel='bookmark' title='Permanent Link: Displaying all products and new products listing in column/grid layout &#8211; Zen-cart'>Displaying all products and new products listing in column/grid layout &#8211; Zen-cart</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-bestselling-products-by-category-and-date-time/' rel='bookmark' title='Permanent Link: Magento: Get Bestselling products by category and date time'>Magento: Get Bestselling products by category and date time</a></li>
<li><a href='http://blog.chapagain.com.np/magento-downloadable-products-not-displayed-in-associated-products-tab-in-grouped-product/' rel='bookmark' title='Permanent Link: Magento: Downloadable products not displayed in Associated Products tab in Grouped Product'>Magento: Downloadable products not displayed in Associated Products tab in Grouped Product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-filter-product-collection-using-2-or-more-category-filters/' rel='bookmark' title='Permanent Link: Magento: How to filter product collection using 2 or more category filters?'>Magento: How to filter product collection using 2 or more category filters?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-category-name-and-url-from-product/' rel='bookmark' title='Permanent Link: Magento: Get category name and url from product'>Magento: Get category name and url from product</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-1-4-no-products-displayed-in-category-listing/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Magento Error – Notice: Undefined index: 0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92</title>
		<link>http://blog.chapagain.com.np/magento-error-%e2%80%93-notice-undefined-index-0-appcodecoremagecoremodelmysql4config-php-on-line-92/</link>
		<comments>http://blog.chapagain.com.np/magento-error-%e2%80%93-notice-undefined-index-0-appcodecoremagecoremodelmysql4config-php-on-line-92/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 11:15:19 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=886</guid>
		<description><![CDATA[I got this error message when migrating my Magento files and database from one server to another. Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92 Solution: - Open PhpMyAdmin - Go to your database - Click SQL - Run the following SQL Query: That&#8217;s all. Your error is solved now. Hope this helps. Thanks. [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-recoverable-error-argument-1-passed-to-mage_core_model_store-setwebsite-must-be-an-instance-of-mage_core_model_website/' rel='bookmark' title='Permanent Link: Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website'>Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website</a></li>
<li><a href='http://blog.chapagain.com.np/magento-solution-to-error-404-not-found-in-admin-login-page/' rel='bookmark' title='Permanent Link: Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page'>Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-remove-index-php-from-url/' rel='bookmark' title='Permanent Link: Magento: How to remove index.php from URL?'>Magento: How to remove index.php from URL?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-change-currency-symbol-by-model-override/' rel='bookmark' title='Permanent Link: Magento: How to change Currency symbol by Model Override ?'>Magento: How to change Currency symbol by Model Override ?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I got this error message when migrating my Magento files and database from one server to another. </p>
<blockquote><p>Notice: Undefined index: 0 in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92</p></blockquote>
<p><strong>Solution:</strong></p>
<p><span id="more-886"></span></p>
<p>- Open PhpMyAdmin<br />
- Go to your database<br />
- Click SQL<br />
- Run the following SQL Query:</p>
<pre class="brush: php; title: ; notranslate">
SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;
</pre>
<p>That&#8217;s all. Your error is solved now. </p>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=886&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-recoverable-error-argument-1-passed-to-mage_core_model_store-setwebsite-must-be-an-instance-of-mage_core_model_website/' rel='bookmark' title='Permanent Link: Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website'>Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website</a></li>
<li><a href='http://blog.chapagain.com.np/magento-solution-to-error-404-not-found-in-admin-login-page/' rel='bookmark' title='Permanent Link: Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page'>Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-remove-index-php-from-url/' rel='bookmark' title='Permanent Link: Magento: How to remove index.php from URL?'>Magento: How to remove index.php from URL?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-change-currency-symbol-by-model-override/' rel='bookmark' title='Permanent Link: Magento: How to change Currency symbol by Model Override ?'>Magento: How to change Currency symbol by Model Override ?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-error-%e2%80%93-notice-undefined-index-0-appcodecoremagecoremodelmysql4config-php-on-line-92/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>W3C Validation: IFrame Error with XHTML 1.0 Strict Doctype</title>
		<link>http://blog.chapagain.com.np/w3c-validation-iframe-error-with-xhtml-1-0-strict-doctype/</link>
		<comments>http://blog.chapagain.com.np/w3c-validation-iframe-error-with-xhtml-1-0-strict-doctype/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 11:58:20 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[doctype]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=877</guid>
		<description><![CDATA[IFrames are not supported with XHTML 1.0 Strict Doctype. When you use IFrame and your doctype is XHTML 1.0 Strict, then you cannot pass the W3C Markup Validation test. You always get errors. The errors are like:- there is no attribute &#8220;src&#8221; there is no attribute &#8220;scrolling&#8221; there is no attribute &#8220;frameborder&#8221; there is no [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/jquery-grey-out-background-and-preview-image-as-popup/' rel='bookmark' title='Permanent Link: jQuery: Grey out background and preview image as popup'>jQuery: Grey out background and preview image as popup</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-width-height-of-image-using-varien_image-class/' rel='bookmark' title='Permanent Link: Magento: Get width height of image using Varien_Image class'>Magento: Get width height of image using Varien_Image class</a></li>
<li><a href='http://blog.chapagain.com.np/octopus-pauls-prediction-spain-will-win-the-fifa-2010-worldcup/' rel='bookmark' title='Permanent Link: Octopus Paul&#8217;s Prediction: Spain will win the FIFA Worldcup 2010'>Octopus Paul&#8217;s Prediction: Spain will win the FIFA Worldcup 2010</a></li>
<li><a href='http://blog.chapagain.com.np/hardware-interrupt/' rel='bookmark' title='Permanent Link: Hardware Interrupt'>Hardware Interrupt</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>IFrames</strong> are not supported with <strong>XHTML 1.0 Strict Doctype</strong>.</p>
<p>When you use IFrame and your doctype is XHTML 1.0 Strict, then you cannot pass the <strong>W3C Markup Validation</strong> test. You always get errors.</p>
<p>The errors are like:-<span id="more-877"></span></p>
<blockquote><p>there is no attribute &#8220;src&#8221;<br />
there is no attribute &#8220;scrolling&#8221;<br />
there is no attribute &#8220;frameborder&#8221;<br />
there is no attribute &#8220;height&#8221;<br />
there is no attribute &#8220;width&#8221;<br />
there is no attribute &#8220;allowtransparency&#8221;<br />
there is no attribute &#8220;title&#8221;<br />
element &#8220;iframe&#8221; undefined</p></blockquote>
<p><span style="text-decoration: underline;"><strong>Solution</strong></span></p>
<p>Use <strong>object</strong> tag instead of <strong>iframe</strong>.</p>
<p><span style="text-decoration: underline;"><strong>Example</strong></span></p>
<p>Here is an iframe code for <strong>Facebook Like Box</strong>:-</p>
<pre class="brush: xml; title: ; notranslate">
&lt;iframe src=&quot;http://www.facebook.com/plugins/likebox.php?profile_id=62473189912&amp;width=300&amp;height=255&amp;connections=10&amp;stream=false&amp;header=false&amp;locale=en_US&quot;  scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border: medium none; overflow: hidden; width: 300px; height: 255px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
</pre>
<p>Using the above IFrame code in your website gives errors when you validate with W3C.</p>
<p>So, the solution is to use Object tag. You will not get the validation errors by using Object.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;object style=&quot;border: medium none; overflow: hidden; width: 300px; height: 255px;&quot;  data=&quot;http://www.facebook.com/plugins/likebox.php?id=62473189912&amp;amp;width=300&amp;amp;height=255&amp;amp;connections=10&amp;amp;header=false&quot;&gt;&lt;/object&gt;
</pre>
<p>It&#8217;s the same case with including <strong>Google Maps</strong> in websites.</p>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=877&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/jquery-grey-out-background-and-preview-image-as-popup/' rel='bookmark' title='Permanent Link: jQuery: Grey out background and preview image as popup'>jQuery: Grey out background and preview image as popup</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-width-height-of-image-using-varien_image-class/' rel='bookmark' title='Permanent Link: Magento: Get width height of image using Varien_Image class'>Magento: Get width height of image using Varien_Image class</a></li>
<li><a href='http://blog.chapagain.com.np/octopus-pauls-prediction-spain-will-win-the-fifa-2010-worldcup/' rel='bookmark' title='Permanent Link: Octopus Paul&#8217;s Prediction: Spain will win the FIFA Worldcup 2010'>Octopus Paul&#8217;s Prediction: Spain will win the FIFA Worldcup 2010</a></li>
<li><a href='http://blog.chapagain.com.np/hardware-interrupt/' rel='bookmark' title='Permanent Link: Hardware Interrupt'>Hardware Interrupt</a></li>
<li><a href='http://blog.chapagain.com.np/magento-fatal-error-call-to-a-member-function-gettable-on-a-non-object/' rel='bookmark' title='Permanent Link: Magento: Fatal error: Call to a member function getTable() on a non-object'>Magento: Fatal error: Call to a member function getTable() on a non-object</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/w3c-validation-iframe-error-with-xhtml-1-0-strict-doctype/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Magento: Exception printing is disabled by default for security reasons</title>
		<link>http://blog.chapagain.com.np/magento-exception-printing-is-disabled-by-default-for-security-reasons/</link>
		<comments>http://blog.chapagain.com.np/magento-exception-printing-is-disabled-by-default-for-security-reasons/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 07:57:37 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=865</guid>
		<description><![CDATA[Problem: I am using Magento 1.4. Homepage loads fine. When I go to category (product listing) page, it works fine. But when I go to any product detail page, I get the following error:- There has been an error processing your request Exception printing is disabled by default for security reasons. I don&#8217;t get the [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-change-default-page-layout/' rel='bookmark' title='Permanent Link: Magento: How to change default page layout?'>Magento: How to change default page layout?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-tell-email-a-friend-feature-by-default/' rel='bookmark' title='Permanent Link: Magento: Tell / Email a friend &#8211; Feature by default'>Magento: Tell / Email a friend &#8211; Feature by default</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-enable-backorders/' rel='bookmark' title='Permanent Link: Magento: How to enable backorders?'>Magento: How to enable backorders?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-change-or-reorder-top-links/' rel='bookmark' title='Permanent Link: Magento: How to change or reorder top links?'>Magento: How to change or reorder top links?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>I am using Magento 1.4. Homepage loads fine. When I go to category (product listing) page, it works fine. But when I go to any product detail page, I get the following error:-</p>
<blockquote><p>
There has been an error processing your request</p>
<p><span id="more-865"></span></p>
<p>Exception printing is disabled by default for security reasons.
</p></blockquote>
<p>I don&#8217;t get the detailed information about the error as I used to get in previous versions of Magento.</p>
<p><strong>Solution:</strong></p>
<p>In your magento root, there is a folder called <strong>errors</strong>.</p>
<p>Go inside the errors folder.</p>
<p>There is a file named <strong>local.xml.sample</strong>.</p>
<p>Rename it to <strong>local.xml</strong></p>
<p>Hence, the problem is solved. Now, I am able to see detailed error information.</p>
<p><strong>Another Problem:</strong></p>
<p>Now, when I try to open any product detail page, I get the following error.</p>
<blockquote><p>Warning: Varien_Autoload::include(Mage\Catalog\Model\Resource\Eav\Mysql4\Product\Attribute\Backend\Tierprice.php) [varien-autoload.include]: failed to open stream: No such file or directory </p></blockquote>
<p>If I try to add product to cart from product listing page, the product is not added to cart. And, I get the following error message:-</p>
<blockquote><p>Cannot add item to shopping cart</p></blockquote>
<p><strong>Solution:</strong></p>
<p>Tierprice.php is not present in <strong>app\code\core\Mage\Catalog\Model\Resource\Eav\Mysql4\Product\Attribute\Backend</strong>. </p>
<p>There is a file named <strong>Tierprice.php0000664</strong>. </p>
<p>Rename it to <strong>Tierprice.php</strong>. Hence, the problem is solved. Now, I am able to open product detail page. And, I am also able to add product to shopping cart.</p>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=865&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-change-default-page-layout/' rel='bookmark' title='Permanent Link: Magento: How to change default page layout?'>Magento: How to change default page layout?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-tell-email-a-friend-feature-by-default/' rel='bookmark' title='Permanent Link: Magento: Tell / Email a friend &#8211; Feature by default'>Magento: Tell / Email a friend &#8211; Feature by default</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-enable-backorders/' rel='bookmark' title='Permanent Link: Magento: How to enable backorders?'>Magento: How to enable backorders?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-change-or-reorder-top-links/' rel='bookmark' title='Permanent Link: Magento: How to change or reorder top links?'>Magento: How to change or reorder top links?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-exception-printing-is-disabled-by-default-for-security-reasons/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Magento: Access denied in admin of custom module</title>
		<link>http://blog.chapagain.com.np/magento-access-denied-in-admin-of-custom-module/</link>
		<comments>http://blog.chapagain.com.np/magento-access-denied-in-admin-of-custom-module/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 09:00:44 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[access denied]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=664</guid>
		<description><![CDATA[I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named &#8216;My Module Name&#8216; which can be accessed from Admin &#8211;> System &#8211;> Configuration. In the file below, I have just [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-add-default-value-to-system-configuration-option-fields/' rel='bookmark' title='Permanent Link: Magento: Add default value to System Configuration Option fields'>Magento: Add default value to System Configuration Option fields</a></li>
<li><a href='http://blog.chapagain.com.np/magento-set-title-keywords-and-description-in-your-module/' rel='bookmark' title='Permanent Link: Magento: Set title, keywords and description in your module'>Magento: Set title, keywords and description in your module</a></li>
<li><a href='http://blog.chapagain.com.np/magento-upgrading-mysql-setup-of-a-module/' rel='bookmark' title='Permanent Link: Magento: Upgrading mysql setup of a module'>Magento: Upgrading mysql setup of a module</a></li>
<li><a href='http://blog.chapagain.com.np/magento-admin-controller-override/' rel='bookmark' title='Permanent Link: Magento: Admin Controller Override'>Magento: Admin Controller Override</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-controller-action-and-module-name-in-template-file/' rel='bookmark' title='Permanent Link: Magento: How to get controller, module, action and router name?'>Magento: How to get controller, module, action and router name?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I was building a custom module in Magento. I had created a <strong>system.xml</strong> file for storing configuration data from admin. From the below <strong>system.xml</strong> file, you can see that I have created a section named &#8216;<strong>My Module Name</strong>&#8216; which can be accessed from <strong>Admin &#8211;> System &#8211;> Configuration</strong>. </p>
<p>In the file below, I have just displayed the section and groups name. I have omitted others fields with dots, as they are not necessary here.</p>
<p><span id="more-664"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;config&gt;
   &lt;sections&gt;
		&lt;my_section_name translate=&quot;label&quot; module=&quot;mymodulename&quot;&gt;
			&lt;label&gt;My Module Name&lt;/label&gt;
			...
			..
			.
			&lt;groups&gt;
				&lt;my_group_name translate=&quot;label&quot; module=&quot;mymodulename&quot;&gt;
					&lt;label&gt;My Group Name&lt;/label&gt;
					...
					..
					.
					&lt;fields&gt;
						...
						..
						.
					&lt;/fields&gt;
				&lt;/my_group_name&gt;
			&lt;/groups&gt;
			&lt;groups&gt;
				&lt;second_group_name translate=&quot;label&quot; module=&quot;mymodulename&quot;&gt;
					&lt;label&gt;Second Group Name&lt;/label&gt;
					...
					..
					.
					&lt;fields&gt;
						...
						..
						.
					&lt;/fields&gt;
				&lt;/second_group_name&gt;
			&lt;/groups&gt;
		&lt;/my_section_name&gt;
    &lt;/sections&gt;
&lt;/config&gt;
</pre>
<p>Now, when I try to access the &#8216;<strong>My Module Name</strong>&#8216; tab present in <strong>Admin &#8211;> System &#8211;> Configuration</strong>, I get the &#8216;<strong>Access Denied</strong>&#8216; Error. </p>
<p>I searched the internet about this problem. In the magentocommerce forum, people suggested to log out and relogin. But it didn&#8217;t slove my problem.</p>
<p><a targe="_blank" href="http://inchoo.net/ecommerce/magento/access-denied-in-magento-admin/">Inchoo </a>suggested to edit administrator roles. But, it didn&#8217;t solve either.</p>
<p>Then I tried <a target="_blank" href="http://activecodeline.com/access-denied-magento-module-error">Activecodeonline&#8217;s</a> solution. It suggested me to set some nodes in <strong>config.xml</strong> file of my module. I also think that it&#8217;s XML related problem. But this solution didn&#8217;t solve my problem. The &#8216;<strong>Access Denied</strong>&#8216; error still exists.</p>
<p>Finally, Activecodeonline was very useful to me ;). Actually, I had <strong>2 groups </strong>in my <strong>system.xml</strong> file (see above xml). Hence, I need to add both group names as children in <strong>config.xml</strong> file of my module. </p>
<p>Regarding my <strong>system.xml</strong> file, the following XML is to be added in the <strong>config.xml</strong> file.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;system&gt;
	&lt;children&gt;
		&lt;config&gt;
			&lt;children&gt;
				&lt;my_group_name&gt;
					&lt;title&gt;My Group Name&lt;/title&gt;
				&lt;/my_group_name&gt;
				&lt;second_group_name&gt;
					&lt;title&gt;My Second Group Name&lt;/title&gt;
				&lt;/second_group_name&gt;
			&lt;/children&gt;
		&lt;/config&gt;
	&lt;/children&gt;
&lt;/system&gt;
</pre>
<p>Here is my<strong> config.xml </strong>file which solved my problem. Unnecessary parts for here are removed with dots (&#8230;) :)</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
    &lt;modules&gt;
       ...
	   ..
	   .
    &lt;/modules&gt;
    &lt;frontend&gt;
        ...
		..
		.
    &lt;/frontend&gt;
    &lt;admin&gt;
        ...
		..
		.
    &lt;/admin&gt;
    &lt;adminhtml&gt;
		&lt;menu&gt;
			...
			..
			.
		&lt;/menu&gt;
		&lt;acl&gt;
			&lt;resources&gt;
				&lt;all&gt;
					&lt;title&gt;Allow Everything&lt;/title&gt;
				&lt;/all&gt;
				&lt;admin&gt;
					&lt;children&gt;
						&lt;MyCompany_MyModule&gt;
							&lt;title&gt;My Module&lt;/title&gt;
							&lt;sort_order&gt;10&lt;/sort_order&gt;
						&lt;/MyCompany_MyModule&gt;
						&lt;system&gt;
							&lt;children&gt;
								&lt;config&gt;
									&lt;children&gt;
										&lt;my_group_name&gt;
											&lt;title&gt;My Group Name&lt;/title&gt;
										&lt;/my_group_name&gt;
										&lt;second_group_name&gt;
											&lt;title&gt;My Second Group Name&lt;/title&gt;
										&lt;/second_group_name&gt;
									&lt;/children&gt;
								&lt;/config&gt;
							&lt;/children&gt;
						&lt;/system&gt;
					&lt;/children&gt;
				&lt;/admin&gt;
			&lt;/resources&gt;
		&lt;/acl&gt;
		&lt;layout&gt;
			...
			..
			.
		&lt;/layout&gt;
    &lt;/adminhtml&gt;
    &lt;global&gt;
        ...
		..
		.
    &lt;/global&gt;
&lt;/config&gt;
</pre>
<p>Hope this helps and thanks for reading.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=664&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-add-default-value-to-system-configuration-option-fields/' rel='bookmark' title='Permanent Link: Magento: Add default value to System Configuration Option fields'>Magento: Add default value to System Configuration Option fields</a></li>
<li><a href='http://blog.chapagain.com.np/magento-set-title-keywords-and-description-in-your-module/' rel='bookmark' title='Permanent Link: Magento: Set title, keywords and description in your module'>Magento: Set title, keywords and description in your module</a></li>
<li><a href='http://blog.chapagain.com.np/magento-upgrading-mysql-setup-of-a-module/' rel='bookmark' title='Permanent Link: Magento: Upgrading mysql setup of a module'>Magento: Upgrading mysql setup of a module</a></li>
<li><a href='http://blog.chapagain.com.np/magento-admin-controller-override/' rel='bookmark' title='Permanent Link: Magento: Admin Controller Override'>Magento: Admin Controller Override</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-controller-action-and-module-name-in-template-file/' rel='bookmark' title='Permanent Link: Magento: How to get controller, module, action and router name?'>Magento: How to get controller, module, action and router name?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-access-denied-in-admin-of-custom-module/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Magento: Product Edit Warning: Invalid argument supplied for foreach()</title>
		<link>http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/</link>
		<comments>http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 07:52:13 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=373</guid>
		<description><![CDATA[Scenario: While editing product programatically from frontend. I was trying to change the status of the product with the following code: Mage::getModel(&#8216;catalog/product&#8217;)->load($product->getId())->setStatus(2)->save(); Problem: Product could not be edited programatically from frontend. The following error message is shown: Warning: Invalid argument supplied for foreach()  in /var/www/magento/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 937 Solution: It seems that product updates are [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-get-parent-id-of-simple-product-associated-to-configurable-product/' rel='bookmark' title='Permanent Link: Magento: Get parent id of simple product associated to configurable product'>Magento: Get parent id of simple product associated to configurable product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-load-store-specific-product/' rel='bookmark' title='Permanent Link: Magento: Load store specific product'>Magento: Load store specific product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-filter-product-collection-using-2-or-more-category-filters/' rel='bookmark' title='Permanent Link: Magento: How to filter product collection using 2 or more category filters?'>Magento: How to filter product collection using 2 or more category filters?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-product-stock-quantity-other-stock-information/' rel='bookmark' title='Permanent Link: Magento: How to get product stock quantity &#038; other stock information?'>Magento: How to get product stock quantity &#038; other stock information?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>While editing product programatically from frontend. I was trying to change the status of the product with the following code:</p>
<p>Mage::getModel(&#8216;catalog/product&#8217;)->load($product->getId())->setStatus(2)->save();</p>
<p><span id="more-373"></span></p>
<p><strong>Problem:</strong></p>
<p>Product could not be edited programatically from frontend. The following error message is shown:</p>
<blockquote><p>Warning: Invalid argument supplied for foreach()  in /var/www/magento/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 937</p></blockquote>
<p><strong>Solution:</strong></p>
<p>It seems that product updates are only made on the admin side and you have to change the store view while editing product from frontend.</p>
<p>Write the following before you edit product:</p>
<pre class="brush: php; title: ; notranslate">

Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
</pre>
<p>Hence, my new code will be :</p>
<pre class="brush: php; title: ; notranslate">

Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
Mage::getModel('catalog/product')-&gt;load($item-&gt;getProductId())-&gt;setStatus(2)-&gt;save();
</pre>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=373&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-get-parent-id-of-simple-product-associated-to-configurable-product/' rel='bookmark' title='Permanent Link: Magento: Get parent id of simple product associated to configurable product'>Magento: Get parent id of simple product associated to configurable product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-load-store-specific-product/' rel='bookmark' title='Permanent Link: Magento: Load store specific product'>Magento: Load store specific product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-filter-product-collection-using-2-or-more-category-filters/' rel='bookmark' title='Permanent Link: Magento: How to filter product collection using 2 or more category filters?'>Magento: How to filter product collection using 2 or more category filters?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-product-stock-quantity-other-stock-information/' rel='bookmark' title='Permanent Link: Magento: How to get product stock quantity &#038; other stock information?'>Magento: How to get product stock quantity &#038; other stock information?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Google says Sorry to me</title>
		<link>http://blog.chapagain.com.np/google-says-sorry-to-me/</link>
		<comments>http://blog.chapagain.com.np/google-says-sorry-to-me/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 02:15:44 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[sorry]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=367</guid>
		<description><![CDATA[I&#8217;m human, Google ! I was googling something and google suddenly said sorry to me. It says my computer is sending automated queries. I was just googling &#8220;magento programmer developer nepal&#8221; by changing the word position at each time. I just googled this way for at most 5 times. Google help says the following thing [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/how-to-setup-google-adsense-in-your-website/' rel='bookmark' title='Permanent Link: How to setup Google AdSense for your website'>How to setup Google AdSense for your website</a></li>
<li><a href='http://blog.chapagain.com.np/jquery-grey-out-background-and-preview-image-as-popup/' rel='bookmark' title='Permanent Link: jQuery: Grey out background and preview image as popup'>jQuery: Grey out background and preview image as popup</a></li>
<li><a href='http://blog.chapagain.com.np/how-to-reset-google-apps-admin-password/' rel='bookmark' title='Permanent Link: How to Reset Google Apps Admin password?'>How to Reset Google Apps Admin password?</a></li>
<li><a href='http://blog.chapagain.com.np/google-chrome-backup-profile-bookmarks-history-extensionsbest-and-easy-way/' rel='bookmark' title='Permanent Link: Backup Google Chrome Profile Bookmarks History Extensions: Best and Easy way'>Backup Google Chrome Profile Bookmarks History Extensions: Best and Easy way</a></li>
<li><a href='http://blog.chapagain.com.np/google-is-retiring-adsense-referrals/' rel='bookmark' title='Permanent Link: Google is retiring AdSense Referrals'>Google is retiring AdSense Referrals</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<blockquote>
<p style="text-align: justify;">I&#8217;m human, Google !</p>
</blockquote>
<p style="text-align: justify;">I was googling something and google suddenly said sorry to me. It says my computer is sending automated queries. I was just googling &#8220;magento programmer developer nepal&#8221; by changing the word position at each time. I just googled this way for at most 5 times.</p>
<p style="text-align: justify;">Google help says the following thing about this issue:</p>
<p><span id="more-367"></span></p>
<blockquote style="text-align: justify;"><p>The &#8216;We&#8217;re Sorry&#8217; message appears when Google detects that a computer on your network is sending automated traffic to Google. Automated queries are against our Terms of Service.</p></blockquote>
<p style="text-align: justify;">Here is the image of the error/security message:</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 505px"><a href="http://chapagain.googlecode.com/files/google.jpg"><img class="  " title="Google says Sorry" src="http://chapagain.googlecode.com/files/google.jpg" alt="Google says Sorry" width="495" height="245" /></a><p class="wp-caption-text">Google says Sorry</p></div>
<p>I must have been late to make a century but anyways I am happy to do so now. This is my <strong>100th</strong> post :)</p>
<p>Blogging is so fun. I love it!</p>
<p>Thanks to everyone who reads me.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=367&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/how-to-setup-google-adsense-in-your-website/' rel='bookmark' title='Permanent Link: How to setup Google AdSense for your website'>How to setup Google AdSense for your website</a></li>
<li><a href='http://blog.chapagain.com.np/jquery-grey-out-background-and-preview-image-as-popup/' rel='bookmark' title='Permanent Link: jQuery: Grey out background and preview image as popup'>jQuery: Grey out background and preview image as popup</a></li>
<li><a href='http://blog.chapagain.com.np/how-to-reset-google-apps-admin-password/' rel='bookmark' title='Permanent Link: How to Reset Google Apps Admin password?'>How to Reset Google Apps Admin password?</a></li>
<li><a href='http://blog.chapagain.com.np/google-chrome-backup-profile-bookmarks-history-extensionsbest-and-easy-way/' rel='bookmark' title='Permanent Link: Backup Google Chrome Profile Bookmarks History Extensions: Best and Easy way'>Backup Google Chrome Profile Bookmarks History Extensions: Best and Easy way</a></li>
<li><a href='http://blog.chapagain.com.np/google-is-retiring-adsense-referrals/' rel='bookmark' title='Permanent Link: Google is retiring AdSense Referrals'>Google is retiring AdSense Referrals</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/google-says-sorry-to-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuration error on new Magento installation</title>
		<link>http://blog.chapagain.com.np/configuration-error-on-new-magento-installation/</link>
		<comments>http://blog.chapagain.com.np/configuration-error-on-new-magento-installation/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 12:17:28 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[installation]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=132</guid>
		<description><![CDATA[Scenario: I am installing a fresh magento 1.3.2.1 in my Windows XP computer. I have Xampp installed. While installing magento, I had a problem at the configuration step where I had to fill database host, username, password etc. When I click continue after filling the required fields, the installation process doesn’t move forward. I am [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/how-to-install-sample-data-for-magento/' rel='bookmark' title='Permanent Link: How to Install Sample Data for Magento?'>How to Install Sample Data for Magento?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-error-%e2%80%93-notice-undefined-index-0-appcodecoremagecoremodelmysql4config-php-on-line-92/' rel='bookmark' title='Permanent Link: Magento Error – Notice: Undefined index: 0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92'>Magento Error – Notice: Undefined index: 0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92</a></li>
<li><a href='http://blog.chapagain.com.np/magento-recoverable-error-argument-1-passed-to-mage_core_model_store-setwebsite-must-be-an-instance-of-mage_core_model_website/' rel='bookmark' title='Permanent Link: Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website'>Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website</a></li>
<li><a href='http://blog.chapagain.com.np/php-extension-error-while-installing-magento/' rel='bookmark' title='Permanent Link: PHP extension error while installing Magento'>PHP extension error while installing Magento</a></li>
<li><a href='http://blog.chapagain.com.np/magento-solution-to-error-404-not-found-in-admin-login-page/' rel='bookmark' title='Permanent Link: Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page'>Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><strong>Scenario</strong>:</p>
<p style="text-align: justify;">I am installing a fresh magento 1.3.2.1 in my Windows XP computer. I have Xampp installed. While installing magento, I had a problem at the configuration step where I had to fill database host, username, password etc. When I click continue after filling the required fields, the installation process doesn’t move forward. I am redirected to the same page.</p>
<p><strong>Solution</strong>:</p>
<p><span id="more-132"></span></p>
<p style="text-align: justify;">I googled and was suggested to put 127.0.0.1 instead of localhost in the url; e.g. to put http://127.0.0.1/magento  instead of http://localhost/magento . I did the same but then I got the following error displayed:</p>
<p><strong>Database server does not support InnoDB storage engine<br />
Database connection error</strong></p>
<p>This error was solved. I opened <strong>my.cnf</strong> file present inside <strong>mysql/bin/</strong> in notepad and uncommented (removed # sign) from the line skip_innodb.</p>
<p>Change:<br />
<strong>#skip-innodb to skip-innodb</strong></p>
<p>But still, my problem was not solved. I could not pass through the configuration page. Then I found a solution which finally helped me. I changed chmod of the following three folders to 777, i.e. making the folders writable. These folders are inside your magento folder.  In windows, right click the folder, go to properties, uncheck ‘Read Only’ present under Attributes. The folders to change are as under:</p>
<p style="text-align: justify;">
<strong>app/etc<br />
var<br />
media</strong></p>
<p>Finally, I am through and I completed Magento installation. Hurray :)</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=132&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/how-to-install-sample-data-for-magento/' rel='bookmark' title='Permanent Link: How to Install Sample Data for Magento?'>How to Install Sample Data for Magento?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-error-%e2%80%93-notice-undefined-index-0-appcodecoremagecoremodelmysql4config-php-on-line-92/' rel='bookmark' title='Permanent Link: Magento Error – Notice: Undefined index: 0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92'>Magento Error – Notice: Undefined index: 0 app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92</a></li>
<li><a href='http://blog.chapagain.com.np/magento-recoverable-error-argument-1-passed-to-mage_core_model_store-setwebsite-must-be-an-instance-of-mage_core_model_website/' rel='bookmark' title='Permanent Link: Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website'>Magento: Recoverable Error: Argument 1 passed to Mage_Core_Model_Store :: setWebsite() must be an instance of Mage_Core_Model_Website</a></li>
<li><a href='http://blog.chapagain.com.np/php-extension-error-while-installing-magento/' rel='bookmark' title='Permanent Link: PHP extension error while installing Magento'>PHP extension error while installing Magento</a></li>
<li><a href='http://blog.chapagain.com.np/magento-solution-to-error-404-not-found-in-admin-login-page/' rel='bookmark' title='Permanent Link: Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page'>Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/configuration-error-on-new-magento-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
