CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Database Error after install
Pages: [1]

Author Topic: Database Error after install  (Read 1647 times)

thehawke

  • Guest
Database Error after install
July 22, 2007, 10:56:56 am
Hi folks, I am getting the fatal error after activiating the module.

Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.::/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/happydyk/public_html/modules/civicrm/drupal/civicrm.module on line 225

civicrm.settings.php is in the same folder as my settings.php under sites/default.

I've got the following for compiledir line:
$civicrm_root = '';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/happydyk/public_html/files/civicrm/templates_c/' )

Templates_c is in under files/civicrm and is writeable.

Where else should I look to fix this?
« Last Edit: July 22, 2007, 11:44:28 am by thehawke »

thehawke

  • Guest
Re: Fatal Error after install
July 22, 2007, 11:29:59 am
I solved that problem but now have another issue.

Now the error I am getting says:

Code: [Select]
Sorry. A non-recoverable error has occurred.
Error Details:

[db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::handle prefix="" info=" [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)]"]

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Database Error after install
July 22, 2007, 11:25:37 pm
Your first problem (as you figured out) was an empty $civicrm_root.

Your second problem is most probably a misconfigured CIVICRM_UF_DSN and/or misconfigured CIVICRM_DSN. Please read your civicrm.settings.php file throughly and set these (and other) settings to the values appropriate for your install.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

thehawke

  • Guest
Re: Database Error after install
July 23, 2007, 04:37:53 am
you were right. I set the DSN's server to localhost when it much preferred an IP address. Fixed that and now I just have a smarty error coming up which I shall research as I think I saw someone else post about just such a thing.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Database Error after install

This forum was archived on 2017-11-26.