Guest Posted July 29, 2003 Posted July 29, 2003 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
Guest Posted July 29, 2003 Posted July 29, 2003 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
Guest Posted July 29, 2003 Posted July 29, 2003 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
Guest Posted July 29, 2003 Posted July 29, 2003 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'); )?
Guest Posted July 30, 2003 Posted July 30, 2003 advanced_search_result.php within that remote path = require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);
Guest Posted July 30, 2003 Posted July 30, 2003 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
Guest Posted July 30, 2003 Posted July 30, 2003 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 :!:
Guest Posted July 30, 2003 Posted July 30, 2003 I've changed it but it still yields the same errors :( pilch
Guest Posted July 30, 2003 Posted July 30, 2003 Next, check to see if FILENAME_ADVANCED_SEARCH_RESULTS is defined in application_top.php.
Guest Posted August 1, 2003 Posted August 1, 2003 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.
Guest Posted August 1, 2003 Posted August 1, 2003 // 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:
Guest Posted August 1, 2003 Posted August 1, 2003 ok amended now BUT the Navbar titles are all a little screwy - take a look http://djpilch.co.uk/shop/advanced_search_...99&keywords=mix Also http://djpilch.co.uk/shop/advanced_search.php gives me Fatal error: Call to a member function on a non-object in /home/djpilch/public_html/shop/advanced_search.php on line 143 code from that line of the advanced_search.php <?php if ($messageStack->size('search') > 0) { ?>
Guest Posted August 1, 2003 Posted August 1, 2003 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.
Guest Posted August 1, 2003 Posted August 1, 2003 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.