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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Cannot open CIVICRM_DSN: DB Error: not found
Pages: [1]

Author Topic: Cannot open CIVICRM_DSN: DB Error: not found  (Read 2541 times)

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 02:48:56 am
Attempting to installing CIVICRM 4.2.6 on a fresh install of Joomla 2.5.8.  Each time I try (doing an "Install from Directory), I get the following error:

Cannot open CIVICRM_DSN: DB Error: not found

Any clues?

I've done this many times wtih no problem.  The only difference now is that I'm on a server running PHP 5.3.13.  All others are running PHP 5.2 (which is supposedly not compatible).

 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 12:08:55 pm
I have no idea, but can you check for the existence of a file civicrm.settings.php in components/com_civicrm and administrator/components/com_civicrm ?

It should not be in either place.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 12:11:16 pm
Quote from: Hershel on December 06, 2012, 12:08:55 pm
I have no idea, but can you check for the existence of a file civicrm.settings.php in components/com_civicrm and administrator/components/com_civicrm ?

It should not be in either place.
I did check that earlier.  They're there after each attempted install... but both zero length.   And before each retry, I deleted both com_civicrm directories.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 12:13:40 pm
Hmm, sounds like maybe a file permissions error. But OTOH if CiviCRM can create the com_civicrm directories then it sounds like it has rights.

What else is in the com_civicrm directories after you attempt to install?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 01:25:26 pm
only other wierd thing is that civicrm.zip seems to be 0 file length in /administrator/components/com_civicrm.

If I upload that to the directory and restart the install, gets zeroed out again.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 01:29:49 pm
I install from tmp/ I put the zip file there and unzip it and then run the install from tmp/com_civicrm

How are you trying to install?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 06, 2012, 01:34:15 pm
Same way.

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 07, 2012, 08:27:28 am
My error log shows the following (twice) during each attempt:

[Fri Dec 07 10:22:36 2012] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning:  fopen(/hsphere/local/home/xxxx/xxxx.org/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl): failed to open stream: No such file or directory in /hsphere/local/home/xxxx/xxxx.org/libraries/joomla/filesystem/file.php on line 322, referer: http://xxxx.org/administrator/index.php?option=com_installer

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 08, 2012, 11:23:14 am
Does

/hsphere/local/home/xxxx/xxxx.org/administrator/components/com_civicrm/civicrm/templates/CRM/common/civicrm.settings.php.tpl

exist? What are the permissions on it?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 08, 2012, 11:26:14 am
That template directory does not exist.

I go as far as "/administrator/components/com_civicrm/civicrm"... and only 1 file exists in there.... "civicrm.config.php"

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 08, 2012, 11:29:00 am
Seems clear that this is a server configuration issue but I don't know what it is. Can you ask your host for assistance?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 10, 2012, 08:50:19 am
Got it to work by using "Install from URL".  But I still get the error when I do "Install from Directory".

orthodoxkohen

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 2
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 20, 2012, 12:21:38 am
Ran into same problem can you tell me what steps you took to install from url? what url did you use?

Thanks!

wjm

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 0
  • CiviCRM version: Latest
  • CMS version: Joomla (Latest)
Re: Cannot open CIVICRM_DSN: DB Error: not found
December 20, 2012, 03:32:22 am
upload to your /tmp directory.  Unzip. Then go to extension manager, under Install from URL, put the URL of your site and add /tmp at the end.  Click install.

Not sure if it's CIVICRM or simply a problem after installing this way...  but ADMINISTRATION | CIVIMEMBER | MEMBERSHIP TYPES takes me to a page with a list of non linkable items:

Customize Data and Screens   
Communications   
Localization   
Users and Permissions   
System Settings   
CiviContribute   
CiviMember   
CiviEvent   
CiviMail   
CiviReport

I'd be interested in seeing if you get the same after install.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Cannot open CIVICRM_DSN: DB Error: not found

This forum was archived on 2017-11-26.