Active
Project:
vBulletin (and Photopost) to Drupal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2012 at 17:24 UTC
Updated:
21 Jun 2012 at 14:55 UTC
When I try to import Visitor and Private Messages from a vB 4.1.4 installation to Drupal 6.25 using Facebook Style Statuses 3.1 and Privatemsg 6.x-2.x-dev it fails with the following errors:
Maybe the module needs an update to work with the latest versions of Facebook-Style Statuses and Privatemsg?
Comments
Comment #0.0
Würden commentededit
Comment #0.1
Würden commentededit
Comment #0.2
Würden commented.
Comment #0.3
Würden commented.
Comment #1
liam mcdermott commentedCertainly looks that way! Thanks for the bug report, not sure when I'll get to this as I've got a completely unrelated job that has to take priority.
If anyone else wants to have a go at this, the field names are correct in the Drupal 7 version of vB to Drupal (or at least, I hope they are!) and this shouldn't take long to fix, though it'll need testing.
Comment #2
Würden commentedThis is a really quick fix, not well tested yet:
vbtofss.module replace line 32 with this:
'facebook_status' => array('recipient', 'sender'),
vbtofss.module replace line 50 with this:
$sql = "INSERT INTO {facebook_status} (sid, recipient, sender, created, message)
vbtoprivatemsg.module replace line 30 with:
'pm_index' => array('recipient'),
vbtoprivatemsg.module replace line 58 with:
$sql = "INSERT IGNORE INTO %s (mid, thread_id, recipient, is_new, deleted)
vbtoprivatemsg.module replace line 69 with:
$sql = "INSERT IGNORE INTO %s (mid, thread_id, recipient, is_new, deleted)
EDIT: PM seems to work ok, I can't get the fb statuses to show although they have been added to the database without any errors.
EDIT 2: An alternative upgrade path to FBSS could be to first install version 6.x-2.4, do the import as you normally would and then upgrade the FBSS module to 3.1 using update.php. I finally managed to solve this issue using this workaround.
Comment #3
liam mcdermott commentedThanks for this CFE, I'll use your code as the basis of a patch.
Comment #4
Würden commentedI'm not much of a SQL shark unfortunately, I can see this much though: there are no big differences between the database tables, they just changed the names on some of the columns and added indexes. I probably couldn't get it to work because I haven't worked with indexes before - however you should be able to see the upgrade path in the .install-file of each module. An idea/feature request could be to add support for both FBSS v.2.x and 3.x, since you already have the 2.x support.
Comment #4.0
Würden commented.