Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search box issues...


Guest

Recommended Posts

Posted

Hi << go easy on the virgin poster ;)

 

Everything is fine whilst generally navigating my dummy site UNITL

you try a search, then all the header description values get all screwy.

 

http://djpilch.co.uk/shop/default.php

 

Any remedies or info on this would be of gr8 help !!

 

Cheers

 

pilch

Posted

Check your catalogincludeslanguagesenglishadvanced_search_result.php

 

I'll bet that you have

 define('NAVBAR_TITLE1', '******');

****** missing for each of those terms that show up in your search results.

 

hth

Posted

My entire advanced_search_result.php from the path you mentioned looks like this

 

<?php

/*

 $Id: advanced_search_result.php,v 1.10 2002/11/19 01:48:08 dgw_ Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



define('NAVBAR_TITLE1', 'Search');

define('NAVBAR_TITLE2', 'Search Results');

define('HEADING_TITLE', 'Products meeting the search criteria');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There is no product that matches the search criteria.');

define('TEXT_NO_PRODUCTS2', 'There is no product that matches the search criteria.');

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_NOW', '' now');

?>

 

I hope this is of some help

 

pilch

Posted

Do you have

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH_RESULT);

near the top of catalog/advanced_search_results.php (after

  require('includes/application_top.php');

)?

Posted

advanced_search_result.php within that remote path =

 

  require('includes/application_top.php');



 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);

Posted

This is something else I've jsut noted about the Search Function.

 

When you click "Advanced Search" you get

 

Fatal error: Call to a member function on a non-object in /home/djpilch/public_html/shop/advanced_search.php on line 143

Posted
advanced_search_result.php within that remote path =

 

  require('includes/application_top.php');



 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);

 

should be FILENAME_ADVANCED_SEARCH_RESULT :!:

Posted

I've changed it but it still yields the same errors :(

 

pilch

Posted

Next, check to see if FILENAME_ADVANCED_SEARCH_RESULTS is defined in application_top.php.

Posted
Next, check to see if FILENAME_ADVANCED_SEARCH_RESULTS is defined in application_top.php.

 

I've checked the application_top.php within the /includes folder and that php wasn't defined.

 

So I added it in

 

// Define advanced search thing

define('FILENAME_ADVANCED_SEARCH_RESULTS ', 'advanced_search_result.php');

 

tested and........... it still doesn't work.

Posted

// Define advanced search thing

define('FILENAME_ADVANCED_SEARCH_RESULTS ', 'advanced_search_result.php');

 

Sorry, that should have been FILENAME_ADVANCED_SEARCH_RESULT, i.e. no S on the end :oops:

Posted

Fatal errors are almost always a misplaced bracket or such. It'll be missing somewhere before that line. Narrows it down some :roll:

 

 

The navbar may look odd, but it gives you a clue to the problem. In advanced_search_result change NAVBAR_TITLE1 to NAVBAR_TITLE_1, NAVBAR_TITLE2 TO NAVBAR_TITLE_2 & HEADING_TITLE to HEADING_TITLE_2.

Posted

Fatal errors are almost always a misplaced bracket or such. It'll be missing somewhere before that line. Narrows it down some :roll:

 

 

The navbar may look odd, but it gives you a clue to the problem. In advanced_search_result change NAVBAR_TITLE1 to NAVBAR_TITLE_1, NAVBAR_TITLE2 TO NAVBAR_TITLE_2 & HEADING_TITLE to HEADING_TITLE_2.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...