Posted by krisvannest on January 29, 2007 at 7:49pm
Jump to:
| Project: | CCK Freetagger |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | dfletcher |
| Status: | active |
Issue Summary
Under my install of 4.7.5, enabling Freetagger throws an error, specifically:
Type php
Message Missing argument 2 for variable_get() in [mysite]/public_html/includes/bootstrap.inc on line 266.
Severity errorFor my installation, removing "Freetagger" module from http://drupal.org/project/freetagger fixed it-- I was only testing this module (it's OK disabled for now) so I didn't actually go through the code to see what's up. I also had the latest versions of both that and CCK installed (along w/ a bunch of other mods :-). Some threads about diff modules, but similar probs, might be at http://drupal.org/node/112408 and http://drupal.org/node/31792 in case that helps track it down.
Comments
#1
Mine does the same thing...only when I enable this module does this occur.
#2
Remarked critical.
#3
Assigned.
#4
I don't use this module as I am on v5 but I have just spent a few hours with tracing this error. The problem is that the variable_get needs a default variable, even if it is not required by your task. ie;
variable_get('whatever_whatever','FALSE');
so you just need to search for all instances of variable_get which don't have the second argument, or are using an empty variable. Just wasted quite a few hours on this one... hope this helps.
#5
I too solved the issue by adding the missing argument so the function would send the expected number of arguments (two). Instead I added NULL (a meaningless value). For eg.
CHANGE:
'#default_value' => variable_get('default_nodes_main'),
TO:
'#default_value' => variable_get('default_nodes_main',NULL),