A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
plugins-topic
BBPress Importer only grabbing users
Avatar
Justin Harter
2 Posts
(Offline)
1
Aug 17, 2018 - 3:17 pm
Print

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

19448 Posts
(Offline)
2
Aug 18, 2018 - 4:34 pm
Print

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

16436 Posts
(Offline)
3
Aug 23, 2018 - 2:01 am
Print

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
2 Posts
(Offline)
4
Aug 23, 2018 - 7:55 pm
Print

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

19448 Posts
(Offline)
5
Aug 23, 2018 - 9:22 pm
Print

good news.. thanks for the update…

Forum Timezone: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
David Hnát
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
narek amprachamian
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79362

 

Member Stats:
Guest Posters: 607
Members: 16922
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
6
Currently Browsing this Page

1 Guest(s)