Last modified: 2012-07-24 21:51:50 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 T40651, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38651 - Templates appear to break when imported from MediaWiki.org to a fresh installation.
Templates appear to break when imported from MediaWiki.org to a fresh install...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-24 21:21 UTC by Nabil
Modified: 2012-07-24 21:51 UTC (History)
1 user (show)

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


Attachments
Help:Skins with unformatted templates appearing. (172.11 KB, image/png)
2012-07-24 21:21 UTC, Nabil
Details
MediaWiki export XML (391.89 KB, application/xml)
2012-07-24 21:23 UTC, Nabil
Details

Description Nabil 2012-07-24 21:21:27 UTC
Created attachment 10882 [details]
Help:Skins with unformatted templates appearing.

OVERVIEW:
When attempting to follow the instructions found at http://www.mediawiki.org/wiki/Project:PD_help/Copying to export a list of Help files, the exported xml file appears to import correctly, but all templates appear broken.

STEPS TO REPRODUCE:
 1. Create a fresh installation of MediaWiki from the Git master branch (currently 1.20alpha (6dad0f4)).
 2. Navigate to http://www.mediawiki.org/wiki/Project:PD_help/Copying, and follow the directions listed to export an XML file of the listed files.
 3. Navigate to the Special:Import page of your site's MediaWiki install, and import the XML file.
 4. Navigate to any imported Template page.

ACTUAL RESULT:
The template appears as code.  Any embedded templates are also displayed as code.

EXPECTED RESULT:
The templates appear as they do on the MediaWiki site.

NOTES:
This was tested using the latest version of MediaWiki via Git, on two attempted installs (one running PostgreSQL 8.4.12, one running SQLite 3.7.7.1), with PHP 5.3.14.
Comment 1 Alex Monk 2012-07-24 21:23:53 UTC
I think you need to install ParserFunctions.
Comment 2 Nabil 2012-07-24 21:23:57 UTC
Created attachment 10883 [details]
MediaWiki export XML

This is the unaltered xml export from MediaWiki.org's Special:Export, based on the directions found at: http://www.mediawiki.org/wiki/Project:PD_help/Copying
Comment 3 Sam Reed (reedy) 2012-07-24 21:26:51 UTC
Yes, you're missing ParserFunctions at least for starters. Evident by the parser functions that are displayed as plain text
Comment 4 Sam Reed (reedy) 2012-07-24 21:27:39 UTC
It's even there in the copying documentation:

"You will also probably need Extension:ParserFunctions so that the Languages bar at the bottom of the pages functions properly."
Comment 5 Nabil 2012-07-24 21:51:50 UTC
Yeah, I saw the bit in the copying documentation, but was not expecting templates that have nothing to do with the Languages bar to also fail (and did not want to muddy the issue by adding an extension that may gloss over other template issues).  I'll go adjust the documentation to clarify the text, and call this good.

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


Navigation
Links