Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default search function hanging

    I'm having a problem with the search and advanced search function.
    It seems that if i put in a word that is not in the product description or meta-tags the search just hangs instead of returning no results.
    This problem seems to have started after I added meta-tag data to the products. I'm trying to go live with the website but this is a major problem. Any suggestions would be greatly appreciated.

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: search function hanging

    Have a link?

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: search function hanging


  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: search function hanging

    If by "hanging" you mean you're getting a blank page, use the utility mentioned in step 2a of this FAQ article about blank pages: https://www.zen-cart.com/tutorials/index.php?article=82
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: search function hanging

    Probably the issue is here

    /public_html/includes/languages/english/advanced_search.php

    or

    /public_html/includes/languages/english/advanced_search_result.php

    Look for an empty line break after the last ?>

    and eliminate the extra line making the ?> the final line entry.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #6
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: search function hanging

    Hi thank you very much for your time. I checked both files they seem to be alright. I also installed the debug file and it is giving me this error :
    [04-Feb-2009 00:30:59] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/shortexp/public_html/shop/includes/languages/english/classic/header.php:2) in /home/shortexp/public_html/shop/includes/init_includes/init_templates.php on line 78
    [04-Feb-2009 00:31:00] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/shortexp/public_html/shop/includes/languages/english/classic/header.php:2) in /home/shortexp/public_html/shop/includes/functions/functions_general.php on line 44


    There seems to be a problem with the header I have check it several times but I'm not sure what to do at this point?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: search function hanging

    Quote Originally Posted by dfludd View Post
    PHP Warning: Cannot modify header information - headers already sent by (output started at /home/shortexp/public_html/shop/includes/languages/english/classic/header.php:2) in ...
    So ... what exactly is on line 2 of that particular file on your server? Or better yet, what's the entire file contents? Paste the contents here, using [ code ] and [ /code ] tags around it.

    Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: search function hanging

    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: header.php 2848 2006-01-14 09:47:08Z wilt $
     */
    
    // header text in includes/header.php
    define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
    define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
    define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
    define('HEADER_TITLE_CHECKOUT', 'Checkout');
    define('HEADER_TITLE_TOP', 'Top');
    define('HEADER_TITLE_CATALOG', 'Home');
    define('HEADER_TITLE_LOGOFF', 'Log Out');
    define('HEADER_TITLE_LOGIN', 'Log In');
    
    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Shortexposure.com');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');
    
    // header Search Button/Box Search Button
    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');
    ?>
    Thank you for your help

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: search function hanging

    Well, the content that you posted looks fine. Are you sure that that's what's on the *server*?
    What happens if you delete that file from the server and reload it using a copy of the master one from the folder one level up from there?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Apr 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: search function hanging

    Hi I just tried your suggestion and i still get a blank results screen. I'm really lost here I do not know why this is happening. It took months to get this site configured the thought of starting fresh is unthinkable.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Search function
    By comsystics in forum General Questions
    Replies: 3
    Last Post: 19 Sep 2012, 05:47 PM
  2. Linking search function to custom CSS search box
    By seeinteriors in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jun 2012, 10:52 PM
  3. Search function
    By aquaessential in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2007, 04:59 PM
  4. embed an internal search engine or more functional search function
    By reza in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 May 2007, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg