Posted by fuquam on April 22, 2009 at 2:38pm
| 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
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()callsdrupal_strtolower()before the Drupal bootstrap, meaning thatincludes/unicode.incis not loaded yet and hence the function can not be found.A solution (not necessarily the solution) is to explicitly ensure
includes/unicode.incis 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: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.
#6
Fixed in CVS commit 237950.
#7
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
There has not been a new release.