error compacting messages [message #158478] |
Thu, 26 February 2009 23:26 |
littleking
Messages: 187 Registered: January 2007
Karma: 2
|
Senior Member |
|
|
i did not select convert to or from and got
Disabling the forum for the duration of maintenance run
Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
10% done
ETA: 18 seconds
An error was generated in file compact.php on line 149.
The error message was: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush.
|
|
|
|
|
Re: error compacting messages [message #158496 is a reply to message #158495] |
Fri, 27 February 2009 16:27 |
littleking
Messages: 187 Registered: January 2007
Karma: 2
|
Senior Member |
|
|
im guessing to add the @ in front of ob_flush(); flush(); to make it look like @ob_flush(); flush(); ??
147 echo ($prg * 10) . "% done<br />\nETA: " . $eta . " seconds< br />\n";
148 }
149 @ob_flush(); flush();
150 }
if so, that did not work
Disabling the forum for the duration of maintenance run
Please wait while forum is being compacted.
This may take a while depending on the size of your forum.
Compacting normal messages...
10% done
ETA: 9 seconds
An error was generated in file /homepages/35/d196178364/htdocs/huntohio/adm/compact.php on line 149.
The error message was: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush.
[Updated on: Fri, 27 February 2009 16:29] Report message to a moderator
|
|
|
|
|
|
Re: error compacting messages [message #158503 is a reply to message #158500] |
Fri, 27 February 2009 18:15 |
littleking
Messages: 187 Registered: January 2007
Karma: 2
|
Senior Member |
|
|
when i do that, i get:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/35/d196178364/htdocs/encore/adm/compact.php on line 115
set_error_handler ('error_handler');
97
98 function error_handler ($level, $message, $file, $line, $context) {
99 if (error_reporting() != 0) {
100 echo <<<_END_
101 <script type="text/javascript">clearInterval(intervalID);</script>
102 <p>An error was generated in file $file on line $line.</p>
103 <p><font color="red">The error message was: $message</font></p>
104 _END_;
105 exit;
106 } else {
107 return;
108 }
109 }
110
111 function write_body_c($data, &$len, &$offset, $fid)
112 {
113 $MAX_FILE_SIZE = 2140000000;
114
115 if (!empty($_POST['fromcharset']) || !empty($_POST['tocharset'])) {
116 $newdata = iconv($_POST['fromcharset'], $_POST['tocharset'], $data);
|
|
|
|
|