Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Search Invalid database query
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 7:13 pm

a member just brought this to my attention the search function does not seem to be working, so I tested it and I am getting invalid database query notification in a pop up, I have deleted all plug ins and reverted to twenty twelve on my staging site and am still getting it, any suggestions?

Thank-you

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 7:33 pm

moved it to my staging server, this is the error I am getting in my log

WordPress database error The used table type doesn't support FULLTEXT indexes for query SELECT  SQL_CALC_FOUND_ROWS topic_id FROM rufus_sfposts WHERE MATCH(post_content) AGAINST ('earthenstead' IN BOOLEAN MODE)  AND rufus_sfposts.forum_id IN (5849,5850,5851,5852,5853,5854,5855,5856,5857,5858,5859,5861,5862,5863,5864)  /* From [xxxxxxx.xxxxxxxxx.xxxx.com/forums/?search=1&new=1&forum=all&value=earthenstead&type=1&include=1] in [/nas/wp/www/xxxxxxx/xxxxxxx/wp-content/plugins/simple-press/sp-api/sp-api-wpdb.php:169] */ made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/twentyfourteen/page.php'), get_template_part, locate_template, load_template, require('/themes/twentyfourteen/content-page.php'), the_content, apply_filters('the_content'), call_user_func_array, sp_render_forum, sp_process_template, sp_load_template, include('/sp-resources/forum-themes/default/templates/spSearchView.php'), sp_Search, spSearchView->__construct, spSearchView->sp_searchview_control, spSearchView->sp_searchview_query, spdbComplex->select, spdb_select, referer: http:/xxxxxx.xxxxxx.xxxxx.com/forums/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 7:40 pm

start with the first part of the error... lets look at you db structure for the sfposts column... check the indexes on the table...  it should have sfposts with FULLTEXT type on it...

can you verify please?

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 7:56 pm

Mr Papa said
start with the first part of the error... lets look at you db structure for the sfposts column... check the indexes on the table...  it should have sfposts with FULLTEXT type on it...

can you verify please?

this is out side of my knowledge base, where would I look for this? In admin or myphp?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 8:00 pm

phpmyadmin...  or other db tool your host might provide (named one is most popular)...  look at the sfposts table.. then its structure... then its indexes to see if it has fullttext type...

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 8:03 pm

thank-you, checking now

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 8:08 pm

this is what I am seeing under structure

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 8:52 pm

yes, that was step 2... then you need to view the indexes... typically under all that stuff will be a small link to indexes to expand them...  check the post_content for fulltext...

indexes.pngImage Enlargerfulltext.pngImage Enlarger

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 8:56 pm

on it

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2014 - 9:14 pm

bigpapa.pngImage EnlargerHouston, we have a problem, I don't see that index

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625