Last modified: 2014-02-26 12:55:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45279, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43279 - import into Schema: namespace failed with content model error
import into Schema: namespace failed with content model error
Status: RESOLVED WONTFIX
Product: Analytics
Classification: Unclassified
EventLogging (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-20 03:57 UTC by spage
Modified: 2014-02-26 12:55 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2012-12-20 03:57:38 UTC
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.
Comment 1 Ori Livneh 2012-12-20 04:31:15 UTC
This is such an impossibly niche need -- I'm not going to chase this down, sorry. Just copy/paste schemas you need in dev. (Or set Metawiki to be your remote schema wiki.)
Comment 2 Andre Klapper 2014-02-26 12:55:18 UTC
[moving from MediaWiki extensions to Analytics product - see bug 61946]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links