Anyone have any idea how I can fix this? Just done install and CiviCRM did not load (all OK on wizard) then nothing. Removed CiviCRM from the WordPress install and uploaded again (also removed database) but error below appeared.

Have I missed something?

Initialization Error

Array ( [callback] => Array ( [0] => CRM_Core_Error [1] => simpleHandler )

[code] => -24
[message] => DB Error: connect failed
[mode] => 16
[debug_info] =>  [nativecode=php_network_getaddresses: getaddrinfo failed: Name or service not known]
[type] => DB_Error
[user_info] =>  [nativecode=php_network_getaddresses: getaddrinfo failed: Name or service not known]
[to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=php_network_getaddresses: getaddrinfo failed: Name or service not known]"]


1 Answer 1


Need to recreate your civicrm.settings.php file - or at least check the DB settings in there.

It's typically created upon install and located in wp-content/plugins/civicrm/civicrm.settings.php

  • Where is this located? Mar 17, 2016 at 23:05
  • Updated answer :)
    – JohnFF
    Mar 17, 2016 at 23:07
  • And if its not there... :( Mar 17, 2016 at 23:08
  • Then run the installer again :) Follow the instructions on installing CiviCRM on WordPress
    – JohnFF
    Mar 17, 2016 at 23:42
  • 1
    Thanks @ChristianWach that was ideal and fixed the issue! Mar 18, 2016 at 17:36

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.