Support Forum

phpBB3 Import – omitted all but 2 forums

DB David Bentley
David Bentley
Member

I just successfully imported all of my users and their passwords, but a problem with the forums/posts: sp importer only imported 2 subforums and their posts (72 total posts) but omitted the rest.

My old forum structure:

Welcome to the forum – 1 post

Before-Purchase Questions – 1 post

Members Welcome – START HERE – 1 post

Introduce Yourself – 126 posts

General Questions – 194 posts

2 subforums containing 72 total posts (these are the two that worked)

the remaining 122 posts are just sort of there in the General Questions Forum as the posts for that main forum

Your Story – 21 posts

Off Topic – 23 posts

 

I am mostly concerned with importing the 122 posts in the General Questions forum that were omitted from the import. The rest I can easily recreate and/or don’t desperately need. But the 122 contain many unanswered posts and folks are waiting for me to answer!

Did I do something wrong? My table name was phpbb_ – was I supposed to use something else? Anything I can do to add in just these (I know you can use the SP Importer with a non-empty forum).

 

Help!

 

Thanks

16 Answers

New Answer

MP Mr Papa
Mr Papa
Member

so it got a parent forum but missed the subforums?  or vice versa…  and this was up to date phpbb3?

did it get any posts from the missed forums or completely missed them?  was the forum created?  can you look in the sfforums table and see if they exist?

sorry, just trying to be exact…

 

DB David Bentley
David Bentley
Member

Mr Papa said
so it got a parent forum but missed the subforums?  or vice versa…  and this was up to date phpbb3?

did it get any posts from the missed forums or completely missed them?  was the forum created?  can you look in the sfforums table and see if they exist?

sorry, just trying to be exact…

 

No worries – thanks for your quick reply. It only got the (only) 2 subforums and its threads/posts…completely missed the parent forums (7 total) and all their threads/posts (100s). This was phpbb3.0.11 (current version).

I looked into the sfforums table and saw only the two subforums in there (here are two screenshots)Screen-Shot-2013-04-20-at-8.34.06-AM.pngScreen-Shot-2013-04-20-at-8.36.59-AM.png. Looks like the parent forums just didn’t transfer.

As an experiment, I uploaded my .sql file into a fresh install of phpbb3.0.11 and all the forums/subforums/posts are there, error-free.

Anything we can do?

Thanks!

YS Yellow Swordfish
Yellow Swordfish
Member

You have not said what messages you received when the import finished. Were any errors reported? Like a list of forums or topics that failed to import for example?

DB David Bentley
David Bentley
Member

Sorry – there were no error messages. I didn’t save a screenshot but it basically was all green and listed out total subscribers imported (600+), two forums, # of posts, etc. It appeared to be a totally normal “success” message with some additional information at the bottom of what else to change (admin users, etc.). No import “failed” messages or line items whatsoever.

YS Yellow Swordfish
Yellow Swordfish
Member

No error messages is suggestive of the fact that the importer knew nothing about these forums to start with. If a forum is ‘known’ but fails to import for any reason then this triggers messages. No message probably means it wasn’t even aware of their existence.

The only reason I can think of for this is that perhaps phpBB have made some changes to their database schema in the latest versions that we are unaware of. The only possible way I have to test that theory is if someone such as yourself is willing to let me have a copy of the database so I can look at it….

DB David Bentley
David Bentley
Member

I was thinking along the same lines.

Happy to share it with you! Where should I send it…or should I send you phpmyadmin for it?

I appreciate your help.

YS Yellow Swordfish
Yellow Swordfish
Member

Yes indeed and have just been looking at it.

This IS different to any other phpBB database I have seen before but I have no idea why. When creating the lost of forums that need to be imported we use the criteria of ‘WHERE parent_id != 0’ within the forums table. in your database this only applies to 2 forums and what I don’t know or understand is why other, active. forums have a parent_id of 0.

I am hoping you may be able to shed some light on this…

MP Mr Papa
Mr Papa
Member

from the peanut gallery… 

does parent_id = 0 indicate a top level forum?  wouldnt all top level forums have it set to 0?  and then any child forums would have it set to the parent id?

DB David Bentley
David Bentley
Member

for Yellow Swordfish – I really don’t know what you mean. Do I need to go into my tables and change something for it to work? I started with phpBB about 2 years ago, whatever version that was at the time, and definitely didn’t modify the tables or even open phpmyadmin the whole time. All that said, no idea where to go with this other than if you think I should update something in the tables of the phpbb forum…which btw was restored perfectly in a new install of phpBB…so that leads me to believe that the tables are normal and fine per phpBB but not to the Sp-importer….?

MP Mr Papa
Mr Papa
Member

nothing to do yet… Andy is looking into it and trying to figure out why its different than all the other phpbb3 databases we have converted…

its night in UK now, so he should respond back tomorrow…