News:

Wondering if this will always be free?  See why free is better.

Main Menu

IPB 2.0.3 to SMF 1.1.5 Error when converting Permissions

Started by Salkiri, May 28, 2008, 08:16:49 PM

Previous topic - Next topic

Salkiri

Getting the following error when trying to convert.  I downloaded the Convert.php and the SQL file from http://www.simplemachines.org/community/index.php?topic=149092.0

Converting permissions... Unsuccessful!
This query:

    INSERT INTO `smftbc`.smf_membergroups
    (ID_GROUP, groupName, maxMessages, onlineColor, stars)
    VALUES
    (6 + 3, SUBSTRING('TBC Brothers', 1, 255), 50, '', '');

Caused the error:

    Duplicate entry '9' for key 1

SleePy

Open the .sql script
Find:
                INSERT INTO {$to_prefix}membergroups

Replace:
                INSERT IGNORE INTO {$to_prefix}membergroups

Hopefully that helps :)
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Salkiri

Well, now I'm getting a new error. 

Fatal error: Cannot redeclare magicmask() (previously declared in /home/ACCOUNT/blackco/test/convert.php(910) : eval()'d code:41) in /home/ACCOUNT/blackco/test/convert.php(913) : eval()'d code on line 41


SleePy

Try this one. I added function checks to prevent it from having duplicate functions.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Salkiri

Well, we're getting there...

Converting posts (this may take some time)... Successful.
Converting polls... Successful.
Converting poll options... Successful.
Converting poll logs... Successful.
Converting personal messages (step 1)... Successful.
Converting personal messages (step 2)... Successful.
Converting personal messages (step 3)... Successful.
Converting topic notifications... Successful.
Converting board notifications... Successful.
Converting moderators... Successful.
Converting yearly events... Successful.
Converting permissions... Successful.
Converting board permissions...
Fatal error: Call to undefined function smfGroup() in /home/ACCOUNT/blackco/test/convert.php(910) : eval()'d code on line 128

SleePy

Sorry about that. My lack of skills for copy and pasting :P
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Salkiri

Worked perfectly!  Ty very much for your help.  I can't wait to get off of IPB.

Advertisement: