FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » error compacting messages
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
error compacting messages [message #158478] Thu, 26 February 2009 23:26 Go to next message
littleking is currently offline  littleking   United States
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 #158491 is a reply to message #158478] Fri, 27 February 2009 15:35 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Please apply this patch and let me know if it solves the problem or not:

Index: compact.php
===================================================================
RCS file: /forum21/install/www_root/adm/compact.php,v
retrieving revision 1.74
diff -u -r1.74 compact.php
--- compact.php 20 Feb 2009 14:56:15 -0000      1.74
+++ compact.php 27 Feb 2009 15:34:16 -0000
@@ -146,7 +146,7 @@
        } else {
                echo ($prg * 10) . "% done<br />\nETA: " . $eta . " seconds<br />\n";
        }
-       ob_flush(); flush();
+       @ob_flush(); flush();
 }

        if ($FUD_OPT_1 & 1) {
@@ -220,7 +220,7 @@
        /* Private Messages */
        echo "100% Done<br />\n";
        echo "Compacting private messages...<br />\n";
-       ob_flush(); flush();
+       @ob_flush(); flush();

        q('CREATE INDEX '.$tbl.'pmsg_foff_idx ON '.$tbl.'pmsg (foff)');
Re: error compacting messages [message #158495 is a reply to message #158491] Fri, 27 February 2009 16:23 Go to previous messageGo to next message
littleking is currently offline  littleking   United States
Messages: 187
Registered: January 2007
Karma: 2
Senior Member
how?
Re: error compacting messages [message #158496 is a reply to message #158495] Fri, 27 February 2009 16:27 Go to previous messageGo to next message
littleking is currently offline  littleking   United States
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 #158497 is a reply to message #158495] Fri, 27 February 2009 16:31 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Edit the file, remove lines starting with a minus (-) and add lines starting with a plus (+). For more details, see http://cvs.prohost.org/index.php/Applying_patches
Re: error compacting messages [message #158498 is a reply to message #158497] Fri, 27 February 2009 16:34 Go to previous messageGo to next message
littleking is currently offline  littleking   United States
Messages: 187
Registered: January 2007
Karma: 2
Senior Member
see my post above, patch did not help
Re: error compacting messages [message #158500 is a reply to message #158498] Fri, 27 February 2009 17:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Can you please test Jan's patch?
Re: error compacting messages [message #158503 is a reply to message #158500] Fri, 27 February 2009 18:15 Go to previous messageGo to next message
littleking is currently offline  littleking   United States
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);
Re: error compacting messages [message #158511 is a reply to message #158478] Sat, 28 February 2009 11:46 Go to previous messageGo to next message
JanRei is currently offline  JanRei   
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
Strange, you could try the attached file. It should contain the suggested changes of Frank and me.
  • Attachment: compact.php
    (Size: 8.60KB, Downloaded 751 times)
Re: error compacting messages [message #158514 is a reply to message #158511] Sat, 28 February 2009 12:13 Go to previous message
littleking is currently offline  littleking   United States
Messages: 187
Registered: January 2007
Karma: 2
Senior Member
worked!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: subscriptions ucp theme
Next Topic: maillist.php from 2.8, 2.8RC problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Apr 25 13:56:09 GMT 2024

Total time taken to generate the page: 0.05604 seconds