blank screen
terrybritton - April 18, 2007 - 17:05
| Project: | GlobalNode |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This module is exactly what I need, but after installing it I get a blank screen and none of the pages will load.

#1
Error is due to the $aa variable being empty i suspect. I got a PHP error on screen here.
basically you need to go to the settings page and insert some node fields you want to extract.
?q=admin/settings/globalnodeTo get the module working I reworked one funtion slightly. Paste this in to the module in place of the existing function by the same name.
function globalnode_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL){
if(!is_object($GLOBALS['globalnode'])){
$attributes = variable_get('globalnode_attributes', '');
if($attributes) {
$attributes = str_replace(', ', "\n", $attributes);
$attributes = str_replace(',', "\n", $attributes);
$attributes = str_replace(';', "\n", $attributes);
$attributes = array_unique(split("\r\n", $attributes));
$GLOBALS['globalnode'] = new stdClass();
switch($op){
case 'load':
foreach($attributes as $att){
if($node->$att){
$GLOBALS['globalnode']->$att = $node->$att;
}
}
break;
}
}
}
}
#2
I rolled this fix in to a real patch over at http://drupal.org/node/140344
#3
Thanks for the patch. I've incorporated and checked in.
#4