Re: Failed Retrieving Prefs for user
Jan Schneider <[email protected]> Wed, 3 Nov 2004 18:29:28 +0100
| Newsgroups | gmane.comp.horde.jonah |
|---|---|
| Message-ID | <[email protected]> |
Raise the log level Zitat von Skip Morrow <[email protected]>: > [root@pelorus skip]# head -n250 /usr/share/pear/Horde/Prefs/sql.php | > tail -n20 > $query .= ' AND (pref_scope = ' . $this->_db->quote($scope); > $query .= " OR pref_scope = 'horde')"; > > /* Execute the query. */ > $check = $this->_db->getOne($query); > > /* Return an error if the query fails. */ > if (is_a($check, 'PEAR_Error')) { > Horde::logMessage($check, __FILE__, __LINE__); > Horde::logMessage('Failed retrieving prefs for ' . > $this->_user, __FILE__, __LINE__, PEAR_LOG_ERR); > return PEAR::raiseError(_("Failed retrieving > preferences.")); > } > > /* Is there an existing row for this preference? */ > if (!empty($check)) { > /* Update the existing row. */ > $query = 'UPDATE ' . $this->_params['table'] . ' '; > $query .= 'SET pref_value = ?'; > $query .= ' WHERE pref_uid = ' . $this->_db->quote > ($this->_user); > $query .= ' AND pref_name = ' . $this->_db->quote > ($name); > [root@pelorus skip]# > >> :59 +0100, Jan Schneider wrote:Zitat von Skip Morrow >> <[email protected]>: >> >> > Would you believe it still logs the same thing? Maybe it just wasn't >> > meant to be. >> >> Or maybe you simply changed the wrong file. Or line. >> >> > Nov 03 11:26:48 HORDE [error] [horde] Failed retrieving prefs for skip >> > [on line 240 of "/usr/share/pear/Horde/Prefs/sql.php"] >> > Nov 03 11:27:07 HORDE [error] [jonah] Failed retrieving prefs for skip >> > [on line 240 of "/usr/share/pear/Horde/Prefs/sql.php"] >> > >> > On Wed, 2004-11-03 at 13:56 +0100, Jan Schneider wrote: >> >> Zitat von Skip Morrow <[email protected]>: >> >> >> >> > It didn't make any difference in horde.log. Would the information dup >> >> > somewhere else? I didn't see anything in the web browser either. >> >> >> >> Then try Horde::logMessage($check, __FILE__, __LINE__) >> >> >> >> Jan. >> >> >> >> -- >> >> Do you need professional PHP or Horde consulting? >> >> http://horde.org/consulting/ >> > >> > -- >> > Jonah mailing list - Join the hunt: http://horde.org/bounties/#jonah >> > Frequently Asked Questions: http://horde.org/faq/ >> > To unsubscribe, mail: [email protected] >> > >> > >> >> >> >> Jan. >> >> -- >> Do you need professional PHP or Horde consulting? >> http://horde.org/consulting/ > -- > Jonah mailing list - Join the hunt: http://horde.org/bounties/#jonah > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: [email protected] > > Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- Jonah mailing list - Join the hunt: http://horde.org/bounties/#jonah Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]