Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | 441634_drupal_strtolower.patch | 480 bytes | Arto |
Comments
Comment #1
rconstantine CreditAttribution: rconstantine commentedSame here.
Comment #2
nikemen CreditAttribution: nikemen commentedSubscribe
Comment #3
rconstantine CreditAttribution: rconstantine commentedTo get this to work, I changed the function from drupal_strtolower to plain old strtolower for now until this is properly fixed.
Comment #4
qchan CreditAttribution: qchan commentedThanks rconstantine !!
you saved my site.
Comment #5
Arto CreditAttribution: Arto commentedI ran into this problem, and rolled a quick patch against the DRUPAL-6--2 branch (attached).
The problem seems to be that
_securesite_mechanism()
callsdrupal_strtolower()
before the Drupal bootstrap, meaning thatincludes/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 invokingdrupal_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:...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.
Comment #6
Darren OhFixed in CVS commit 237950.
Comment #8
najibx CreditAttribution: najibx commentedis 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.
Comment #9
Darren OhThere has not been a new release.