#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Search not working ...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Search not working in wpforo - DOUBLE value is out of range

Page 2 / 2 Prev
    Last Post
RSS

arzoum
Posts: 3
 arzoum
March 21, 2017 2:14 am
(@arzoum)
New Member
Joined: 5 years ago

Hi,

Was this ever resolved?

I have the exact same issue. This is the query that fails when you try to search the forum:

SELECT p.`postid`, t.`topicid`, t.`private`, t.`status`, t.`forumid`, p.`userid`, t.`title`, p.`created`, p.`body`, MATCH(t.`title`) AGAINST('discussion*' IN BOOLEAN MODE) + MATCH(p.`title`) AGAINST('discussion*' IN BOOLEAN MODE) + MATCH(p.`body`) AGAINST('discussion*' IN BOOLEAN MODE) AS matches FROM `wp_wpforo_posts` p INNER JOIN `wp_wpforo_topics` t ON t.`topicid` = p.`topicid` WHERE ( MATCH(t.`title`) AGAINST('discussion*' IN BOOLEAN MODE) OR MATCH(p.`title`, p.`body`) AGAINST('discussion*' IN BOOLEAN MODE) ) ORDER BY MATCH(t.`title`) AGAINST('discussion*') + MATCH(p.`title`) AGAINST('discussion*') + MATCH(p.`body`) AGAINST('discussion*') DESC, MATCH(t.`title`) AGAINST('discussion*' IN BOOLEAN MODE) + MATCH(p.`title`) AGAINST('discussion*' IN BOOLEAN MODE) + MATCH(p.`body`) AGAINST('discussion*' IN BOOLEAN MODE) DESC LIMIT 15

Server is being hosted on DigitalOcean and managed by ServerPilot. It's using MySQL 5.7. Here are screenshots of the two tables used in the above query:

http://d.pr/i/35DP/22YJFvLs

http://d.pr/i/mwEI/2ooareSy

Maybe it's the Collation/Encoding used in the table?

 

Reply
1 Reply
Josephino
 Josephino
(@josephino)
Joined: 6 years ago

Active Member
Posts: 5
March 21, 2017 7:14 am
Reply toarzoumarzoum

In my case changing the wordpress theme resolved the issue. I was using the Sahifa theme before. 

Reply
arzoum
Posts: 3
 arzoum
March 21, 2017 2:31 pm
(@arzoum)
New Member
Joined: 5 years ago

Unfortunately, switching themes does not resolve this issue for us.

Warning: mysqli_query(): (22003/1690): DOUBLE value is out of range in '((match `wp-original`.`t`.`title` against ('discuss*' in boolean mode)) + (match `wp-original`.`p`.`title` against ('discuss*' in boolean mode)))' in /var/www/public/wp-includes/wp-db.php on line 1877

WordPress database error: [DOUBLE value is out of range in '((match `wp-original`.`t`.`title` against ('discuss*' in boolean mode)) + (match `wp-original`.`p`.`title` against ('discuss*' in boolean mode)))']

SELECT p.`postid`, t.`topicid`, t.`private`, t.`status`, t.`forumid`, p.`userid`, t.`title`, p.`created`, p.`body`, MATCH(t.`title`) AGAINST('discuss*' IN BOOLEAN MODE) + MATCH(p.`title`) AGAINST('discuss*' IN BOOLEAN MODE) + MATCH(p.`body`) AGAINST('discuss*' IN BOOLEAN MODE) AS matches FROM `wp_wpforo_posts` p INNER JOIN `wp_wpforo_topics` t ON t.`topicid` = p.`topicid` WHERE ( MATCH(t.`title`) AGAINST('discuss*' IN BOOLEAN MODE) OR MATCH(p.`title`, p.`body`) AGAINST('discuss*' IN BOOLEAN MODE) ) ORDER BY MATCH(t.`title`) AGAINST('discuss*') + MATCH(p.`title`) AGAINST('discuss*') + MATCH(p.`body`) AGAINST('discuss*') DESC, MATCH(t.`title`) AGAINST('discuss*' IN BOOLEAN MODE) + MATCH(p.`title`) AGAINST('discuss*' IN BOOLEAN MODE) + MATCH(p.`body`) AGAINST('discuss*' IN BOOLEAN MODE) DESC LIMIT 15

Reply
arzoum
Posts: 3
 arzoum
July 26, 2017 8:20 pm
(@arzoum)
New Member
Joined: 5 years ago

In case anyone comes across this issue, I resolved it by changing the Encoding for the following two tables from utf8mb4 to utf8, and Collation from utf8mb4_unicode_520_ci to utf8_general_ci. 

We are running MySQL  5.7.19. The issue seems to be related to using Boolean mode on utf8mb4 encoded tables with columns using utf8mb4_unicode_520_ci collation.

HTH

Reply
Robert liked
1 Reply
AccessibleJapan
 AccessibleJapan
(@accessiblejapan)
Joined: 5 years ago

Active Member
Posts: 9
July 31, 2017 3:24 am
Reply toarzoumarzoum

I am having the same issues.

How do you change the encoding?

I only get an error if the search word is in the title of the post.  It works fine if the keyword is in the post body...

Reply
Robert
Posts: 8968
Robert - Twitter
 Robert
Admin
August 1, 2017 10:58 am
(@robert)
Support Team
Joined: 6 years ago

You can change it in website cPanel > phpMyAdmin database manager:

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
AccessibleJapan liked
AccessibleJapan
Posts: 9
 AccessibleJapan
August 2, 2017 12:35 am
(@accessiblejapan)
Active Member
Joined: 5 years ago

thank you!

Reply
Page 2 / 2 Prev
  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Menu location

    By Vijiki, 2 hours ago

  • Setting recent topics on forum frontend

    By Vijiki, 10 hours ago

  • Draft draft users post on wpforo

    By Vijiki, 12 hours ago

  • How to remove content from email notification

    By Vijiki, 12 hours ago

  • How to prevent forum users from PASTING / posting multiple colors and font sizes...??

    By Noved, 2 days ago

  • purchase of add on and it says payment pending

    By ReddBeard, 3 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • phrases28
  • forum accesses28
View all tags (2163)

Recent Posts

  • Menu location

    I will like to change the menu drop-down position/behav...

    By Vijiki, 2 hours ago

  • RE: Setting recent topics on forum frontend

    ok, now you explained better what you want to do. It ca...

    By dimalifragis, 5 hours ago

  • Problem with private forum

    Hi, i've one problem with my private forum. I want the ...

    By Darkkang, 11 hours ago

  • Draft draft users post on wpforo

    Hello How can I draft users post on wpforo (like a te...

    By Vijiki, 12 hours ago

  • RE: How to remove content from email notification

    Edit the body of the emails, in wpForo settings / email...

    By dimalifragis, 12 hours ago

  • RE: Show Likers with their avatar

    Have now found the correct code 😀 are these 3 lines ...

    By Tutrix, 2 days ago

  • RE: How to prevent forum users from PASTING / posting multiple colors and font sizes...??

    @noved add this to custom css #wpforo #wpforo-wrap ...

    By Tutrix, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,763 Topics
49.5 K Posts
8 Online
43.8 K Members

Latest Post: Menu location Our newest member: "Основание Осман 100 Серия" На... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation