Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When I load this URL on my WP e-ecommerce site, it 301 redirects to page 4 which does not exist, and appears as a page with empty contents:

Go to this URL: http://comfortboost.co.uk/new/?wpsc_product_category=bath-hoists And there will be a 301 redirect to: http://comfortboost.co.uk/new/?page_id=4&wpsc_product_category=bath-hoists Which gives a 404 Not found error.

It should display the first page of the category instead.

Why does this happen? I can provide admin login details if that will help.

This is a fresh installation with barely any changes, but with 4000 products imported in from a wordpress format XML file.

Other categories work just fine and return some content.

share|improve this question
    
This is indeed weird behavior. There are products in the 'bath hoists' category, I assume? If you have no redirects set in .htaccess and no redirection plugin installed either, this can only be a wordpress redirect. Has there ever been a page with a slug called bath-hoists? Search the wp_postmeta table for a 'bath-hoists' meta_value. The meta_key (same table) for automatic wordpress redirects is _wp_old_slug. My best guess. Too "guessy" to make this an answer, though. Should this be it, I'll create an answer from it later. –  Johannes Pille Nov 14 '11 at 0:10
    
Thanks Johannes, I worked around it in the end, see my answer below. –  Will Sheppard Nov 14 '11 at 10:33
    
Madness... Congrats on figuring it out! –  Johannes Pille Nov 14 '11 at 10:57
add comment

1 Answer

up vote 0 down vote accepted

I really hate the wp-e-commerce plugin.

It turns out that the only products in that category were 'pending', i.e. not published yet. Even if they were moved to trash, and 'hide_emtpy => 1' was used on the categories list, the error still occurred.

Only when the products were completely emptied out of the trash did the category disappear from the menu, and the problem was resolved that way.

The reason it forwarded to page 4 is still unknown.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.