?
Solved

Search Mulfunction on Website

Posted on 2013-12-23
8
Medium Priority
?
463 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
7 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 1200 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 29

Assisted Solution

by:chilternPC
chilternPC earned 800 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 29

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month16 days, 3 hours left to enroll

850 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