Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Error in import from SMF
Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
Aug 23, 2017 - 2:41 pm

I am trying to  import an SMF 2.0.14 in Simple:Press. Once the users are in, the process starts with the messages and dies. Here is the error from the logs:

 

file: /home/canvascampers.net/public_html/wp-content/plugins/sp-import/engine/spimport.php
line: 234
function: sp_build_post_index
error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' post_count=0, post_id_held=0, post_count_held=0 WHERE topic_id=' at line 2

UPDATE wp_sftopics SET post_id=, post_count=0, post_id_held=0, post_count_held=0 WHERE topic_id=170

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 23, 2017 - 8:48 pm

does anything get imported?   

I notice this is MariaDB... not sure it matters, but doubt we have tested on that specific app... 

what is the version of SMF?  and its a clean database moving into from simple press perspective?

may need to wait for @yellow-swordfish tomorrow since he wrote the importer...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 24, 2017 - 3:41 am

There is no value for the post_id ('ID_MSG' in the "messages' table in SMF V1 - or 'id_msg' in SMF version 2). Perhaps the first thing to check is that these column names are still correct and, if so, all are populated.

And the question @mr-papa asked above as well - did anything get imported after the users?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
Aug 24, 2017 - 2:53 pm

It got the users, all the forum categories and the first 2 forums under the first category with all the topics and replies.

 

SMF 2.0.14

I could do it an ugly way and import in bbpress, then import into Simple:press but rather not do that headache.

 

Source: http://canvascampers.com/index.....=community

Development Destination: http://canvascampers.net/forum/

I deleted the empty categories and reindexed. What comes over works.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 25, 2017 - 2:46 am

Not sure I much like the sound of converting to bbPress first. That could potentially introduce it's own set of unwanted problems!

Short of using a service such as http://gconverters.com - the only way we could probably help diagnose the issue would be to have a complete copy of the current SMF database so that we could test it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
Aug 29, 2017 - 12:29 pm

Its not a huge database, if you send me FTP information I will sent you a copy.

Its a 13mb zip, so I could just email it also.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 30, 2017 - 2:16 am

Try the email. support at simple-press dot com

Or copy up to a public folder on your site and I can download from there...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Phil Gordemer
Member
Free Members
sp_UserOfflineSmall Offline
Aug 30, 2017 - 9:53 am

Send via email, referenced this thread in the email.

Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 30, 2017 - 1:28 pm

Nothing has arrived...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 30, 2017 - 3:29 pm

Ah... and now it has.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626