[jonah] Failed Retrieving Prefs for user
Jan Schneider
jan at horde.org
Wed Nov 3 09:29:28 PST 2004
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/
More information about the jonah
mailing list