Thread: Search Side Box

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    816
    Plugin Contributions
    0

    Default Search Side Box

    Hi All,

    Using bootstrap template 3.7.4 version with 8.1php and I have a question relating as to where and what file would be used to disable the search facility.

    I had someone working on the site last August when I was having an issue with CPU usage on the site and they disabled the search to try to correct the problem.

    I have since found out what was causing the CPU issue and corrected it and the site is working fine till a couple of days ago when the google search bar decided to play up and now just returns to the main page.

    I removed the google search bar and put the side box search back but it also returns to the the main page when doing a search because of what was done to one of the files on the site which I am trying to find.

    If anyone can help me with a file that would cause this it would be greatly appreciated.
    Outdoorking
    Live Site www.outdoorking.com.au

  2. #2
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    816
    Plugin Contributions
    0

    Default Re: Search Side Box

    Hi All,

    Found the files that were causing the issue which were:
    /public_html/includes/modules/pages/search/header_php.php

    and

    /public_html/includes/modules/pages/search_result/header_php.php

    They were edited to go to the home page. That has now been corrected but the issue now is if I have the header search activated in the Layout box Controller I get a lot of error logs which is shown below.

    [18-Oct-2025 00:27:57 Australia/Sydney] Request URI: /ajax.php?act=ajaxBootstrapSearch&method=searchProducts, IP address: 45.125.247.117, Language id 1
    #0 [internal function]: zen_debug_error_handler()
    #1 /includes/classes/db/mysql/query_factory.php(667): trigger_error()
    #2 /includes/classes/db/mysql/query_factory.php(634): queryFactory->show_error()
    #3 /includes/classes/db/mysql/query_factory.php(275): queryFactory->set_error()
    #4 /includes/classes/ajax/zcAjaxBootstrapSearch.php(55): queryFactory->Execute()
    #5 /ajax.php(85): zcAjaxBootstrapSearch->searchProducts()
    --> PHP Fatal error: 2006:MySQL server has gone away :: SELECT DISTINCT p.products_image, p.products_id, p.products_sort_order, pd.products_name, p.master_categories_id, p.products_model FROM products p
    INNER JOIN products_description pd
    ON pd.products_id = p.products_id
    AND pd.language_id = 1 WHERE p.products_status = 1 AND ( ( pd.products_name LIKE '%m%' OR p.products_model LIKE '%m%' OR pd.products_description LIKE '%m%') ) ORDER BY p.products_sort_order, pd.products_name LIMIT 8 ==> (as called by) /includes/classes/ajax/zcAjaxBootstrapSearch.php on line 55 <== in /includes/classes/db/mysql/query_factory.php on line 667.

    I know it says MYSQL server has gone away but this only happens when the header search is active.

    Any thoughts as to why this would be happening. I am thinking that it is continually try to search the database which is causing the Server to block the request.
    Outdoorking
    Live Site www.outdoorking.com.au

 

 

Similar Threads

  1. Formating Side Box Search
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jun 2010, 10:37 AM
  2. search in side box
    By uniqueliving in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 1 May 2010, 09:48 AM
  3. Search text input box width (in side box)
    By joshuaholland in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Apr 2010, 01:11 PM
  4. Search Side Box in Centre
    By vishalon in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Feb 2010, 05:32 AM

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