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
Comment #1
Abeaudrian commentedHi 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
Comment #2
florian commentedThe 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:
Then put the lines, instead:
BTW, did you use a modified template.php ?
Comment #3
florian commentedI have another idea. Delete zeropoint from server and see if WSOD dissapear. Use Garland theme. Then, switch back to zeropoint.
Comment #4
Abeaudrian commentedDeleted 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
Comment #5
Abeaudrian commentedHi Floria
Did exactly as you said @ #3, and it fixed the error. It was due to incorrectly modifying the template.php file.
Regards
Adrian
Comment #6
florian commented