Script for migrating from Flutter V 1.1 and 1.0,1.2 and 1.3
Hi Folks.
Edgar wrote a script for migrating from the last version of flutter (v1.0 or v 1.1) to magic fields (v 1.1).
You can download the script from here:
or from here:
http://magicfields.org/wp-content/uploads/2009/09/migra.txt
How use it.
Just follow the next steps:
Download the script here you have a raw version.
Make a backup of your database (for any unexpected bug).
Unactive flutter
Put the script in your parent folder (where you has the wp-config.php and all these stuff)
Rename the script from migra.txt to migra.php
Enter to http://yoursite.tld/migra.php
And its all, this script change all reference from flutter to magic fields.
Change the name of your folder files_flutter to files_mf
Put the Magic fields plugin in your plugins folder.
In your admin area active Magic Fields.
And its done.
UPDATE:
for the version 1.2 of Magic Fields uses this script. http://gist.github.com/227581
UPDATE:
for the version 1.3 of Magic Fields uses this script. http://gist.github.com/284805
Gnuget (David V) is a Web developer since 2002 working under wordpress the last year.


Jens Wedin
30 Sep, 2009
Thank you!
Xavi Ivars
1 Oct, 2009
Now we need a script for massive adding of custom fields created before MagicFields was installed
Jens Wedin
1 Oct, 2009
@Xavi: Yep
Jens Wedin
1 Oct, 2009
I have a question, not sure if it is related to this script. I ran the script and most things looks ok
Except all my images that use the “image” custom field type. They worked fine before in Flutter but I didn’t use the default folder “flutter_files” but instead the “uploads” folder.
I tried to change the upload folder in the “RCCWP_Constant.php” file from “files_mf” to “uploads” but no good. I also tried to upload new files and it sais “Successful upload!” but no image is shown.
Could it be a bug or am I doing something wrong?
/Jens
Jeff
1 Oct, 2009
This is the one I used:
http://gist.github.com/199241
I like it a bit better because it’s non-destructive to you existing tables. Ya know, just in case
hunk
2 Oct, 2009
hi
thanks Jeff. nice
Jens I did the change of directory of files_mf to upload and this working correctly.
line 105 of the file RCCWP_Constant.php
define(‘MF_FILES_NAME’,'files_mf’); for
define(‘MF_FILES_NAME’,'uploads’);
you can verify if this changing path correctly with I echo MF_FILES_PATH;
Jens Wedin
3 Oct, 2009
@hunk: The file are uploaded to the correct folder (for me uploads) but I seem to get an error in one of the phpthumb files, phpThumb.php. See error below.
Notice: Use of undefined constant E_DEPRECATED – assumed ‘E_DEPRECATED’ in /Users/jens/Sites/chwisgi-dev/wp-content/plugins/magic-fields/thirdparty/phpthumb/phpThumb.php on line 12
hunk
3 Oct, 2009
Hi jeff.
change the line 12 of the phpThumb.php (wp-content/plugins/magic-fields/thirdparty/phpthumb)
error_reporting(E_ALL & ~E_DEPRECATED);
for this
if (defined(‘E_DEPRECATED’)) error_reporting(E_ALL & ~E_DEPRECATED); else error_reporting(E_ALL);
E_DEPRECATED is one new error level of php 5.3 http://php.net/manual/en/migration53.deprecated.php
with the change it will have to work correctly
Jens Wedin
4 Oct, 2009
Hi again
I still get an error. I moved this thread to the support forum instead. Please have look a look >> http://groups.google.com/group/magic-fields/browse_thread/thread/d863505dcc65ff96
Brent (RedSpark Labs)
21 Oct, 2009
Xavi,
I have moved all of mine over if you want the instructions. You just have to change a few of the meta tags in the db.
Eivind F S
3 Nov, 2009
Hi, I’m running Flutter 1.1 on this website: Masculinity Movies, and when I tried upgrading with the script just now, it didn’t work.
All of the fields disappear from the “write panel” setup section. The write panels themselves seem to stay functional, but I lose all the data on the setup.
Any ideas?
Loving the new direction by the way!
Thanks,
Eivind F S
hunk
3 Nov, 2009
Hi Elvinid FS.
what version of the Magic_Fields uses?
for the version 1.2 two data changed and a new field was added (tooltip), this can cause conflict.
Lane
5 Nov, 2009
Script for Migrating from flutter…
hunk
5 Nov, 2009
I have updated script for vesion 1.2 of Magic Fields.
Eivind F S
9 Nov, 2009
Thanks, Hunk. It is working perfectly now!
Much appreciated!
Eivind
Eivind F S
9 Nov, 2009
Wow, not only is the migration script working, but updating from Flutter to Magic Fields fixed a huge problem I’ve been experiencing with TinyMCE. HTML and Visual editor modes have been active simultaneously in the interface and the usability has been unpredictable to say the least.
Now, it works fine. Clearly, it was a Flutter bug.
Now, I’m even happier. Great job guys. So where do I donate? Oh, on the sidebar up here. Cool!
Thanks again,
Eivind
Dave
20 Dec, 2009
Great accomplishment here
How does migrating option work now? Do I need to do anything, or installing Magic Fields plugin should fix everything automatically, since migrating script is already incorporated into it?
Mike
18 Jan, 2010
Any chance we might get a script to migrate to Magic Fields 1.3 anytime soon?
hunk
19 Jan, 2010
Hi Mike i work this weekend in script for the version 1.3
NotaNiche
19 Jan, 2010
Cool, great to hear, you are working on a script for 1.3. I really appreciate your work. Great job!
hunk
23 Jan, 2010
Ok script for the version 1.3.1 is done, check the update in post.
Mike
25 Jan, 2010
Thanks! I’m about to try it. I’m glad you guys are developing this plugin – it’s a very valuable addition to wordpress!
Mike
25 Jan, 2010
Hmmm, having some trouble. Migra.php generated an error for me on line 44, so I escaped the quotes.
$wpdb->query(‘INSERT IGNORE INTO ‘.$wpdb->prefix.’mf_custom_field_types VALUES (14, \’Related Type\’, NULL, \’false\’, \’true\’, \’false\’)');
This seemed to fix it, but my old flutter field data seems to be missing in magic fields. Might be something I am doing – will continue to troubleshoot.
Markgt
9 Feb, 2010
HI!
I’ve tried a whole lot of custom panel plugins and Magic Fields seems to work the best.
On an earlier site i did, i used the plugin More Fields.. i saw there was a script to migrate from Flutter. Any ideas how to migrate from More Fields?
any help would be appreciated!
heres to Magic Fields