6.0.0-alpha12
6/8/25

[#4501] Object of class PEAR_Error to string conversion in C:\PHP5\PEAR\Horde\Auth.php on line 139
Summary Object of class PEAR_Error to string conversion in C:\PHP5\PEAR\Horde\Auth.php on line 139
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester mwhitlock (at) whitsoftdev (dot) com
Created 10/07/2006 (6819 days ago)
Due
Updated 10/18/2006 (6808 days ago)
Assigned 10/07/2006 (6819 days ago)
Resolved 10/18/2006 (6808 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/18/2006 10:01:25 PM Jan Schneider Comment #7
State ⇒ Not A Bug
Reply to this comment
The error messages says it can't find the hook 
_username_hook_tobackend. Either you activated the wrong hook in 
Horde's configuration, or you gave your hook method the wrong name.
10/09/2006 05:12:25 PM mwhitlock (at) whitsoftdev (dot) com Comment #6
New Attachment: error.txt Download
Reply to this comment
I did a cvs update -dPCAR to update everything recursively, replacing 
everything with clean copies from HEAD, building new directories, and 
pruning empty directories.



I then ran the install-packages.php script from framework.  Everything 
installed okay, with the following informational messages:



horde/Horde_Auth can optionally use PHP extension "pam_auth"

horde/Horde_Auth can optionally use PHP extension "sasl"

horde/Horde_Browser can optionally use package "horde/PEAR"

horde/Horde_MIME can optionally use package "horde/Horde_Identity"

pear/Net_SMS can optionally use package "pear/Net_SMPP_Client"

horde/Horde_Secret can optionally use PHP extension "mcrypt"

warning: horde/Horde_Share requires package "horde/Horde_Identity"

warning: horde/SyncML requires package "pear/XML_WBXML"

horde/Text_Diff can optionally use PHP extension "xdiff"



I don't know where "horde/Horde_Identity" is supposed to come from.   
Also, I don't know why horde/SyncML complains about XML_WBXML because 
XML_WBXML is installed okay.  Maybe SyncML should be depending on 
"horde/XML_WBXML" instead of "pear/XML_WBXML"?  Just a guess.



I added a var_dump right before the line in question in Auth.php, and 
I've attached the output from it (with my password stripped out).
10/09/2006 03:34:32 PM Jan Schneider Comment #5 Reply to this comment
I can't see any place in the code that could lead to a PEAR_Error 
being passed to that line of code. Make sure that all your code is 
uptodate, the newest framework packages installed and any bytecode 
cache disabled.
10/08/2006 02:22:46 AM mwhitlock (at) whitsoftdev (dot) com Comment #4 Reply to this comment
Here's the only hook I'm using:



if (!function_exists('_username_hook_frombackend')) {

        function _username_hook_frombackend($userID) {

                if (strpos($userID, '@') === FALSE) {

                        $userID .= '@oxmoor.com';

                }

                return String::lower($userID);

        }

}


10/08/2006 02:20:28 AM mwhitlock (at) whitsoftdev (dot) com Comment #3 Reply to this comment
I don't know.  I use IMAP for authentication, if that makes any difference.
10/07/2006 06:41:17 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
So the question is, why is your system passing an error to 
Auth::authenticate instead of a username? Are you using hooks, perhaps?
10/07/2006 05:17:56 PM mwhitlock (at) whitsoftdev (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Object of class PEAR_Error to string conversion in C:\PHP5\PEAR\Horde\Auth.php on line 139
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
Reply to this comment
All authenticated pages in Horde have this notice at the top:



Notice: Object of class PEAR_Error to string conversion in 
C:\PHP5\PEAR\Horde\Auth.php on line 139



This is especially bad because it is also present in the binary 
streams returned by file attachment downloads, which of course 
corrupts the file.

Saved Queries