Topic on Project:Support desk

[RESOLVED] HowTo? Import list of Export'ed Categories? Possible?

6
L d allan (talkcontribs)

Summary: I'm attempting to use Export from a possibly corrupted wiki, and Import into a starting-over-from-scratch wiki. It's no doubt operator error, but Import of Categories fails. Import works fine with Templates, and seems to work fine with Files that have underscores in their filename (my bad?).

My under construction 1.21.1 wiki: canprint.org/wiki with immature LocalSettings.php so $wgLogo and other formatting flawed
(and semi-offline canprint.org/11_wiki11_1165/index.php?title=Special:Version that may be corrupted)
Hosted by: GoDaddy with Linux server (Apache?) ... I'm ignorant about SSH and super rusty with Linux
PHP: 5.3.24 (cgi-fcgi) MySQL: 5.0.96-log
Note that GoDaddy makes MW connected to MySQL relatively simple for up to ver 1.21.1 but I'm stumped on how to upgrade to ver 1.24.1, but that's also another issue for now

More info: My approach of Export then Import is almost certainly a less than optimal hold-your-nose work-around. Guidance to "correct the error of my ways" appreciated.

I am able to Export and then Import existing Pages, Files, and Templates. However, this MW semi-newbie hasn't been able to figure out how to Export Categories so they will subsequently Import. Therefore, the starting-over wiki is missing 50+ categories.
http://www.canprint.org/wiki/index.php?title=Special:WantedCategories&limit=100&offset=0 (not sure if this Special page will show up for a non-user)

I haven't tested if Export from a small 1.21.1 wiki with a few categories will Import to another small 1.21.1 wiki.

MTYEWTK? Sorry
Below is a partial list of the Exported pages / files / templates / categories from the possibly corrupted 1.16.5 version. My speculation is that the Categories is expecting a different Prefix than my guess. I'm hoping to avoid copy/paste of the contents 50+ categories, if possible.

AKA (ok)
Abbreviated cartridge flushing (ok)
... (100+ ok)
Main Page (ok)
Main Page: Welcome to Canon Printing wiki (ok)
Mea culpa (ok)
... (100+ ok)
YWMV (ok)
Template:Canon.printer.template (1 of 2 ok)
Template:Under.construction (2 of 2 ok)
File:110812 iP4500 wikilogo.png (seems ok although actual file has underscores)
... (5+ ok)
File:300 PrinterEvaluationTarget.jpg (seems ok)
A4 Letter size printers (as Exported ... didn't Import)
Category:A4 Letter size printers (tried to guess Prefix: didn't work)
Category:All-in-one printers
... (40+ didn't get imported ... [PEBKAC?])
Category:QY6-0084 print-head
Category:Under construction placeholder
Category:Unknown print-head

Temptuousinsolence (talkcontribs)

XML or SQL Export/Import?

L d allan (talkcontribs)

Thanks for the reply.

I'm using the Special:Export page. That results in a relatively large time-stamped XML file (142kb). Then I use the Special:Import page to Import that XML file. I can see a list of pages, files, and templates imported. Categories are not among that list, and they are lots of missing categories in the Special:CategoriesWanted page.

Temptuousinsolence (talkcontribs)
L d allan (talkcontribs)

Thanks. The docs: Special:Import can be used by wiki users with import permission (by default this is users in the sysop group) to import a small number of pages (about 100 should be safe). Trying to import large dumps this way may result in timeouts or connection failures.

I'll try with fewer pages. However, all the actual Pages, all the Files, and all the Templates were Import'ed, but none of the categories.

L d allan (talkcontribs)

Import of Categories started working ok. I'm unsure why, or what happened. Anyway, disregard, and thanks.

Reply to "[RESOLVED] HowTo? Import list of Export'ed Categories? Possible?"