Fwd: Re: Failed Retrieving Prefs for user

Jan Schneider <[email protected]> Wed, 3 Nov 2004 19:11:46 +0100
Newsgroups gmane.comp.horde.jonah
Message-ID <[email protected]>

----- Weitergeleitete Nachricht von [email protected] -----
    Datum: Wed, 03 Nov 2004 12:47:01 -0500
    Von: Skip Morrow <[email protected]>
Antwort an: [email protected]
 Betreff: Re: [jonah] Failed Retrieving Prefs for user
      An: Jan Schneider <[email protected]>

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 <[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/



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


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]