Forums | Mahara Community
Support
/
upgrade from 1.5.1 to 1.9.4
27 January 2015, 21:46
Hey,
Latest PHP and latest MySQL installed
Cant upgrade have tried multiple times to diffrent versions.
Here uis the errror:
Failed to get a recordset: mysqli error: [1062: Duplicate entry 'Arial' for key 'skinfont_nam_uk'] in adodb_throw(INSERT INTO "skin_fonts" ("name", "title", "licence", "previewfont", "variants", "fonttype", "onlyheading", "fontstack", "genericfont") VALUES ('Arial', 'Arial', 'GPL-2.0.txt', 'NimbusSansL.ttf', 'a:4:{i:0;a:3:{s:7:\"variant\";s:7:\"regular\";s:11:\"font-weight\";s:6:\"normal\";s:10:\"font-style\";s:6:\"normal\";}i:1;a:3:{s:7:\"variant\";s:4:\"bold\";s:11:\"font-weight\";s:4:\"bold\";s:10:\"font-style\";s:6:\"normal\";}i:2;a:3:{s:7:\"variant\";s:6:\"italic\";s:11:\"font-weight\";s:6:\"normal\";s:10:\"font-style\";s:6:\"italic\";}i:3;a:3:{s:7:\"variant\";s:10:\"bolditalic\";s:11:\"font-weight\";s:4:\"bold\";s:10:\"font-style\";s:6:\"italic\";}}', 'common', 0, '\'Arial\', \'Helvetica\', \'Nimbus Sans L\', \'FreeSans\'', 'sans-serif'), ) Command was: INSERT INTO "skin_fonts" ("name", "title", "licence", "previewfont", "variants", "fonttype", "onlyheading", "fontstack", "genericfont") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) and values was (Arial,Arial,GPL-2.0.txt,NimbusSansL.ttf,a:4:{i:0;a:3:{s:7:"variant";s:7:"regular";s:11:"font-weight";s:6:"normal";s:10:"font-style";s:6:"normal";}i:1;a:3:{s:7:"variant";s:4:"bold";s:11:"font-weight";s:4:"bold";s:10:"font-style";s:6:"normal";}i:2;a:3:{s:7:"variant";s:6:"italic";s:11:"font-weight";s:6:"normal";s:10:"font-style";s:6:"italic";}i:3;a:3:{s:7:"variant";s:10:"bolditalic";s:11:"font-weight";s:4:"bold";s:10:"font-style";s:6:"italic";}},common,0,'Arial', 'Helvetica', 'Nimbus Sans L', 'FreeSans',sans-serif)
- insert_record("skin_fonts", object(stdClass)) at /data/mahara-1.9.4/htdocs/lib/skin.php:1284
- install_skins_default() at /data/mahara-1.9.4/htdocs/lib/db/upgrade.php:2577
- xmldb_core_upgrade("2012041004") at /data/mahara-1.9.4/htdocs/lib/upgrade.php:297
- upgrade_core(object(stdClass)) at /data/mahara-1.9.4/htdocs/admin/upgrade.json.php:79
Please advise
// Kristoffer
28 January 2015, 8:33
Hi Kristoffer,
If the skin font data exists in the db (which it looks like it does from the error) you can comment out the line: install_skins_default();
in the htdocs/lib/db/upgrade.php file and it should stop that error
Cheers
Robert