Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Mar 2004 at 23:14 UTC
Updated:
13 Mar 2004 at 18:56 UTC
Common.inc throws an error when trying to use any function that contains a call to variable_get():
Fatal error: Call to undefined function: variable_get() in /drupal/includes/common.inc on line 1251
variable_get() has recently been moved bootstrap.inc.
| Comment | File | Size | Author |
|---|---|---|---|
| junyor.patch | 556 bytes | junyor |
Comments
Comment #1
gábor hojtsybootstrap.inc is included in index.php as needed... You must have a special case... What is that?
Comment #2
junyor commentedUsing the devel.module, when I was trying to test generate-users.php and update-teaser.php.
Comment #3
killes@www.drop.org commentedThe proper fix is of course to include bootstrap.inc from generate-user.php. I've changed this yersterday.
Comment #4
junyor commented*sigh* I thought I had tried that first. Thanks. :)
Comment #5
gatezone commentedCVS (downloaded today 3/10/04) Drupal upgrade to working 4.3.2 no extra modules enabled yet.
Search on error showed this project issue to be most recent.
Upgrade went fine, when I go to configure link I get the following error above the header.
warning: Invalid argument supplied for foreach() in /home/virtual/site10/fst/var/www/html/main/includes/common.inc on line 1094.
common.inc lines 1091-1096:
function drupal_attributes($attributes = array()) {
if (count($attributes)) {
$t = array();
foreach ($attributes as $key => $value) {
$t[] = "$key=\"$value\"";
}
Any help appreciated...
Comment #6
killes@www.drop.org commenteddupe of 6345
Comment #7
junyor commentedThe fix works as it should, thanks!