On Jun 7, 2011 8:18 AM, "蔡超" toppiprc@gmail.com wrote:
hi,
I want to install a zh-wiki mirror. I have tried several dumps, there are always some errors. Error 1: when I visit any wiki pages, explorer says "'mw.util.addPortletLink' is null or not an object"
This may be from broken security fixes in the last MediaWiki release. 1.17b2 should be available soon... try pulling direct from SVN if still waiting.
Error 2: Templates can not be converted into proper html code, as the picture attached.
Picture didn't make it to the list, but most likely you need to install extensions like Cite and ParserFunctions.
Error 3: Can not translate Simplified Chinese and Traditional Chinese.
What's wrong with it, exactly?
Make sure you set $wgLanguageCode = "zh" in LocalSettings.php.
-- brion
Here is my steps to build the mirror:
- download latest dumps(zhwiki-20110521), mwdumper java source and
mediawiki 1.7.0.beta, 2. install mediawiki with name "Wikipedia", the localsetting.php is attached. 3. alter database table "page", "revision" and "text", remove key
constrain,
auto_increment and index. 4. import page-article.xml with mwdumper.jar 5. alter database table "page", "revision" and "text", add key constrain, auto_increment and index. 6. import zhwiki-20110521-image.sql, imagelinks.sql, interwiki.sql, iwlinks.sql, langlinks.sql, pagelinks.sql, redirect.sql,
templatelinks.sql.
Is there anything wrong with my operations?
Best regards
Toppi _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Brion Vibber wrote:
On Jun 7, 2011 8:18 AM, "蔡超"toppiprc@gmail.com wrote:
hi,
I want to install a zh-wiki mirror. I have tried several dumps, there are always some errors. Error 1: when I visit any wiki pages, explorer says "'mw.util.addPortletLink' is null or not an object"
This may be from broken security fixes in the last MediaWiki release. 1.17b2 should be available soon... try pulling direct from SVN if still waiting.
Error 2: Templates can not be converted into proper html code, as the picture attached.
Picture didn't make it to the list, but most likely you need to install extensions like Cite and ParserFunctions.
Maybe also enabling Tidy.
On Wed, Jun 8, 2011 at 12:42 AM, Brion Vibber brion@wikimedia.org wrote:
On Jun 7, 2011 8:18 AM, "蔡超" toppiprc@gmail.com wrote:
hi,
I want to install a zh-wiki mirror. I have tried several dumps, there are always some errors. Error 1: when I visit any wiki pages, explorer says "'mw.util.addPortletLink' is null or not an object"
This may be from broken security fixes in the last MediaWiki release. 1.17b2 should be available soon... try pulling direct from SVN if still waiting.
Error 2: Templates can not be converted into proper html code, as the picture attached.
Picture didn't make it to the list, but most likely you need to install extensions like Cite and ParserFunctions.
Sorry,the picture is too big for the mailinglist.
Error 3: Can not translate Simplified Chinese and Traditional Chinese.
What's wrong with it, exactly?
Make sure you set $wgLanguageCode = "zh" in LocalSettings.php.
-- brion
Here is my steps to build the mirror:
- download latest dumps(zhwiki-20110521), mwdumper java source and
mediawiki 1.7.0.beta, 2. install mediawiki with name "Wikipedia", the localsetting.php is attached. 3. alter database table "page", "revision" and "text", remove key
constrain,
auto_increment and index. 4. import page-article.xml with mwdumper.jar 5. alter database table "page", "revision" and "text", add key constrain, auto_increment and index. 6. import zhwiki-20110521-image.sql, imagelinks.sql, interwiki.sql, iwlinks.sql, langlinks.sql, pagelinks.sql, redirect.sql,
templatelinks.sql.
Is there anything wrong with my operations?
Best regards
Toppi _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org