https://bugzilla.wikimedia.org/show_bug.cgi?id=42291
Web browser: --- Bug #: 42291 Summary: Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext , default for EtherpadLite:Pad.modals.initsocketfail.cause/fr is text Product: MediaWiki Version: 1.21-git Platform: All OS/Version: All Status: NEW Severity: normal Priority: Unprioritized Component: ContentHandler AssignedTo: wikidata-b...@lists.wikimedia.org ReportedBy: niklas.laxst...@gmail.com Classification: Unclassified Mobile Platform: --- Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext , default for EtherpadLite:Pad.modals.initsocketfail.cause/fr is text Backtrace: #0 /www/dev.translatewiki.net/w/includes/Revision.php(1262): Revision->checkContentModel() #1 /www/dev.translatewiki.net/w/includes/WikiPage.php(1852): Revision->insertOn(Object(DatabaseMysql)) #2 /www/dev.translatewiki.net/w/includes/WikiPage.php(1571): WikiPage->doEditContent(Object(TextContent), 'Importing a new...', 48, false, Object(User)) #3 [internal function]: WikiPage->doEdit('La cause de ce ...', 'Importing a new...', 48, false, Object(User)) #4 /www/dev.translatewiki.net/w/includes/Article.php(1944): call_user_func_array(Array, Array) #5 /www/dev.translatewiki.net/w/extensions/Translate/utils/MessageUpdateJob.php(40): Article->__call('doEdit', Array) #6 /www/dev.translatewiki.net/w/extensions/Translate/utils/MessageUpdateJob.php(40): Article->doEdit('La cause de ce ...', 'Importing a new...', 48, false, Object(User)) #7 /www/dev.translatewiki.net/w/maintenance/runJobs.php(83): MessageUpdateJob->run() #8 /www/dev.translatewiki.net/w/maintenance/doMaintenance.php(110): RunJobs->execute() #9 /www/dev.translatewiki.net/w/maintenance/runJobs.php(116): require_once('/www/dev.transl...') #10 {main} I've had this code in my LocalSettings for a while: $wgHooks['ContentHandlerDefaultModelFor'][] = function( $title, &$model ) { if ( $title->getNamespace() >= 1200 ) { $model = CONTENT_MODEL_TEXT; } return true; }; Somehow the code seems to be treating pages with trailing whitespace differently from other pages. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l