WordPress eCommerce Plugin Permalinks show 404 error

October 21, 2008

While working with WordPress 2.6 and the WP-ecommerce plugin, I came across a situation where my permalinks were not displaying correctly. When I went into ecommerce settings and Updated the Page URLs, it showed the correct URL, but the page was showing up as a 404 error.  When I clicked to “Fix Product Group Permalinks” it changed the permalink from ’store’ to 115-revision-2. Well, I knew at that point that it was the new revision feature in WordPress 2.6 that was causing the problem.

The first thing I did was edit my wp-config.php file and include the following code:

define(’WP_POST_REVISIONS’, false);

This turns off the revisions in WordPress 2.6 and was based on a suggestion from My Digital Life. There’s also a WordPress plugin that will do this for you so you don’t have to edit the config file: WordPress No Revisions Plugin.

That fixed part of the problem.  Although my revisions were turned off, effectively preventing more revisions from being created, I still had a ton of revisions clogging up my database and breaking my permalinks.  To fix this, I installed the WordPress Revision Removal Plugin.  It’s a great little plugin that does exactly what it was intended to do.  It helped me remove the revisions from my WordPress database, and when I clicked on the WP-ecommerce plugin option to “Fix Product Group Permalinks,” it worked, and my pages no longer displayed a 404 error.

I hope that helps for anyone having a similar problem.  Peace!