Error Message: Warning: Cannot modify header information

Error Message: Warning: Cannot modify header information

by Dave Emsley -
Number of replies: 0

We're using Moodle 1.6 and it works fine however I want to add a section of menu structure to the site and add an internal menu above the Moodle VLE.  Our main site is www.shelleycollege.org and this menu, or similar, is what I want to add.

I've used:

<?php
require($CFG->dirroot .'internalmenu.php');
?>

above the first liness of /moodle/index.php and this works except for the error:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/moodle/internalmenu.php:7) in /var/www/moodle/lib/setup.php on line 431

Once I log in the error message disappears.

Any ideas anyone?

Cheers

Dave

Average of ratings: -