Download & Extend

Fatal error: Call to undefined function drupal_strtolower()

Project:Secure Site
Version:6.x-2.3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I got the following error when I logged out and tried logging back in. I entered an incorrect password on purpose just to test. Now the log in won't even come up. All I get is this error. This is only since version 6.2.3.

Fatal error: Call to undefined function drupal_strtolower() in /home3/site/public_html/modules/securesite/securesite.module on line 134

Thanks.

Comments

#1

Same here.

#2

Subscribe

#3

To get this to work, I changed the function from drupal_strtolower to plain old strtolower for now until this is properly fixed.

#4

Thanks rconstantine !!
you saved my site.

#5

Title:Fatal Error » Fatal error: Call to undefined function drupal_strtolower()
Version:6.x-2.3» 6.x-2.x-dev
Status:active» reviewed & tested by the community

I ran into this problem, and rolled a quick patch against the DRUPAL-6--2 branch (attached).

The problem seems to be that _securesite_mechanism() calls drupal_strtolower() before the Drupal bootstrap, meaning that includes/unicode.inc is not loaded yet and hence the function can not be found.

A solution (not necessarily the solution) is to explicitly ensure includes/unicode.inc is loaded before invoking drupal_strtolower(), and this is what my patch does. This solves the problem for me.

However, there are a total of four places in the code base that drupal_strtolower() is used:

securesite.inc: _securesite_fake_realm()
securesite.inc: _securesite_denied()
securesite.module: _securesite_mechanism()
securesite.module: securesite_user('logout')

...so it may be that there exist other code paths that still result in the same problem. I have not myself run into any yet, though.

AttachmentSize
441634_drupal_strtolower.patch 480 bytes

#6

Status:reviewed & tested by the community» fixed

Fixed in CVS commit 237950.

#7

Status:fixed» closed (fixed)

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

#8

is this really fixed? Even with securesite-6.x-2.3.tar.gz I still have to do as stated in #3 to get rid of it.

#9

Version:6.x-2.x-dev» 6.x-2.3

There has not been a new release.