Installing moodle 1.7 stucks with blank page

Installing moodle 1.7 stucks with blank page

by Michel Piguet -
Number of replies: 4
Hello

The Installation procedure stopped at /moodle/admin/config.php without error information with a blank screen. No way to continue.

After analysing config.php I found a line that caused the problem.
while(@ob_end_clean()); // ob_end_flush prevents sending of headers
After commenting out that line, it continues. php seems to be unable to parse the config.php.

My question: Do I have to expect other problems during normal use?

Details :

  • Linux: 2.6.9-42.0.3.ELsmp
  • Apache: 1.3.37 (Unix)
  • PHP: 5.1.5
  • mySQL: 5.0.24-standard
Thank you
Michel
Average of ratings: -
In reply to Michel Piguet

Re: Installing moodle 1.7 stucks with blank page

by Ken Wilson -

Hi Michel

I'm having problems finding that file moodle/admin/config.php. Did you mean moodle/admin/index.php?

Also, that function is used in several of moodle's php scripts, so can you confirm that you are using either ob_gzhandler or zlib.output_compression in your php.ini file (but not both).

Thanks

Ken

In reply to Ken Wilson

Re: Installing moodle 1.7 stucks with blank page

by Michel Piguet -
Hi Ken

Sorry, you're right. It's moodle/admin/index.php. I searched for other occurences of "ob_end_clean". There are 26 files.

I tried to start them (where it seems apropriate):

"admin/phpinfo.php" performs without problems.
It contains:
ob_end_clean();

"admin/health.php" ends with a blank page (as does "admin/index.php")
It contains:
if (!@ob_end_clean()) {
 break;
 }
Where to look? No error message helps me to find the problem. Do you have any idea or hint? Thank you.

Michel

In reply to Michel Piguet

Re: Installing moodle 1.7 stucks with blank page

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi!

This code was taken directly from the php manual - see http://cz2.php.net/manual/en/function.ob-end-clean.php

If it fails there must be something seriously wrong. Many other places rely on correct function of output buffer, not only admin page. Please try to find the real cause of the problem instead of commenting it out, I guess you would run into problems later anyway.

skodak
In reply to Petr Skoda

Re: Installing moodle 1.7 stucks with blank page

by Michel Piguet -
Hello!

Please see my message in reply to Ken. There is for example admin/phpinfo.php that contains simply "ob_end_clean();". This works. So I guess that the while-clause may cause a problem...

while(@ob_end_clean());

Where should I look for finding the problem?

Michel