Solved

Search Mulfunction on Website

Posted on 2013-12-23
8
395 Views
Last Modified: 2014-01-07
Hi

I have a search function on my website & it is currently not working correctly but instead it gives me an error message (See below), what can i do to restore its functionality to work again?? I do not know whether the problem lies with my server or with Joomla applications. My website is (a1telecomms.co.za) & operating on Joomla version 3.2.1

Error: 0 - SQL=SELECT CONCAT_WS(': ', i.alias, i.issue_summary) AS title, CASE WHEN CHAR_LENGTH(i.resolution_summary) THEN CONCAT_WS(': ', i.issue_description, i.resolution_summary) ELSE i.issue_description END AS text, i.created_on AS created,p.title AS section, i.id as slug, '2' AS browsernav FROM hq74m_it_issues AS i INNER JOIN hq74m_it_projects AS p ON p.id = i.related_project_id WHERE (( LIKE '%%' OR LIKE '%%' OR LIKE '%%' OR i. LIKE '%%')) AND i.state = 1 AND i.public = 1 ORDER BY DESC LIMIT 0, 50

You may not be able to visit this page because of:

1.an out-of-date bookmark/favourite
2.a search engine that has an out-of-date listing for this site
3.a mistyped address
4.you have no access to this page
5.The requested resource was not found.
6.An error has occurred while processing your request.
¿ Home
0
Comment
Question by:shaunwingin
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39735972
It looks like an issue with a query on the MySQL server. Do you have access to the database directly, are you able to alter the queries/procedures?
0
 
LVL 33

Accepted Solution

by:
snoyes_jw earned 300 total points
ID: 39736767
This part is wrong:

WHERE (( LIKE '%%' OR LIKE '%%' OR LIKE '%%' OR i. LIKE '%%'))

The code building that query probably has a variable that hasn't been set.
0
 

Author Comment

by:shaunwingin
ID: 39737429
Snowyes_jw: How do i set this "WHERE (( LIKE '%%' OR LIKE '%%' OR LIKE '%%' OR i. LIKE '%%'))"??

Carl_Tawn - yes i do have access to the database, what can i do on that side to make this work?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 33

Expert Comment

by:snoyes_jw
ID: 39738075
That clause is what your query already has, and it's wrong. LIKE takes two arguments. There needs to be something on the left side of each LIKE:
fieldName LIKE '%%'
or
'somestring' LIKE '%%'

The error is that the query just has LIKE '%%'.
0
 
LVL 28

Assisted Solution

by:chilternPC
chilternPC earned 200 total points
ID: 39739856
1) Is this a clean Joomla 3.x install? or did you upgrade it from a 2.5x install?
2) have you ever had the search working?
3) have you installed a search plugin or is it just the standard plugin?
I would:
even if it did work once, I would recheck the installation files and re install them.
also
log on to the administrator section and under extensions goto plugin manager and search for "search" to list all the search plugins.  then systematically disable the plugins (clear the cache each time) and check to see which search plugin it causing the problem and then reinstall it.
0
 
LVL 28

Expert Comment

by:chilternPC
ID: 39741568
Try disabling the "smart search" plugin if you have  enabled it.
if that works then read this link on how to configure the smart search before you re-enable it.
as you have to run an indexer first.

http://docs.joomla.org/Smart_Search_quickstart_guide
0
 

Author Closing Comment

by:shaunwingin
ID: 39764422
Thanks!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now