Hi

I have been having WSOD issues when previewing or saving content. I was not sure what was causing the error however I recently learned that by adding text to the .htaccess file I could have the error generated printed to screen.

Upon doing this I found the below message as the source of the problem. I have enabled, the forum module and advanced forum module, however I disabled the advanced forum module and the error still is generated. I did some research and found this post, which can help to solve the problem; http://drupal.org/node/72099

What is the recommended way to address this and make changes to the theme? If that is necessary/desirable?

Please advise, error is below.

Regards,

Adrian M.

Error:
Fatal error: Cannot redeclare forum_thread_icon_path() (previously declared in sites/all/themes/zeropoint/template.php:330) in sites/all/themes/zeropoint/template.php on line 329

Comments

Abeaudrian’s picture

Priority: Normal » Major

Hi again,

Just in case it helps the code I included in the .htaccess file is:

php_flag display_errors on
php_value error_reporting 2047

The above code prints errors to the screen, instead of leaving you clueless with respect to any generated errors. To error I am receiving seems to be tied to the core forum module being enabled.

Regards

Adrian

florian’s picture

The error refers to template.php, which doesn't look right.. it has something with the content_middle region. Delete the following lines from template.php and clear cache:

function phptemplate_preprocess_node(&$vars) {
// Add node region
  if (!$vars['teaser']){
    foreach (array('content_middle') as $region) {
    $vars[$region] = theme('blocks', $region);
    }
  }
  else {
    $vars['content_middle'] = '';
  }

Then put the lines, instead:

function phptemplate_preprocess_node(&$vars) {
// Add node region
  if (!$vars['teaser']){
    foreach (array('content_middle') as $region) {
    $vars[$region] = theme('blocks', $region);
    }
  }

BTW, did you use a modified template.php ?

florian’s picture

I have another idea. Delete zeropoint from server and see if WSOD dissapear. Use Garland theme. Then, switch back to zeropoint.

Abeaudrian’s picture

Deleted the theme and it works without the WSOD. Will reinstall the theme, I just realized that I did modify the theme as a result of Advanced Forum. Just checked and someone had the same problem ( http://drupal.org/node/238330 )and so it should work when I correct this problem, will let you know in a few mins.

By the way are they any advantages of using 6.x-2.3 instead of 6.x-1.10.

Please advise.

Regards

Adrian

Abeaudrian’s picture

Hi Floria

Did exactly as you said @ #3, and it fixed the error. It was due to incorrectly modifying the template.php file.

Regards

Adrian

florian’s picture

Category: bug » support
Priority: Major » Minor
Status: Active » Closed (fixed)