mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Receive "Database failure. Please refer to suitecrm.log for details" #5044
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#5044
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 @jobst on GitHub (Jul 18, 2023).
general summary of the issue
I had a problem with 7.12.7, so I upgraded to 7.13.4, however the problem persists.
When I select ONE account below Accounts the subpanels for "Contacts", " Opportunities" and " Leads" will show "Database failure. Please refer to suitecrm.log for details"
Looking at the log (even with turned UP logging) I cannot see the reason why this might be the case.
does a similar issue already exists
Done that, have not seen anything but might be searching incorrectly
However I found someone complaining about it
I did what [@chirag_biz309] suggested and that fixed my problem.
discovered a security risk
Nope.
7.10.x.?
NO.
still applicable in 7.12.x?
It was for 7.12.7, but also visible in 7.13.4
Issue
Expected Behavior
I should NOT see "Database failure. Please refer to suitecrm.log for details" when I select ONE account of Accounts or ONE contact of Contacts in the subpanels (e.g. contacts, opportunities, leads".
Same is valid for Contacts.
Actual Behavior
When I click on "Accounts" OR "Contacts", then selects ONE account or contact respectively I get "Database failure. Please refer to suitecrm.log for details" for the SUB PANELS (e..g for Accounts -> Contacts, Opportunities, Leads)
Possible Fix
I searched various places, there were a number of answers, one of which was
I did what [@chirag_biz309] suggested and that fixed my problem.
There are actually TWO ISSUES in the same file with the same SINGLE QUOTES that should not be there.
Line numbers 875 and 930
One of the fixes in file PATH_TO_SUITECRM/data/SugarBean.php is at line number 875:
and the other one at 930 (same coding thing)
Basically just taking out the '(' and ')' - it will work correctly after this.
What I think has happend someone in a hurry copied the CORRECT (in this case because of the union) code from above
and placed it below into the "} else {"
Steps to Reproduce
Context
What is surprising to me that no-one else complains about this?
Or do I really have a unique environment that it only affects me?
Your Environment
@jobst commented on GitHub (Jul 18, 2023):
Just saw another entry at
Same issue, same solution.
Again I am surprised not more people have this problem ...
@chris001 commented on GitHub (Jul 19, 2023):
@jobst Can you make a PR for this issue, with your code fix?
@jobst commented on GitHub (Jul 20, 2023):
@chris001 I have not done a pull request for a while....
I put everything in but it tells me "I must be a collaborator" and fails to create the pull request.
@chris001 commented on GitHub (Jul 20, 2023):
@jobst about that error "must be a collaborator"...
The one special privilege a collaborator has over a contributor is... that they (the collaborator) can push directly to this repository (since the repo owner SalesAgility would have added you as "collaborator").
A collaborator can push their own branch (inside this repo) and do a pull request from within this repo, between their branch (in this repo) and master.
As opposed to a contributor (this is you! and me), who has to fork this repository first, and make a pull request from your own fork/branch to this repo, the
hotfixbranch.@johnM2401 commented on GitHub (Jul 21, 2023):
Hey Folks
Thanks for getting in touch!
Could you share which MySQL version you are using, @jobst ?
I believe this issue might be MySQL8-specific, but It would be good to gather more information.
There is another ticket on this repo with similar, (if not the same), issue where the user is using MySQL8:
https://github.com/salesagility/SuiteCRM/issues/9788
(In which users discuss the same fix as you have above)
If so, looks like there may already be an appropriate PR:
https://github.com/salesagility/SuiteCRM/pull/9843
(Though, if this is not the same issue, please let us know!)
Thanks!
@serhiisamko091184 commented on GitHub (Oct 7, 2024):
Hello @jobst,
The issue has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs.
Thanks for your contributions.
Regards,
Serhii