Jump to content

Rebuilding posts in 2.3.0?


Guest Luke

Recommended Posts

  • Replies 80
  • Created
  • Last Reply
Posted

I was not able to choose which post ID to start from, or end at. I ran php -q rebuildposts.php, pressed 'p' and it started scrolling through posts. Did I miss a step?

Posted

Hello mabye one of you can assist me. I have a board with some 900k posts and through the GUI its taking forever. So i tried to run the following and it just hangs forever after i hit 'p'. Any ideas or how long should I wait (waited some 10+mins)

# php rebuildposts.php
--------------------------------------------
Welcome to the IP.Board Shell Post Rebuilder
--------------------------------------------
What do you wish to rebuild? [p=Posts, c=Calendar Events, m=Personal Messages, a =Announcements, s=Signatures]
Enter:
p

Posted

Well, not really. You might want to rebuild the first 1000 posts. Or you might want to open 4 shell windows and split the rebuild over those 4 windows.


Window 1) 0 - 250,000


Window 2) 250,000 - 500,000


Window 3) 500,000 - 750,000


Window 4) 750,000 - 1,000,000.


et. cetera...


I cant select any choices you are talking about Matt, like the others below..

I was not able to choose which post ID to start from, or end at. I ran php -q rebuildposts.php, pressed 'p' and it started scrolling through posts. Did I miss a step?


Hello mabye one of you can assist me. I have a board with some 900k posts and through the GUI its taking forever. So i tried to run the following and it just hangs forever after i hit 'p'. Any ideas or how long should I wait (waited some 10+mins)



# php rebuildposts.php


--------------------------------------------


Welcome to the IP.Board Shell Post Rebuilder


--------------------------------------------


What do you wish to rebuild? [p=Posts, c=Calendar Events, m=Personal Messages, a =Announcements, s=Signatures]


Enter:


p


I have the same problem, if it is a problem. I saw this message;

What do you wish to rebuild? [p=Posts, c=Calendar Events, m=Personal Messages, a                                                                             =Announcements, s=Signatures]
Enter:


Pressing "p" and enter, thats all. After waiting a long time, it is finish (if its work for me).
Is this a problem? or It does rebuild the posts? How can i sure or check it is working, any idea?
Thank for this great utility also :thumbsup: :thumbsup: (w00t)

Posted

if your having problems with it not allowing for other options to be picked, here is the fix:

Find:

//-----------------------------------------
// My get
//-----------------------------------------

function getoption()
{
    $stdin = fopen('php://stdin', 'r');
    $option = trim( fgets( $stdin ) );
    fclose( $stdin );
    
    return $option;
}

Replace with:

//-----------------------------------------
// My get
//-----------------------------------------

function getoption()
{
    static $stdin = '';
    
    if( ! $stdin )
    {
      $stdin = fopen('php://stdin', 'r');
    }
    
    $option = trim( fgets( $stdin ) );    
      
    return $option;
}

Posted

So the shell scrip tis flawed? My forum has around 600,000 posts, how long should it take on a Xeon 3060 with 2GB memory?

  • 3 weeks later...
Posted

Hi Matt,

I had use your scipt, but he don't solve the problem with html.


I have upgraded from 2.1.7 to 2.3.1.

I used your script on my 500 000 posts.

It's OK for bb code, but not for html.

For example I can see this on my board :

Du
port

:

29938

style="color: rgb(255, 0, 0);">


style="color: rgb(0, 0, 0);"> (texte ici)


style="font-weight: bold; font-style: italic;">


style="font-style: italic;">


style="font-weight: bold;">




style="font-style: italic; font-weight: bold;">au port


:

29938

style="color: rgb(255, 0, 0);">


style="color: rgb(0, 0, 0);"> (texte la)



Posted

I try to resolve my problem without result.

Text of my post in 2.1.7 in the database :
This post is configure with html + manual return

&gt;&lt;a<br /> style=&quot;font-weight: bold; color: rgb(255, 102, 0);&quot;<br /> href=&quot;#Etape1_light&quot;&gt;&lt;span<br /> style=&quot;text-decoration: underline;&quot;&gt;Etape<br />1 :&lt;/span&gt;&lt;/a&gt;&lt;span<br /> style=&quot;font-weight: bold; color: rgb(255, 102, 0);&quot;&gt;<br />Attribuer une IP fixe 
Posted

For you folks still having problems, you might consider submitting a ticket via the client center so that it can get looked into. :)

Posted

I did it, but, they don't work sunday ;)

So I create a script who extract only data from "html" post, and convert it to 2.3.1 format and after I had replace theses posts by converted version.


Thanks for your reply

Posted

There are some bugs with the rebuild routine (it's not specific to the shell script) I am working on for the next release. I do apologize for the inconvenience - there were massive changes to the way html and custom bbcode are stored/parsed in 2.3, and a few bugs slipped through the testing.

Posted

At least i know now that i am not crazy, i thought i was doing something wrong. Is there a work around for this yet? HTML is not parsing correctly for my announcements and they are fairly important to my forums.

thX!

P.S. Would it be better if i file a support ticket fot this?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...