Support (offered by community volunteers) > Alpha and Beta Release Testing
Ran snycronize users in Civi and got this error
Donald Lobo:
Sync users is the ONLY place where we use CIVICRM_UF_DSN, hence you only see the message there. There ate TWO dsn's in your settings file. One is the civicrm dsn (CIVICRM_DSN) and the other is the DSN of the CMS (CIVICRM_UF_DSN). Its the latter that is most likely missing
Its complaining about a missing file because its parsing an empty string etc (i.e. not great code in the PEAR package, IMO)
lobo
Eileen:
My whole phpsettings.php file was missing! But I don't seem to be able to manage to get it right as I have updated it and nothing has changed. Sigh. Will try to do the version upgrade & try again
Eileen:
Had a major playaround with this and I now have a version 2 civicrm.settings.php file in /var/www/html/sites/default/.
Adding a debug statement to DB::connect showed that it was being called twice, the second time with a null string for the $dsn. first time looked ok.
----snip ----
--- /var/www/html/sites/all/modules/civicrm/packages/DB.php.bak200803061145 2008-02-21 10:38:17.000000000 +1300
+++ /var/www/html/sites/all/modules/civicrm/packages/DB.php 2008-03-07 00:47:29.000000000 +1300
@@@ -518,6 +518,7 @@
function &connect($dsn, $options = array())
{
$dsninfo = DB::parseDSN($dsn);
+ print ("\$dsn='$dsn'\n");
$type = $dsninfo['phptype'];
if (!is_array($options)) {
----snip ----
output (details removed) = :
$dsn='mysql://username:password@localhost/database?new_link=true'
$dsn=''
We investigated enough to find out the second time was called from the synchronise users function. Not sure about the first.
print ("\$dsn='$dsn'\n");
--- Code: --- function &connect($dsn, $options = array())
{
$dsninfo = DB::parseDSN($dsn);
print_r($dsninfo);
--- End code ---
Donald Lobo:
the second call is with the value from CIVICRM_UF_DSN. i assume u r running beta 5. ping me later today and i'll login into your server and check whats happening and why
lobo
Eileen:
Bugger - should have done what I said I would & upgraded before trying to figure it out - Beta 5 fixed it!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version