1.5.2 instal: pics dont display, uploaded HTML displays w. garbage, 'header' warnings, and more :-(

1.5.2 instal: pics dont display, uploaded HTML displays w. garbage, 'header' warnings, and more :-(

by Atanas Radenski -
Number of replies: 2

Hello,

I have installed Moodle 1.5.2 on a Linux (Kernel 2.6.9-11.ELsmp), PhP 4.3.11, Apache 1.3.33, MySql 4.0.24-standard-log. My test site is on http://studypack.com/mdl/.

I get numerous problems with this installation as follows, and any hints on what to try would be appreciated. Thanks in advance. Here is a problem desription.

1. Moodle produces warnings when the moodle home page opens (show on top of page):

Warning: Cannot modify header information - headers already sent by (output started at /home/studypac/public_html/mdl/config.php:297) in /home/studypac/public_html/mdl/lib/moodlelib.php on line 2135
Warning: Cannot modify header information - headers already sent by (output started at /home/studypac/public_html/mdl/config.php:297) in /home/studypac/public_html/mdl/lib/moodlelib.php on line 2136

2. I could not login first time (only). Got a message saying cookies are not enabled.

I got username and new password by email. I was not sure it was actually needed, because the problem was aliviated only after I started a fresh browser session, and after that login was OK. This happened only immediately after installation.

3. Moodle produces garbage when displaying uploaded html / mht files (or even does not display some at all):

===

MIME-Version: 1.0 Content-Location: file:///C:/B133BD54/MHT.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii"

... Actual text from the file

Warning: Cannot modify header information - hea= ders already sent by (output started at /home/studypac/public_html/mdl/config.php:297) in /home/ studypac/public_html/mdl/lib/moodlelib.php on line 2135
Warning: Cannot modify header information - headers already sent by (output started at /home/studypac/public_html/mdl/config.php:297) in /ho= me/ studypac/public_html/mdl/lib/moodlelib.php on lin= e 2136

===

Any hints would be appreciated.

In reply to Atanas Radenski

Re: 1.5.2 instal: pics dont display, uploaded HTML displays w. garbage, 'header' warnings, and more :-(

by Jan Dierckx -

Clicking on the highlighted headers already sent message in your own post or in this one will take you to a FAQ entry with some information on this error: you need to make sure config.php dosn't have blank lines or spaces after the final ?>

The picture problem and mht/html problem could be related to this. I don't know about problem 2. Sorry.

In reply to Jan Dierckx

Re: 1.5.2 instal: pics dont display, uploaded HTML displays w. garbage, 'header' warnings, and more :-(

by Atanas Radenski -

Indeed, I used the Cpanle's File Manager to edit the config.php file, and this editor seems to always insert a new line after after the final ?>. I tried a different editor and this solved all problems from my previous post, including the display of uploaded htm files.

Jan, thank you for responding. Before I posted my inquery, I briefly searched the forums. I found so many posts that I could not notice a relevant answer. Next time will be more careful. Thanks again.

Atanas