Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Index.php error at top of screen?

Aloittaja DS2987, elokuu 27, 2006, 01:31:05 IP

« edellinen - seuraava »

DS2987

SMF Version: SMF 1.0.8
Hi,

Have just installed SMF but getting the following index.php error at the top of my browser screen?

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'mb_output_handler' in hxxp:www.witheridgemoor.f2s.com/ali_forum/index.php [nonactive] on line 102

Anyone help?

Thanks,

DS2987

J. Williams

Try reuploading index.php, the themes + sources directory to see if that fixes your problem?
Joshua Jon Williams
Back in Action.

DS2987

Thanks J J but still no joy?

Have tried uploading the specified folders & files in Binary and ASCII.

Anymore thoughts?

DS2987

J. Williams

Can you provide us with line 100-104 of index.php?
Joshua Jon Williams
Back in Action.

DS2987

Hi no problem, see below:

100      $modSettings['enableCompressedOutput'] = '0';
101   else
102      ob_start('ob_gzhandler');
103}
104// This makes it so headers can be sent!

Thanks

DS2987

J. Williams

Have you tried turning Compressed Output off?
Joshua Jon Williams
Back in Action.

DS2987

OK this is where I have to come clean! I am no code expert!

Do you mean changing line 100 from '0' to '1' ?

Let me know how to do it and I will try.

DS2987

J. Williams

Well just change it to 1, and see what happens then :D
Joshua Jon Williams
Back in Action.

DS2987

Humm, sorry still no difference....

DS2987

DS2987

Fixed it!

95 // Check if compressed output is enabled, supported, and not already being done.
96 if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 1)
97 {
98   // If zlib is being used, turn off output compression.
99   if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler')
100      $modSettings['enableCompressedOutput'] = '1';
101   else
102      ob_start('ob_gzhandler');

There was another '1' to change on line 96!

Thanks J J

DS2987

Advertisement: