Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
BBPress Importer only grabbing users
Avatar
Justin Harter
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2018 - 3:17 pm

SimplePress 5.7.5.2

BBPress 2.5.10

I'm trying to import from BBPress to a new SimplePress install but it only seems to import users. The importer runs quickly, grabs about 300 users, then exits successfully with no forums/topics/etc. There are about 200 topics in the current BBPress forum that don't get recognized.

Nothing in the logs, no error anywhere.

I found this old thread with what looks like the same issue but no resolution.

Any help would be appreciated!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 18, 2018 - 4:34 pm

no resolution because they never came back to questions sent to them... its not a regularly occurring issue...

If you want to send us a copy of your database, we can try it...  email to support at simple-press dot come...  @yellow-swordfish will try to take a look at it..

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 23, 2018 - 2:01 am

Managed to get a quick look at the database you sent me this morning. The problem starts with what is clearly a short-sighted issue with the importer - but then again, to be frank, the importer needs a complete overhaul anyway!

So - the importer assumes your bbPress forums, topics and posts have a post_status of 'publish' whereas, in fact your forums are all marked as 'private'.

If you are OK making a small code edit we can deal with this and you can give things another whirl. I have been unable to try this yet myself as explained in the email I sent you.

The file you need to change, in the sp_import plugin is sp-import/importers/bbpress-plugin.php

Scroil down to about line 83 and find the comment SFFORUMS Table Mappings. There are two blocks of SQL for 'select' and 'where' clauses. Just remove the

AND post_status='publish' from each - or - change the 'publish' to 'private'. Hopefully that will fix things. Don't forget to change BOTH clauses.

A very quick check suggests that topics and forum posts do all have a status of 'publish'.

Let me know how you get on.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Justin Harter
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 23, 2018 - 7:55 pm

Ah! Good catch! That was most definitely it.

It looks like it skipped a few topics, but 99% of it was imported after that change and that's good enough for me.

Thanks so much for your help!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 23, 2018 - 9:22 pm

good news.. thanks for the update...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590