PDA

View Full Version : Product Fetch Handling


Confuscius
28-04-07, 00:18
Hi Amo

I am now getting a lot of errors on my cpanel logs relating to invalid arguments being supplied for a foreach statement in includes/elements/search_box.php - I have tracked some back to the time of the error and they relate to Google spider visits. An example for you, run on shopwindow domain:

http://www.shopwindow.com/product.php?p=11188145&c=240

Interesting result but the php error will be on the log.

My guess is that the product used to exist and Google found it. It is now not part of the dataset and Google is trying to re-index a product that no longer exists on the dataset. Clearly there needs to be a fix for this issue! eg if no product found then echo no product found or something similar!

I would appreciate if someone else could confirm similar errors from their cpanel error log.

Paul

Andy
29-04-07, 22:38
I don't have cPanel on my host, but this is a fear I had.
Obviously, as each product has a productID, and that productID is in the URL, then once that procuct disappears the URL will be useless.

Im suprised anything returned at all. It would almost be better if it returned a 404 error, that way we could handle it ourselves.

I will be very interested to know what happens with this problem.