Simple Machines Community Forum

SMF Support => Converting to SMF => IPB => Topic started by: Craw on December 01, 2014, 09:48:10 PM

Title: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 01, 2014, 09:48:10 PM
Hi guys,

I need help. While converting my IPB to SMF 2 I encountered this error:

Code: [Select]
Converting calendar events...Error in convert script - line 571!
Unsuccessful!
This query:
TRUNCATE `travels4_sm4440`.kdq_calendar
SELECT
event_id AS id_event,
event_unixstamp AS start_date, event_unixstamp AS end_date,
'0' AS id_board, '0' AS id_topic, SUBSTRING(event_title, 1, 60) AS title, event_member_id AS id_member
FROM `travels4_4xforum`.ibf_cal_events
LIMIT 0, 500;
Caused the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT
event_id AS id_event,
event_unixstamp AS start_date, event_unixstamp AS' at line 2

I'm a newbie so please be gentle haha :D

Thanks in advance, guys.
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 01, 2014, 09:55:10 PM
Which converter? From which IPB version?
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 02, 2014, 12:04:05 AM
Which converter? From which IPB version?

IPB version 2.3.x to SMF 2

Thanks, Margarett.
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 02, 2014, 04:36:09 AM
And are you using the converter from here http://download.simplemachines.org/?converters;software=invision ?
This one: "Invision 2.3 to SMF 2-0"?

edit: there is an error, yes. Open the .sql file, line 551, you will find this:
Code: [Select]
TRUNCATE {$to_prefix}calendarIt misses a ; at the end, so it should become:
Code: [Select]
TRUNCATE {$to_prefix}calendar;
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Colin on December 02, 2014, 06:14:46 AM
Pesky semicolons.
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 02, 2014, 09:03:10 AM
Thanks. Now this is the error I'm getting:

Code: [Select]
Converting calendar events...Wrong value type sent to the database. Date expected. (start_date)
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 02, 2014, 10:00:33 AM
I'm sorry, I have no access to a IPB database. Can you please take a printscreen of some records of your IPB's "cal_events" table?
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 02, 2014, 11:01:27 PM
Here are screenshots of some of the tables (2 parts to show all available columns) :

http://awesomescreenshot.com/0d73ygkud0
http://awesomescreenshot.com/0e43ygl808
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 03, 2014, 05:46:47 AM
Could you please order that table for "event_unixstamp" (click on the column header)?
I'm trying to understand if you have some null or empty rows in this column ;)
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 03, 2014, 07:00:57 AM
Could you please order that table for "event_unixstamp" (click on the column header)?
I'm trying to understand if you have some null or empty rows in this column ;)
I checked and there weren't any null or empty rows :(
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 03, 2014, 08:53:03 AM
I have to change something on the converter to test, then. I'm not on the computer, will check later ;)
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 03, 2014, 10:09:32 AM
I have to change something on the converter to test, then. I'm not on the computer, will check later ;)
OK. Thanks for the time. Really appreciate it.
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 04, 2014, 02:26:43 PM
Try this, please. If it succeeds, make sure that the dates are correctly converted ;)
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 05, 2014, 01:04:00 AM
Try this, please. If it succeeds, make sure that the dates are correctly converted ;)
Thanks! Will try it and update you :)
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 05, 2014, 06:24:01 PM
Got this error :(

Code: [Select]
Converting members...Wrong value type sent to the database. Date expected. (birthdate)
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on December 05, 2014, 06:36:39 PM
Which means that worked :)

Let me do the same for members.
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on December 05, 2014, 07:56:40 PM
Which means that worked :)

Let me do the same for members.
Thanks!
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: Craw on January 08, 2015, 09:12:14 PM
Which means that worked :)

Let me do the same for members.

Hi Margarett. Any updates?

Thanks.
Title: Re: NEED HELP - Converting calendar events...Error in convert script - line 571!
Post by: margarett on January 09, 2015, 05:59:40 AM
Ups, I forgot, sorry :(

This is different from the other issue, though. And now that I think about it, members are converted before calendar so this error should have triggered first...
Can you get me a printscreen of your members table, with the columns bday_year, bday_month, bday_day? Also please check for inconsistent entries in these columns
And of course, mask out sensitive informations from your members ;)