PDA

View Full Version : pnphpbb and attachments


whodah
Fri 29th Apr '05, 2:05pm
hello!

i've got 100's of attachments in my pnphpbb installation.

i've run the impex import successfully on all sections (including avatars) except for the attachments...

well... i've got some success w/ the attachments. i import about 7 of them and error out on 30...

but there should be 100's. the import routine simply seems to ignore these other 100's of attachments. it doesn't try, it doesn't error out on 'em.

any ideas?

ty! :)

Jerry
Fri 29th Apr '05, 6:23pm
What is the error ? file not found or origional post not found ?

whodah
Fri 29th Apr '05, 6:45pm
heya!

it simply wasn't trying to import the images... i only got 30 attempts...

but here's somehting i just tried...

if i set:
Attachments to import per cycle (must be greater than 1) to X i get Y imported and Z failed. in this order:

x: 50
y: 7
z: 23

x: 500
y: 352
z: 92

x: 5000
y: 985
z: 144

which the last one, y + z = 1129 which is the record count i have in my _phpbb_attachments_desc table...

so - maybe it's the auto-js forward thingy that's hosing?

it worked on all other imports (i.e. i set it to 1000 for thread importation an dhad 16000 threads and the js auto-forward routing worked)

so i'm one step closer!!

now i'm in this boat:
attachments show up in attachment manager, but not in posts (http://www.vbulletin.com/forum/showthread.php?t=136997&highlight=attachments) although i'm already setup for a 'file' attachment storage...

Jerry
Fri 29th Apr '05, 6:54pm
Ahh, this comes from phpBB allowing duplicate id's in the attachments table, so if you select 100 and it gets 90, impex things is finished because 90 is less than 100, go with the 5000 per page.

Can you import to the database then move the attachments to the file system.

If you have updated the counters they should be showing in the posts.

whodah
Fri 29th Apr '05, 7:07pm
that was the ticket. i re-ran the 'update counters' and it cleared it up.

attachments are now showing! :)

thx jerry!

PS: interesting gotcha on the duplicate id's!!

b00st
Mon 31st Oct '05, 7:55pm
Hey i also imported from PNphpBB and my attachments wont import at all. I keeps saying Source File Not Found. I am 100% sure i have put the right location to the attachments folder.

What am i doing wrong?

Jerry
Mon 31st Oct '05, 8:30pm
Hey i also imported from PNphpBB and my attachments wont import at all. I keeps saying Source File Not Found. I am 100% sure i have put the right location to the attachments folder.

What am i doing wrong?

Nine times out of ten its the path not being full. If you have ssh access, go to the dir all the attachments are in and type "pwd".