News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

NEED HELP - Converting calendar events...Error in convert script - line 571!

Started by Craw, December 01, 2014, 09:48:10 PM

Previous topic - Next topic

Craw

Hi guys,

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


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.
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Craw

4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

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:
TRUNCATE {$to_prefix}calendar
It misses a ; at the end, so it should become:
TRUNCATE {$to_prefix}calendar;
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Craw

Thanks. Now this is the error I'm getting:

Converting calendar events...Wrong value type sent to the database. Date expected. (start_date)
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

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?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Craw

4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

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 ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Craw

Quote from: 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 ;)
I checked and there weren't any null or empty rows :(
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

I have to change something on the converter to test, then. I'm not on the computer, will check later ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Craw

Quote from: 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 ;)
OK. Thanks for the time. Really appreciate it.
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

Try this, please. If it succeeds, make sure that the dates are correctly converted ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Craw

Quote from: margarett on December 04, 2014, 02:26:43 PM
Try this, please. If it succeeds, make sure that the dates are correctly converted ;)
Thanks! Will try it and update you :)
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

Craw

Got this error :(

Converting members...Wrong value type sent to the database. Date expected. (birthdate)
4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Craw

4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

Craw

4x4 Philippines | www.4xph.com

But He (Jesus Christ) said to me, "My grace is sufficient for you,
for my power is made perfect in weakness."
Therefore
I will boast all the more gladly about my weaknesses,
so that Christ's power may rest on me. -- 2 Corinthians 12:9

margarett

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 ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: