Support Forum

bbpress to simple:press migration

151 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

OK lets try something else.
Can you briefly switch your site to using the default WP theme ‘twentyten’? Let me know if the page displays then.

DM Dmitry
Dmitry
Member

Yellow Swordfish said:

OK lets try something else.
Can you briefly switch your site to using the default WP theme 'twentyten'? Let me know if the page displays then.

yes, in twenty ten it works fine.

P.S. my page.php template has <?php get_header(); ?> and <?php get_footer(); ?>

header.php has <?php wp_head(); ?>

and footer.php has <?php wp_footer(); ?>

YS Yellow Swordfish
Yellow Swordfish
Member

It probably means your theme is one of those that likes to something clever instead of just displaying the content.
In the forum admin – WP Integration panel – are a couple of options at the bottom to try and overcome this. Try them one at a time and if that doesn’t work try with both turned on.

DM Dmitry
Dmitry
Member

Yellow Swordfish said:

It probably means your theme is one of those that likes to something clever instead of just displaying the content.
In the forum admin – WP Integration panel – are a couple of options at the bottom to try and overcome this. Try them one at a time and if that doesn't work try with both turned on.

You gave me a great idea 🙂

I looked in my functions.php and found one functions:

 

 

 

//PHP-Code for functions.php
function pre_esc_html($content) {
  return preg_replace_callback(
    '#()(.*?)()#imsu',
    create_function(
      '$i',
      'return $i[1].esc_html($i[2]).$i[3];'
    ),
    $content
  );
}
add_filter(
  'the_content',
  'pre_esc_html'
);

 

Without it seems all works fine

YS Yellow Swordfish
Yellow Swordfish
Member

How odd. I wonder what that was for…!
Glad to hear it is all working.

DM Dmitry
Dmitry
Member

But i have another problem. All posts i've imported from bbpress displayed like posted by guest, not by users

http://prntscr.com/1murq

 

(I have intagrated bbpress, so users stored in one wpprefix_user table. when i start importing i do not check last checkbox)

and one more screenshot http://prntscr.com/1mus4 – it is my user, and in bbpress i have a lot of messages, but here 0

YS Yellow Swordfish
Yellow Swordfish
Member

Did you give the table prefix for the users table? It did say that it is required if bbPress is integrated.

DM Dmitry
Dmitry
Member

yes, of course. And Import finished without any errors

YS Yellow Swordfish
Yellow Swordfish
Member

I haven’t myself been able to test with the wp integration in place – that oart was tested by a user who also advised on some code changes.

ao let me see if I understand this please. ALL users already existed in the target database where you were installing SP. Is this correct?

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry to keep asking questions but I am trying to it work out and looking into the code.

You said above that you did NOT tick the box to import the users but I see that is says 1002 users were imported… This is puzzling me at the moment.

YS Yellow Swordfish
Yellow Swordfish
Member

OK – don't worry about the previous question. Not the issue.

Would you be able to try this again but this time include the users?

DM Dmitry
Dmitry
Member

sorry, i read your message after doing that (in top message)

i will be online again after 2 hours from now and will try what you wrote

DM Dmitry
Dmitry
Member

Yellow Swordfish said:

OK – don't worry about the previous question. Not the issue.

Would you be able to try this again but this time include the users?

OH! It worked! thanks