throws error: Missing argument 2 for variable_get()

krisvannest - January 29, 2007 - 19:49
Project:CCK Freetagger
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:dfletcher
Status:active
Description

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 error

For 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.

#1

emilyf - January 31, 2007 - 21:48

Mine does the same thing...only when I enable this module does this occur.

#2

dfletcher - February 4, 2007 - 00:13
Priority:normal» critical

Remarked critical.

#3

dfletcher - February 4, 2007 - 00:14
Assigned to:Anonymous» dfletcher

Assigned.

#4

AstralP - February 4, 2007 - 05:24

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.

 
 

Drupal is a registered trademark of Dries Buytaert.