Simple Machines Community Forum

SMF Support => Converting to SMF => MyBB => Topic started by: The 12th Doctor on November 24, 2010, 05:50:51 PM

Title: Conversion Error...
Post by: The 12th Doctor on November 24, 2010, 05:50:51 PM
Trying to convert from MyBB 1.6 to SMF 2.0 rc4. But when i go to start the conversion i get the following error message:

Converting members...Wrong value type sent to the database. Date expected. (birthdate)

Anyone know how i can get round this?

Thanks

Jon
Title: Re: Conversion Error...
Post by: The 12th Doctor on November 25, 2010, 06:30:58 AM
Found out the problem, in the mybb16x_to_smf.sql file replace:

timeonline AS total_time_logged_in,
   CASE
      WHEN birthday = '' THEN '0001-01-01'
      ELSE CONCAT_WS('-', RIGHT(birthday, 4), SUBSTRING(birthday, LOCATE('-', birthday) + 1, LOCATE('-', birthday, LOCATE('-', birthday) + 1) - LOCATE('-', birthday) - 1), LEFT(birthday, LOCATE('-', birthday) - 1))
   END AS birthdate


With:

timeonline AS total_time_logged_in

This worked for me!
Title: Re: Conversion Error...
Post by: Norv on November 25, 2010, 08:30:00 AM
Sorry for the delay on this, and thank you for coming back on it!
It seems the converter still has a problem with invalid birthdates. I will take a look to see what we can do.