I'm currently testing this module to see if it will meet our needs for allowing/denying access to a certain View. I created a single user, entered a range of IP addresses, assigned the user to a role, and set the View to only allow access to that role. I also set IP_Login to only authenticate when a user visits the View path, with no URL redirect.
This seems to be working perfectly for me. Great module. However, I've been getting the following PHP error message at the top of my site ever since I first enabled the module:
Notice: Constant CACHE_DISABLED already defined in \sites\all\modules\ip_login\ip_login.module on line 23
I have my site's Page Caching set to "Normal" with no minimum cache life and Page Compression disabled. The only way this error goes away is if I comment out line 23 of ip_login.module.
Also, possibly related, I'm seeing "?ip_login_no_cache=" in the URL upon authentication. This happens regardless of whether I comment or uncomment line 23.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | cache_disabled.png | 139.57 KB | generalelektrix |
Comments
Comment #1
jim kirkpatrick commentedFixed in this commit. Please use the DEV release if the warning message is a problem.
Comment #2
jim kirkpatrick commentedComment #4
generalelektrix commentedGot this problem on my test installation while migrating from 2.0 rc1. Please take a look at screenshot. Thanks.
Edit: should I simply comment line 23 to solve the problem?
Comment #5
jim kirkpatrick commentedHi, this is fixed in Dev, you need to use 6.x-2.x-dev until a new release is ready out. And code on line 23 has been removed in dev, so you can comment it if you want (dev is better though!)