Last modified: 2014-04-07 18:16:40 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 T64560, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62560 - Mirrors built with `mwxml2sql' do not show list under Special:Gadgets, while mirrors built with `importDump.php' do
Mirrors built with `mwxml2sql' do not show list under Special:Gadgets, while ...
Status: UNCONFIRMED
Product: Datasets
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
PC Linux
: Low normal (vote)
: ---
Assigned To: Ariel T. Glenn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-12 05:03 UTC by wp mirror
Modified: 2014-04-07 18:16 UTC (History)
1 user (show)

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


Attachments

Description wp mirror 2014-03-12 05:03:08 UTC
0) Abstract

If I build a mirror of `zuwiki' with `importDump.php', then I can see a list of gadgets on <http://zu.wikipedia.site/wiki/Special:Gadgets>.

If I build a mirror of `zuwiki' with `mwxml2sql', then I get no list of gadgets on <http://zu.wikipedia.site/wiki/Special:Gadgets>.

This difference also appears with `simplewiki'.

1) Setup

1.1) Hardware and Debian distribution

(shell) uname -a
Linux darkstar-5 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
(shell) cat /etc/debian_version
7.4

1.2) mediawiki and extensions

I `clone' latest version of `mediawiki' (currently 1.23) and many of its extensions including `Gadget'.

(shell) git clone https://gerrit.wikimedia.org/r/p/mediawiki/core
(shell) cd extensions
(shell) git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Gadgets.git

`LocalSettings.php' includes the line:
require_once( "$IP/extensions/Gadgets/Gadgets.php" );

1.3) mwxml2sql

I use the version that I patched (to be compatible with `mediawiki' 1.23) and uploaded to gerrit for review.

1.4) dumps

(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-categorylinks.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-category.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-externallinks.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-imagelinks.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-image.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-interwiki.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-iwlinks.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-langlinks.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-pagelinks.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-page_props.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-page_restrictions.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-pages-articles.xml.bz2
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-protected_titles.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-redirect.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-site_stats.sql.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-stub-articles.xml.gz
(shell) rsync ftpmirror.your.org::wikimedia-dumps/zuwiki/20140225/zuwiki-20140225-templatelinks.sql.gz

2) Build mirror with `importDump.php'

mysql> drop database zuwiki;
mysql> create database zuwiki;
(shell) bunzip2 zuwiki-20140225-pages-articles.xml.bz2
(shell) php /usr/share/mediawiki/maintenance/importDump.php zuwiki-20140225-pages-articles.xml

Test:

<http://zu.wikipedia.site/wiki/Special:Gadgets> displays a list of gadgets.

3) Build mirror with `mwxml2sql'

mysql> drop database zuwiki;
mysql> create database zuwiki;
(shell) mwxml2sql -m 1.23 -s zuwiki-20140225-stub-articles.xml -t zuwiki-20140225-pages-articles.xml -f zuwiki-20140225.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-createtables.sql-1.23
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-page.sql-1.23
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-revision.sql-1.23
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-text.sql-1.23
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-categorylinks.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-category.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-externallinks.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-imagelinks.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-image.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-interwiki.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-iwlinks.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-pagelinks.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-page_props.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-page_restrictions.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-protected_titles.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-redirect.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-site_stats.sql
(shell) mysql --host=localhost --user=root --password zuwiki < zuwiki-20140225-templatelinks.sql

Test:

<http://zu.wikipedia.site/wiki/Special:Gadgets> does not show a list of gadgets.
Comment 1 Andre Klapper 2014-03-12 11:39:33 UTC
(In reply to wp mirror from comment #0)
> 1.3) mwxml2sql
> 
> I use the version that I patched (to be compatible with `mediawiki' 1.23)
> and uploaded to gerrit for review.

Link to the Gerrit change welcome.
Comment 2 wp mirror 2014-03-12 18:53:41 UTC
(In reply to Andre Klapper from comment #1)
> (In reply to wp mirror from comment #0)
> > 1.3) mwxml2sql
> > 
> > I use the version that I patched (to be compatible with `mediawiki' 1.23)
> > and uploaded to gerrit for review.
> 
> Link to the Gerrit change welcome.

<https://gerrit.wikimedia.org/r/#/c/113124/>

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


Navigation
Links