When running a CRM advanced search. If we try Adv Search>Display results as'Realted contacts' and choose and Rel type. The hit search we get the DB error.

CiviCRM: 5.13.4

2 Answers 2


I think this is now fixed in 5.14. You can try applying patch from here or upgrade CiviCRM to 5.15.1.




The error establishing a database connection error basically means that for some reason or another the PHP code was unable to connect to your MySQL database to retrieve the information it needs to fully build that page.Here are how to solve it: https://docsbay.net/how-to-fix-error-establishing-a-database-connection-error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.