Fwd: Re: [jonah] Failed Retrieving Prefs for user

Jan Schneider jan at horde.org
Wed Nov 3 10:11:46 PST 2004



----- Weitergeleitete Nachricht von skip at pelorus.org -----
    Datum: Wed, 03 Nov 2004 12:47:01 -0500
    Von: Skip Morrow <skip at pelorus.org>
Antwort an: skip at pelorus.org
 Betreff: Re: [jonah] Failed Retrieving Prefs for user
      An: Jan Schneider <jan at horde.org>

Can you tell me how to raise the log level?  Are you talking about the
kernel log level?

Jan, I sure do appreciate you helping me out with this.  I can't wait to
get it going.

Skip

On Wed, 2004-11-03 at 18:29 +0100, Jan Schneider wrote:
> Raise the log level
>
> Zitat von Skip Morrow <skip-lists at pelorus.org>:
>
> > [root at 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 at pelorus skip]#
> >
> >> :59 +0100, Jan Schneider wrote:Zitat von Skip Morrow
> >> <skip-lists at pelorus.org>:
> >>
> >> > 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 <skip-lists at pelorus.org>:
> >> >>
> >> >> > 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: jonah-unsubscribe at lists.horde.org
> >> >
> >> >
> >>
> >>
> >>
> >> 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: jonah-unsubscribe at lists.horde.org
> >
> >
>
>
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/



----- Ende der weitergeleiteten Nachricht -----


Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the jonah mailing list