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
Solved

Search Mulfunction on Website

Posted on 2013-12-23
8
404 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

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.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

789 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