Fatal error: Call to undefined function error_handler() in cosign.module on line 200

idnorton - December 16, 2008 - 22:03
Project:cosign
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:ksteinhoff
Status:closed
Description

When cosign is incorrectly configured (in my case, not enabled in the apache or .htaccess config) this error presents.

Seems that it checks for the $_SERVER['REMOTE_USER'] variable, which isn't set as cosign isn't configured correctly.

I can't find an error_handler function in any of the code base on my installation, so I've switched it to using drupal_error_handler which has an additional argument for context. The context argument seems to only be used for debugging database errors so I've passed zero (which I'm not sure is the right thing to do).

Please see the attached patch.

AttachmentSize
cosign-error-handler.patch532 bytes

#1

ksteinhoff - December 18, 2008 - 17:27
Assigned to:Anonymous» ksteinhoff

thanks.

#2

ksteinhoff - December 18, 2008 - 17:39
Status:active» fixed

fixed in 6.x-1.5

#3

System Message - January 1, 2009 - 17:40
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.