lots of scrambled text at the top of each page

robwales02 - December 31, 2007 - 02:23

I have just set up a localhost and it was working fine until I started to enable some contrib modules. I now get this:
'weight']) { return strcasecmp($a['name'], $b['name']); } return ($a['weight'] < $b['weight']) ? -1 : 1; } /** * Sort each level of a component tree by weight and name */ function _webform_components_tree_sort($tree) { if (is_array($tree['children'])) { uasort($tree['children'], "_webform_components_sort"); foreach ($tree['children'] as $cid => $component) { $return[$cid] = _webform_components_tree_sort($component); } $tree['children'] = $return; } return $tree; } function _webform_load_components($return_all = FALSE, $reset = FALSE) { static $component_list, $enabled_list; if (!isset($component_list) || $reset) { $component_list = array(); $enabled_list = array(); $path = drupal_get_path('module', 'webform')."/components"; $files = file_scan_directory($path, '^.*\.inc$'); foreach ($files as $filename => $file) { $enabled = variable_get('webform_enable_'.$file->name, 1); if ($return_all || $enabled) { include_once($filename); $component_list[$file->name] = t($file->name); } if ($enabled) { $enabled_list[$file->name] = t($file->name); } } } // Ensure only wanted components are returned, even all are loaded. return $return_all ? $component_list : array_intersect_assoc($component_list, $enabled_list); }

at the top of EACH page on the site.

Please help

Rob

It looks like code from the

coreyp_1 - December 31, 2007 - 02:39

It looks like code from the Webform module. Try disabling the module to see if the text goes away.

If the text does indeed go away, then the problem is that the php code is not getting parsed for some reason. Try re-uploading the files to see if one got corrupted in some way.

- Corey

it was webform

robwales02 - December 31, 2007 - 03:01

Thanks heaps. That did the trick but I had to log our and log in first for some reason. Anyhow problem solved. thanks
Rob

 
 

Drupal is a registered trademark of Dries Buytaert.