[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Search Mulfunction on Website

Posted on 2013-12-23
8
Medium Priority
?
452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

656 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