<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Magento Commerce &#8211; Layered Navigation Cache Error</title> <atom:link href="http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/feed/" rel="self" type="application/rss+xml" /><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/</link> <description>Chris McKee of Chris McKee Designs, no less.</description> <lastBuildDate>Tue, 06 Jul 2010 00:40:54 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Chris McKee</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-125</link> <dc:creator>Chris McKee</dc:creator> <pubDate>Mon, 06 Jul 2009 20:43:17 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-125</guid> <description>@jk Good idea; I was planning on having an updated version out a few weeks ago, I&#039;m a bit stuck for time due to other things in the pipeline.Try and remember when modifying this file that initially it was written to be run from SSH to minimise the risk of cancellation and to reduce the memory consumption. The more text you write to the screen via echo, regardless of how nice verbose is, will increase the buffer and reduce the number you can process in each run.@spatter: thanks more and more to come. Unless I get hit by a bus that is.TaChris</description> <content:encoded><![CDATA[<p>@jk Good idea; I was planning on having an updated version out a few weeks ago, I'm a bit stuck for time due to other things in the pipeline.</p><p>Try and remember when modifying this file that initially it was written to be run from SSH to minimise the risk of cancellation and to reduce the memory consumption. The more text you write to the screen via echo, regardless of how nice verbose is, will increase the buffer and reduce the number you can process in each run.</p><p>@spatter: thanks more and more to come. Unless I get hit by a bus that is.</p><p>Ta</p><p>Chris</p> ]]></content:encoded> </item> <item><title>By: JK</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-122</link> <dc:creator>JK</dc:creator> <pubDate>Sun, 05 Jul 2009 19:34:19 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-122</guid> <description>Hi, my friend ask my to repair his shop because he got problems with his layered navigation in Magento store.
I was searching over the internet and I found one FIX created by Chris McKee. THX Chris
His script was perfect but some automatic functions were missing, therefore I’ve created my own script.
Check it here: &lt;a href=&quot;http://jksite.com/blog/2009/07/magento-layered-navigation-cache-error/&quot; title=&quot; magento layered navigation cache error&quot; rel=&quot;nofollow&quot;&gt; http://jksite.com/blog/2009/07/magento-layered-navigation-cache-error&lt;/a&gt;
Many THX Chris!</description> <content:encoded><![CDATA[<p>Hi, my friend ask my to repair his shop because he got problems with his layered navigation in Magento store.<br
/> I was searching over the internet and I found one FIX created by Chris McKee. THX Chris<br
/> His script was perfect but some automatic functions were missing, therefore I’ve created my own script.<br
/> Check it here: <a
href="http://jksite.com/blog/2009/07/magento-layered-navigation-cache-error/" title=" magento layered navigation cache error" rel="nofollow"> </a><a
href="http://jksite.com/blog/2009/07/magento-layered-navigation-cache-error" rel="nofollow">http://jksite.com/blog/2009/07/magento-layered-navigation-cache-error</a><br
/> Many THX Chris!</p> ]]></content:encoded> </item> <item><title>By: spatter</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-120</link> <dc:creator>spatter</dc:creator> <pubDate>Sun, 05 Jul 2009 16:38:36 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-120</guid> <description>I&#039;ve had your blog in my bookmarks for a couple of days now and just wanted to say that I really love your articles! ^^</description> <content:encoded><![CDATA[<p>I've had your blog in my bookmarks for a couple of days now and just wanted to say that I really love your articles! ^^</p> ]]></content:encoded> </item> <item><title>By: JK</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-109</link> <dc:creator>JK</dc:creator> <pubDate>Thu, 25 Jun 2009 12:24:35 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-109</guid> <description>Hello Chris, Perfect !! It is working for my shop (id 3) where I have 117 products, but if I do it for a shop with 1077 products (id 5) it is not working everytime some error,I was thinking that this file should be able to make it one by one... without execution time is exceeded, if I select ony 1 as $hm, not working, max execution time 150 s exceeded...
Could you make any chnages to the script to make it working ?
THANKS</description> <content:encoded><![CDATA[<p>Hello Chris, Perfect !! It is working for my shop (id 3) where I have 117 products, but if I do it for a shop with 1077 products (id 5) it is not working everytime some error,I was thinking that this file should be able to make it one by one... without execution time is exceeded, if I select ony 1 as $hm, not working, max execution time 150 s exceeded...<br
/> Could you make any chnages to the script to make it working ?<br
/> THANKS</p> ]]></content:encoded> </item> <item><title>By: Chris McKee</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-81</link> <dc:creator>Chris McKee</dc:creator> <pubDate>Mon, 25 May 2009 22:28:23 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-81</guid> <description>@Scott: Generally, yes you &lt;strong&gt;should&lt;/strong&gt; use local folder with a copy of the structure + the file you wish to override to overload that chunk of code; In cases such as this where I&#039;m basically commenting something out to fix an issue I prefer to leave the files as is and change the core.As I use SVN + Patch I can see when alterations have been made to this file and if I see that its beneficial to the file I can accept their changes over mine and &quot;in pigs can fly&quot; world stop using my hack to handle the layered nav. If I was using the Local file I would have to make sure I was copying my files across every time there was another change to the file.The Inchoo article makes sense for new users but if your comfortable enough to manage your work in SVN, using the downloader so you can upgrade automatically is a lot like giving away any control you have.</description> <content:encoded><![CDATA[<p>@Scott: Generally, yes you <strong>should</strong> use local folder with a copy of the structure + the file you wish to override to overload that chunk of code; In cases such as this where I'm basically commenting something out to fix an issue I prefer to leave the files as is and change the core.</p><p>As I use SVN + Patch I can see when alterations have been made to this file and if I see that its beneficial to the file I can accept their changes over mine and "in pigs can fly" world stop using my hack to handle the layered nav. If I was using the Local file I would have to make sure I was copying my files across every time there was another change to the file.</p><p>The Inchoo article makes sense for new users but if your comfortable enough to manage your work in SVN, using the downloader so you can upgrade automatically is a lot like giving away any control you have.</p> ]]></content:encoded> </item> <item><title>By: Scott</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-80</link> <dc:creator>Scott</dc:creator> <pubDate>Sun, 24 May 2009 18:50:31 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-80</guid> <description>One other note worthy mention is never comment out core code. Put an exact copy of that file into the same folder structure under local then when you upgrade it wont overwrite your hard work. Read this post if you dont believe me.
http://preview.tinyurl.com/pfl8el</description> <content:encoded><![CDATA[<p>One other note worthy mention is never comment out core code. Put an exact copy of that file into the same folder structure under local then when you upgrade it wont overwrite your hard work. Read this post if you dont believe me.<br
/> <a
href="http://preview.tinyurl.com/pfl8el" rel="nofollow">http://preview.tinyurl.com/pfl8el</a></p> ]]></content:encoded> </item> <item><title>By: Scott</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-79</link> <dc:creator>Scott</dc:creator> <pubDate>Sun, 24 May 2009 18:47:37 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-79</guid> <description>@Dennis, also look into servint, they have been our host through our magento install and have happily made any changes and quickly that we needed for magento. IE: Innodb tables, php soap etc.</description> <content:encoded><![CDATA[<p>@Dennis, also look into servint, they have been our host through our magento install and have happily made any changes and quickly that we needed for magento. IE: Innodb tables, php soap etc.</p> ]]></content:encoded> </item> <item><title>By: Chris McKee</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-76</link> <dc:creator>Chris McKee</dc:creator> <pubDate>Fri, 15 May 2009 19:06:21 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-76</guid> <description>@Dennis:
Ideally you need a decent host (preferably one that actually says its a magento commerce host; as it means they&#039;ve tested it) and in an ideal world MOD-PHP (Mod-apache-php) rather then PHP-CGI (FASTCGI) Which is usually the choice on shared hosts.So I&#039;d say either united hosting who are the only big shared hosting providers that have proven to be good. Or a dedicated server with someone like Aplus.net or Tagadab; in which case you&#039;ll have to look at getting your server scanned for PCI Compliance (UK) or the US Equivalent.</description> <content:encoded><![CDATA[<p>@Dennis:<br
/> Ideally you need a decent host (preferably one that actually says its a magento commerce host; as it means they've tested it) and in an ideal world MOD-PHP (Mod-apache-php) rather then PHP-CGI (FASTCGI) Which is usually the choice on shared hosts.</p><p>So I'd say either united hosting who are the only big shared hosting providers that have proven to be good. Or a dedicated server with someone like Aplus.net or Tagadab; in which case you'll have to look at getting your server scanned for PCI Compliance (UK) or the US Equivalent.</p> ]]></content:encoded> </item> <item><title>By: Dennis Crawford</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-75</link> <dc:creator>Dennis Crawford</dc:creator> <pubDate>Fri, 15 May 2009 16:26:30 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-75</guid> <description>Chris,Thanks for the help you have given me, it appears I have bigger issues than worrying about this right now.  Obviously GoDaddy is not the correct host to use for Magento.  I am looking into a couple of other providers with SimpleHelix being the forerunner.Dennis</description> <content:encoded><![CDATA[<p>Chris,</p><p>Thanks for the help you have given me, it appears I have bigger issues than worrying about this right now.  Obviously GoDaddy is not the correct host to use for Magento.  I am looking into a couple of other providers with SimpleHelix being the forerunner.</p><p>Dennis</p> ]]></content:encoded> </item> <item><title>By: Dennis Crawford</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-70</link> <dc:creator>Dennis Crawford</dc:creator> <pubDate>Mon, 11 May 2009 09:34:49 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-70</guid> <description>Chris,I have followed your directions to a &quot;T&quot;.  File permissions, downloading, creating an empty CNT file.  If I try to run this from putty using php -f cm_cachephp.php I still get the same error regarding the store ID.
I have checked in ADMIN and it is in fact 1.  When I run this inside Firefox this is what I get; this output is generally the same but will vary depending on how many products I set to process.  The page stops there and a refresh will result in the same message as below but continue with the left number sequence.  I have set the products to 265 which is what we currently have.  If I continue refreshing the page it will keep going and going way past my  current product count.#1#CURRENT MEMRY USAGE = 4951504;
#2#CURRENT MEMRY USAGE = 4951704;
#3#CURRENT MEMRY USAGE = 4951720;
#4#CURRENT MEMRY USAGE = 4951720;
#5#CURRENT MEMRY USAGE = 4951720;
#6#CURRENT MEMRY USAGE = 4951720;</description> <content:encoded><![CDATA[<p>Chris,</p><p>I have followed your directions to a "T".  File permissions, downloading, creating an empty CNT file.  If I try to run this from putty using php -f cm_cachephp.php I still get the same error regarding the store ID.<br
/> I have checked in ADMIN and it is in fact 1.  When I run this inside Firefox this is what I get; this output is generally the same but will vary depending on how many products I set to process.  The page stops there and a refresh will result in the same message as below but continue with the left number sequence.  I have set the products to 265 which is what we currently have.  If I continue refreshing the page it will keep going and going way past my  current product count.</p><p>#1#CURRENT MEMRY USAGE = 4951504;<br
/> #2#CURRENT MEMRY USAGE = 4951704;<br
/> #3#CURRENT MEMRY USAGE = 4951720;<br
/> #4#CURRENT MEMRY USAGE = 4951720;<br
/> #5#CURRENT MEMRY USAGE = 4951720;<br
/> #6#CURRENT MEMRY USAGE = 4951720;</p> ]]></content:encoded> </item> <item><title>By: Chris McKee</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-69</link> <dc:creator>Chris McKee</dc:creator> <pubDate>Sun, 10 May 2009 23:15:12 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-69</guid> <description>@Dennis Crawford Line 16 is simply setting a variable; did you download the file or copy-paste the file which would only make sense if the contents of the file wasn&#039;t right.
&lt;pre lang=&quot;php&quot;&gt;$store = Mage::app()-&gt;getStore(&#039;1&#039;);&lt;/pre&gt;
Make sure that get store is getting the right store number; it should be 1 if you only have one store.
Make sure the script is set to CHMOD 755 and if your systems a bit wierd (as a few hosts have proven to be) create a file called CNT and set that to 777.</description> <content:encoded><![CDATA[<p>@Dennis Crawford Line 16 is simply setting a variable; did you download the file or copy-paste the file which would only make sense if the contents of the file wasn't right.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$store</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStore</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Make sure that get store is getting the right store number; it should be 1 if you only have one store.<br
/> Make sure the script is set to CHMOD 755 and if your systems a bit wierd (as a few hosts have proven to be) create a file called CNT and set that to 777.</p> ]]></content:encoded> </item> <item><title>By: Dennis Crawford</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-68</link> <dc:creator>Dennis Crawford</dc:creator> <pubDate>Sun, 10 May 2009 22:04:13 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-68</guid> <description>I did now I am getting the same error in  different line;
&lt;pre class=&quot;bash&quot;&gt;
syntax error, unexpected T_OBJECT_OPERATOR in
/home/content/c/e/s/cesavings/html/store/cm_cachephp.php on line 16
&lt;/pre&gt;Thanks for the help
Dennis</description> <content:encoded><![CDATA[<p>I did now I am getting the same error in  different line;</p><pre class="bash">
syntax error, unexpected T_OBJECT_OPERATOR in
/home/content/c/e/s/cesavings/html/store/cm_cachephp.php on line 16
</pre><p>Thanks for the help<br
/> Dennis</p> ]]></content:encoded> </item> <item><title>By: Chris McKee</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-65</link> <dc:creator>Chris McKee</dc:creator> <pubDate>Thu, 07 May 2009 21:06:35 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-65</guid> <description>@Dennis Crawford  use the updated script &lt;a href=&quot;http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/&quot; rel=&quot;nofollow&quot;&gt;http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/&lt;/a&gt;</description> <content:encoded><![CDATA[<p>@Dennis Crawford  use the updated script <a
href="http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/" rel="nofollow">http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/</a></p> ]]></content:encoded> </item> <item><title>By: Dennis Crawford</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-61</link> <dc:creator>Dennis Crawford</dc:creator> <pubDate>Thu, 07 May 2009 11:57:39 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-61</guid> <description>I am getting Parse Error-Syntax Error, unexpected T_OBJECT_OPERATOR in /url/cm_cache.php line 19 </description> <content:encoded><![CDATA[<p>I am getting Parse Error-Syntax Error, unexpected T_OBJECT_OPERATOR in /url/cm_cache.php line 19</p> ]]></content:encoded> </item> <item><title>By: Chris McKee</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-5</link> <dc:creator>Chris McKee</dc:creator> <pubDate>Thu, 19 Mar 2009 03:16:56 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-5</guid> <description>Hi Thad, &lt;br /&gt;
1. The memory consumption rises like nothing else; this is partly because of the complexity of the query being run and partly because Magento is bloated. As you&#039;ll note I have added the post to the bug log.
&lt;br /&gt;
2. Feel free; I&#039;m delaying the script to provide a breather between the pile of processes Mage runs through zend to create the database entries. If you watch the database tables, catalogindex_eav _minimumprice and _price you&#039;ll see that it adds thousands of records.
&lt;br /&gt;
3. Ignore that, The fix it provides is just circumstantial. Its better to just go into the admin and turn it off under layered navigation cache. I&#039;ll change the post to reflect the changes I&#039;ve made.
&lt;br /&gt;
4. It&#039;s easier to turn it off in the admin... Magento doesn&#039;t seem to check... granted working with magento codes a lot like finding a needle in a haystack.&gt;&gt; &lt;strong&gt;&lt;a href=&quot;http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/&quot; rel=&quot;nofollow&quot;&gt;http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/&lt;/a&gt;&lt;/strong&gt;ThanksChris</description> <content:encoded><![CDATA[<p>Hi Thad, <br
/> 1. The memory consumption rises like nothing else; this is partly because of the complexity of the query being run and partly because Magento is bloated. As you'll note I have added the post to the bug log.<br
/> <br
/> 2. Feel free; I'm delaying the script to provide a breather between the pile of processes Mage runs through zend to create the database entries. If you watch the database tables, catalogindex_eav _minimumprice and _price you'll see that it adds thousands of records.<br
/> <br
/> 3. Ignore that, The fix it provides is just circumstantial. Its better to just go into the admin and turn it off under layered navigation cache. I'll change the post to reflect the changes I've made.<br
/> <br
/> 4. It's easier to turn it off in the admin... Magento doesn't seem to check... granted working with magento codes a lot like finding a needle in a haystack.</p><p>>> <strong><a
href="http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/" rel="nofollow">http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error-part-deux/</a></strong></p><p>Thanks</p><p>Chris</p> ]]></content:encoded> </item> <item><title>By: Thad</title><link>http://chrismckee.co.uk/magento-commerce-layered-navigation-cache-error/comment-page-1/#comment-4</link> <dc:creator>Thad</dc:creator> <pubDate>Wed, 18 Mar 2009 18:15:06 +0000</pubDate> <guid
isPermaLink="false">http://chrismckee.co.uk/?p=11#comment-4</guid> <description>I have a few questions:1.  The memory consumption of the script is really high.  I&#039;m on less than 500 products and it&#039;s over 140MB.2.  Also I&#039;m wondering why the sleep() function is there.  Without it it doesn&#039;t seem to work and the memory consumption never changes.  Just wondering.  Could that be adjusted to half a second with usleep()?3.  And if you could explain how the indexer is disabled by what you did.  That would help.4.  One more thing.  You can use custom code to disable that indexer by rewriting it in local.xml and creating your own model.  Although I can&#039;t seem to get this to work right now.  I will tell you when I figure it out.I hope this solution works for me, I&#039;ve been working on this for a while now.</description> <content:encoded><![CDATA[<p>I have a few questions:</p><p>1.  The memory consumption of the script is really high.  I'm on less than 500 products and it's over 140MB.</p><p>2.  Also I'm wondering why the sleep() function is there.  Without it it doesn't seem to work and the memory consumption never changes.  Just wondering.  Could that be adjusted to half a second with usleep()?</p><p>3.  And if you could explain how the indexer is disabled by what you did.  That would help.</p><p>4.  One more thing.  You can use custom code to disable that indexer by rewriting it in local.xml and creating your own model.  Although I can't seem to get this to work right now.  I will tell you when I figure it out.</p><p>I hope this solution works for me, I've been working on this for a while now.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using apc
Database Caching 12/33 queries in 0.195 seconds using apc

Served from: chrismckee.co.uk @ 2010-09-07 14:04:36 -->