Closed (fixed)
Project:
Profile Enforcer
Version:
5.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Jun 2007 at 20:45 UTC
Updated:
16 Aug 2007 at 12:48 UTC
Jump to comment: Most recent
I always get this error message when I enable the module:
warning: Missing argument 2 for variable_get(), called in /var/www/drupal-5.1/modules/profile_enforcer/profile_enforcer.module on line 112 and defined in /var/www/drupal-5.1/includes/bootstrap.inc on line 369.
I actually get this 7 times on my administer blocks page, from lines 112, 117, 124, 135, 138, 144, and 165 of the profile_enforcer.module file. I am running Drupal 5.1, MySQL 5.0.38, PHP 5.2.1, and Apache 2.2.3 on a Ubuntu Feisty box.
Comments
Comment #1
suydam commentedFixed with 1.1 release.
Comment #2
suydam commentedComment #3
jared_c commentedWow, you're quick.
I installed the new release, and it fixed the error for all the lines that I listed. Slick as a whistle. Problem is, the same error now shows up from line 237. Here's the full text:
warning: Missing argument 2 for variable_get(), called in /var/www/drupal-5.1/modules/profile_enforcer/profile_enforcer.module on line 237 and defined in /var/www/drupal-5.1/includes/bootstrap.inc on line 369.
Same text, different line number. Sometimes I see this error with line number 233 (from the module file) listed as well.
I also get another error, this one a little more critical. When in debug mode I see this error:
Profile Enforcer Debuggin: Requried information (profile) is not complete. Redir would go to user/1/edit (but we're in debugging mode). You are here: drupal-5.1/?q=admin/build/block
The profile enforcer block lists:
PROFILE ENFORCER (DEBUGGING)
PROFILE IS BOUncING YOU
PROFILE IS COMPLETE!
LOCATION INFO IS COMPLETE!
If I take it off of debugging, it really does redirect me to the edit page, even though all required fields in my profile are filled.
My profile has six required fields: the default Username and email address fields, listed under account information; and four more fields under "Personal Information" which I added with the Profile module. There are no optional fields in the profile.
Again, thanks for the quick response last time.
Jared
Comment #4
jared_c commentedBy the way, I installed the dev version and the whole "variable_get()" issue goes away, but it still redirects users with all required fields filled in. Exact same behavior as I described above. It also catches the users that haven't filled in all fields, so that still works.
Jared
Comment #5
Anonymous (not verified) commentedUsing version 5.x-1.1, I get the "Missing argument 2 for variable_get()" error message.
Looking at the code, I notice that the prbouncer function has calls to variable_get that have only one parameter.
Side note: I set it to require location, hoping that it would only require the required fields, but it required all the fields to be filled in. I guess that's as intended, and I should be able to use the 'Other Fields' entry. Just a little confusing, documentation should cover it.
Comment #6
Anonymous (not verified) commentedOK, adding second parameters in lines 229 [,''], 233[,''], and 237[,0] seems to have fixed it.
Also, the requirement stuff seems to behave as I expected now.
Comment #7
suydam commentedFixed in latest release.
Comment #8
(not verified) commented