mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Knowledge base - "No suggestions" #1049
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#1049
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bojkic on GitHub (Aug 4, 2016).
Issue
Suite 7.7 fresh installation. When entering Case subject, even though there is Knowledge base article with identical name, no suggestions are given
Your Environment
@bojkic commented on GitHub (Aug 5, 2016):
Here is log excerpt:
"Thu Aug 4 18:24:14 2016 [3590][1][FATAL] Query Failed: SELECT id, name, description, status, sum(relevance)
FROM (
SELECT id, name, description, status, 10 AS relevance
FROM aok_knowledgebase
WHERE name = 'proba'
AND deleted = '0'
UNION SELECT id, name, description, status, 5 AS relevance
FROM aok_knowledgebase
WHERE name LIKE '%proba%'
AND deleted = '0'
UNION SELECT id, name, description, status, 2 AS relevance
FROM aok_knowledgebase
WHERE description LIKE '%proba%'
AND deleted = '0'
)results
GROUP BY id
ORDER BY sum( relevance ) DESC
LIMIT 0,30: MySQL error 1055: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'results.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by "
@shogunpol commented on GitHub (Aug 15, 2016):
The issue has been checked on SuiteCRM 7.7.1, and PHP 5.5.9, and do not appear.
The issue has been checked on SuiteCRM 7.7.1, and PHP 7, and it appear.
1st - The version of PHP (suggest use more stabil, older version);
2nd - Also if "Knowledge base" is not created "suggestion" does not apear (because is nothing to suggest).
@bojkic commented on GitHub (Aug 15, 2016):
Yes, I am using php7. Bug still exists in 7.7.1
@mminnie commented on GitHub (Sep 1, 2016):
I don't know if this qualifies as a "bug". It is introduced because as of MySQL 5.7.5, the ONLY_FULL_GROUP_BY was added as a default value to the sql_mode MySQL system variable.
See here
Disabling this setting in MySQL either through the configuration or through code resolves the issue.
This being said, moving forward the code causing the issue should be fixed as it will probably remain to be a default setting in MySQL.
@ijdavie commented on GitHub (Sep 19, 2016):
@mminnie, I would agree, however disabling this in MySQL I dont see is a permanent work around. In the long term the software will need to handle this.
I will mark this as a low priority due to the work around.