You are here:  » 404 error when click Search by [Merchant, Category or Brand]


404 error when click Search by [Merchant, Category or Brand]

Submitted by jjhill on Mon, 2013-09-16 16:21 in

Hi David,

I'm a total web dev, including PHP, newbie, but your documentation is so good that I was hoping to be able to get up and running on my own. However, I seem to have already messed something up.

I am following the instructions at http://www.pricetapestry.com/node/133 to register and import three sample datafeeds prior to installing the WordPress plugin as described here http://www.pricetapestry.org/quick-start-wordpress.

I registered all three feeds, but ran into trouble at steps 7 and 8 of http://www.pricetapestry.com/node/133. When I trial-imported the first feed, it appeared from the status box at /admin/ that only 2, rather than 10, products of a total of 99 were trial imported, and when I navigated to bit.ly/14VYeWd and clicked "Merchant," "Category," or "Brand," I got a 404 error.

Perhaps I should have stopped there, but instead I went ahead and did a full import of the first feed to see if the product count would change from 2 to 99, which it did. So, encouraged, I returned to the second part of step 4 of http://www.pricetapestry.org/quick-start-wordpress ("After importing your feed browse to www.example.com/pt/ and verify that Price Tapestry is working correctly by following the links or searching for products"), but I continue to get a 404 error when I click "Merchant," "Category," or "Brand" at bit.ly/14VYeWd. I tried entering product names in the search bar and pressing search, but that yields a 404 error, too.

I rooted around in the forums and started wondering if the problem might be related to $config_useRewrite. Currently I have:

.htaccess: RewriteBase /
config.php: $config_baseHREF = "/pt/";
config.php: $config_useRewrite = TRUE;

It looks like (per http://www.pricetapestry.com/node/3808) the first two values are meant to match, but I tried changing:

config.php: $config_baseHREF = "/pt/";

to

config.php: $config_baseHREF = "/";

and it didn't solve the problem so I changed it back.

My WordPress installation, if it matters, is at bit.ly/19XzYkA. I haven't installed the Price Tapestry WordPress plugin yet.

Can you provide any guidance? Thank you and very sorry to be a bother!

Best regards,

JJ

Submitted by support on Mon, 2013-09-16 16:32

Hello JJ, and welcome to the forum!

If you're planning to use the WordPress plugin, there's not really any need to use search engine friendly URLs within the /pt/ installation, since it is used for your own feed administration purposes only, but for completeness, here is how you would need to configure your files to remove the 404 errors.

With Price Tapestry installed in:

/pt/

$config_baseHREF at line 6 of config.php should be:

  $config_baseHREF = "/pt/";

And line 5 of your .htaccess (in /pt/ folder) should be:

RewriteBase /pt/

If those tally, the merchant / category / brand etc. links should then work fine...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com