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.

CommentFileSizeAuthor
#5 441634_drupal_strtolower.patch480 bytesArto
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rconstantine’s picture

Same here.

nikemen’s picture

Subscribe

rconstantine’s picture

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

qchan’s picture

Thanks rconstantine !!
you saved my site.

Arto’s picture

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
FileSize
480 bytes

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.

Darren Oh’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in CVS commit 237950.

Status: Fixed » Closed (fixed)

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

najibx’s picture

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.

Darren Oh’s picture

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

There has not been a new release.

  • Commit 4f21aab on 6.x-2.x, 7.x-2.x, 8.x-1.x by Darren Oh:
    #441634 by Arto: Fixed undefined function drupal_strtolower().