<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #9960 / Not Removing Product from category</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=4727</link>
        <description><![CDATA[<strong>Posted:</strong> 2009-01-07 06:21:01<br/><strong>Category:</strong> Categories<br/><strong>Version:</strong> 1.2.0.1<br/><strong>Priority:</strong> urgent<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/22993/">andreladocruz</a></strong><br/><br/>Sirs,<br />
<br />
When you remove on product from a category the date is deleted from catalog_category_product but not from catalog_category_product_index.<br />
<br />
with that products are still showing in front end.<br />
<br />
regards,<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#1 / Comment by <a href="http://www.magentocommerce.com/boards/member/5805/">mphillips</a></em><br/><br/>I am also experiencing this issue.]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#2 / Comment by <a href="http://www.magentocommerce.com/boards/member/91101/">tbertz</a></em><br/><br/>+1 for that, this is pretty serious, you cant manage any products in any categories. This isn't something I would expect to escape testing for a stable release. Poor.]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#3 / Comment by <a href="http://www.magentocommerce.com/boards/member/18077/">vinai-kung</a></em><br/><br/>As a workaround: removing products from the manage categories page works.]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#4 / Comment by <a href="http://www.magentocommerce.com/boards/member/42033/">ddeppner</a></em><br/><br/>I've got the same problem.<br />
<br />
The problem is in app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product.php.<br />
<br />
Function refreshIndex() has the correct code to remove values from the catalog_category_product_index table and re-add only the correct values.  However, this code is commented out:<br />
<br />
//        $this-&gt;_getWriteAdapter()-&gt;delete(<br />
//            $this-&gt;getTable('catalog/category_product_index'),<br />
//            'product_id='.$product-&gt;getId()<br />
//        );<br />
<br />
Uncommenting that code seems to fix the problem--when products are saved from that point on, old values are removed before adding valid values to the index.<br />
<br />
However, there is still the problem of there being hundreds of incorrect entries in that table.<br />
<br />
The quickest way to sanitize the existing database without needing to write custom code (but you must do this after uncommenting the code listed above) is to export your product database and then reimport it.  I just created an export profile for sku and category_ids and then reimported it, resulting in the refreshIndex() function being called on every SKU.]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#5 / Comment by <a href="http://www.magentocommerce.com/boards/member/44514/">turbo1</a></em><br/><br/>Thanks for screwing up yet another upgrade Varien. I said it before, and I'll say it again. 1.2.0.x is a steaming pile of ****]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#6 / Comment by <a href="http://www.magentocommerce.com/boards/member/83511/">magicker</a></em><br/><br/>thanks ddeppner<br />
<br />
you saved my life]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#7 / Comment by <a href="http://www.magentocommerce.com/boards/member/88220/">sumityadav</a></em><br/><br/>Yes, I also faced this problem today. Took a lot of time to debug:<br />
<br />
What i was doing:<br />
1) Moving the code from one category to another.<br />
    1.1) From the product edit mode.<br />
    1.2) From the category edit mode and unchecking the &quot;Category Products&quot;<br />
<br />
Then Tried to disable the product and the product will still show up in frontend.<br />
<br />
2) Added log to debug which query was the problem. Found the query below:<br />
[code]<br />
SELECT *<br />
FROM `catalog_product_entity` AS `e`<br />
INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id = e.entity_id<br />
AND cat_index.store_id = '1'<br />
AND cat_index.category_id = '5'<br />
AND cat_index.is_parent =1<br />
LEFT JOIN `catalogrule_product_price` AS `_price_rule` ON _price_rule.product_id = e.entity_id<br />
AND _price_rule.rule_date = '2009-01-21'<br />
AND _price_rule.website_id = '1'<br />
AND _price_rule.customer_group_id = '0'<br />
WHERE (<br />
cat_index.visibility<br />
IN ( 2, 4 )<br />
)<br />
LIMIT 9 <br />
[/code]<br />
<br />
Manually cleared the `catalog_category_product_index` table. Everything worked fine after that. I will test this further.<br />
<br />
QUESTION:<br />
Is there any RULE that checks for the ACTIVE/ENABLED products ?]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#8 / Comment by <a href="http://www.magentocommerce.com/boards/member/63625/">elfling</a></em><br/><br/>blargle, what a pain in the arse]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#9 / Comment by Magento Team</em><br/><br/>Hello andreladocruz,<br />
<br />
This issue was fixed. The changes will be available in the next bugfix release.<br />
<br />
Thank you.]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#10 / Comment by <a href="http://www.magentocommerce.com/boards/member/50102/">keithabt</a></em><br/><br/>I have tried all of these solutions with no success. Im using version 1.1.6.<br />
<br />
exporting the product db and then importing it seems to fix the problem until I re-save my FIRST category in the 'Manage Category' section in the Admin. If I have any other category selected, then click save, everything is fine. Its ONLY the first category re-save that adds products to this first category in error.<br />
<br />
To fix that, I have to go to Manage Products and select the products category and re-save. It then removes the product from the incorrect category (In my case the first category, which is the only category that my products seem to be added to in error).<br />
<br />
Im puzzled and a very disappointed that something this major has not been fixed!<br />
<br />
Any help? Do I have to upgrade to fix this?<br />
<br />
thanks]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#11 / Comment by <a href="http://www.magentocommerce.com/boards/member/25815/">gunnar</a></em><br/><br/>I have fixed my Problem with the following SQL Statement:<br />
<br />
DELETE c FROM catalog_category_product_index c LEFT OUTER JOIN catalog_category_product c1 ON c1.category_id=c.category_id AND <br />
c1.product_id=c.product_id WHERE c1.product_id  IS NULL<br />
<br />
This Statement looks for entries in the catalog_category_product_index table, which aren't linked to an entry in the catalog_category_product Table. Thoes entries are the bad guys, which are destroying the order in your layered navigation.<br />
<br />
works fine in my production environment.<br />
bye, gunter]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#12 / Comment by <a href="http://www.magentocommerce.com/boards/member/87411/">hank57</a></em><br/><br/>gunnar, you made my day!<br />
Works perfectly, thanks a lot!]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#13 / Comment by <a href="http://www.magentocommerce.com/boards/member/49923/">maheshfarswan</a></em><br/><br/>I've got the same problem with  ver 1.2.0<br />
so i Uprate to the newer version  ver  1.2.0.3.<br />
and still facing same problem..]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#14 / Comment by <a href="http://www.magentocommerce.com/boards/member/22303/">logosol</a></em><br/><br/>THANK YOU GUNNAR AND DDEPPNER! Worked for me on 1.2.0.2]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#15 / Comment by <a href="http://www.magentocommerce.com/boards/member/67210/">Joel Green</a></em><br/><br/>These PROBLEMS STILL exist...If I change anything on a product in the back end the front end DOES NOT reflect those changes...yeah and I should spend 8k on an enterprise version...LMAO]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#16 / Comment by <a href="http://www.magentocommerce.com/boards/member/36270/">henriv</a></em><br/><br/>Do we know which version this was fixed? I have 1.2.1.2 and still has this issue.]]></description>
    </item>
            <item>
        <title>RE: Not Removing Product from category</title>
        <description><![CDATA[<em>#17 / Comment by <a href="http://www.magentocommerce.com/boards/member/244596/">Andy Morrill</a></em><br/><br/>I had this issue in magento 1.3.2.4 -- gunnar's fix seems to have fixed the problem -- varien -- please please fix problems like this when they are presented -- this is a HUGE problem.]]></description>
    </item>
        </channel>
</rss>