verbalkent Posted December 3, 2004 Posted December 3, 2004 Hi again all, I have been testing my advanced search, and found that when the results come back, and i click the products link, the url to the catalog page has extra tags in it, for example, when i do a advanced search for say.. DVD, i get all links to products with dvd in the title or description, but the link produced for the product info page is as follows "www.site.yada.com/product_info.php/manufacturers_id/products_id/125" when it should be "www.site.yada.com/product_info.php/products_id/125" it is adding an extra "manufacturers_id" string to the link, and it causes a "Product not found" page... is there any way I can fix this? you can test the advanced search your self at Advanced search thx
verbalkent Posted December 3, 2004 Author Posted December 3, 2004 I have been looking thru the code and was wondering why it is looking for a manufacturer_id, I dont know, will I have to comment out the adv search all together? (BTW I have SEO mods added to my site, in case this may be the problem)
verbalkent Posted December 4, 2004 Author Posted December 4, 2004 If anyone else has had this problem and found a fix, please inform me.. thx
Jpsy Posted January 12, 2005 Posted January 12, 2005 @verbalkent: This is a bug in the advanced search system of osC which only occasionally shows up, as it seems to be also dependent on some system parameter (PHP version, Apache version, Linux/Win OS). On some systems the doubble slashes in the generated links dont harm, on others these links only get you to the "Product not found"-page. To cure the bug go to advanced_search_result.php , search for the block ... } else { $dfrom = ''; $dto = ''; $pfrom = ''; $pto = ''; $keywords = ''; ... and insert the following lines behind it: if ((isset($HTTP_GET_VARS['manufacturers_id'])) && ($HTTP_GET_VARS['manufacturers_id']=='')){ unset($HTTP_GET_VARS['manufacturers_id']); } Maybe you could post your PHP version, Apache version and OS because I am interested to isolate the cause of this problem. It does not appear on PHP4.3.8/Apache1.3.x/Linux but it definitely shows up on PHP 4.3.10/Apache2.x/Windows. Jpsy DigiLog multimedia, Saarbr?cken, Germany
Recommended Posts
Archived
This topic is now archived and is closed to further replies.