https://bugzilla.wikimedia.org/show_bug.cgi?id=43279
Web browser: ---
Bug ID: 43279
Summary: import into Schema: namespace failed with content
model error
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: EventLogging
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
On meta-wiki (where I have staff rights) I did Special:Export of
Schema:OpenTask including its history, modified the page's name in the XML to
CommunityPortal (a new page name), and then tried Special:Import. The page
printed
Importing pages...
Schema:CommunityPortal 8 revisions
followed by the red error text:
Import failed: Can't save non-default content model with
$wgContentHandlerUseDB disabled: model is wikitext , default for
Schema:CommunityPortal is JsonSchema
The Schema namespace implemented by Extension:EventLogging is using a
non-default content model of JsonSchema, so the model here should not be
"wikitext".
I think this message comes from core/includes/Revision.php's
checkContentModel() called by its insertOn() method which is invoked by the
call $nullRevision->insertOn() in SpecialImport.php. I suspect the problem is
not in the EventLogging extension, but rather Revision.php is not correctly
determining the content format for the new page that will hold the imported
content.
... After going to the trouble of writing this bug report, I checked and
https://meta.wikimedia.org/wiki/Schema:CommunityPortal was created with
seemingly all the history, so the error message is in error -- the import
succeeded.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l