When importing a WikiDump through mantainance/importDump.php, is there a good reason for -not- refreshing links on a page by page basis but running mantainance/refreshLinks.php once everything is done?
If there isn't, how do I get the id of the page/revision the import process has just created so that I can pass it to fixLinksFromArticle($id)? Or should I modify include/SpecialImport.php so that it fixes the links right away?
Ciao!
Manu
Emanuele D'Arrigo wrote:
When importing a WikiDump through mantainance/importDump.php, is there a good reason for -not- refreshing links on a page by page basis but running mantainance/refreshLinks.php once everything is done?
1) it takes a long time 2) importDump.php is supposed to have done that
But check if it's actually true in importDump.php.
If there isn't, how do I get the id of the page/revision the import process has just created so that I can pass it to fixLinksFromArticle($id)? Or should I modify include/SpecialImport.php so that it fixes the links right away?
It already does?
-- brion vibber (brion @ wikimedia.org)
On 8/9/07, Brion Vibber brion@wikimedia.org wrote:
Or should I modify include/SpecialImport.php so that it fixes the links right away?
It already does?
Don't think so. Unless the issue is with links through templates rather than standard links.
The pages I imported included instances of templates and the links in those templates were in the form
mediawiki.mydomain.co.uk/index.php/MyPage
rather than the correct
mediawiki.mydomain.co.uk/index.php?title=MyPage
Refreshing the links with refreshLinks.php solved the problem. Maybe only links through templates are not refreshed when the import occurs?
Ciao!
Manu
Emanuele D'Arrigo wrote:
Brion Vibber wrote:
Or should I modify include/SpecialImport.php so that it fixes the links right away?
It already does?
Don't think so. Unless the issue is with links through templates rather than standard links.
The pages I imported included instances of templates and the links in those templates were in the form
mediawiki.mydomain.co.uk/index.php/MyPage
rather than the correct
mediawiki.mydomain.co.uk/index.php?title=MyPage
Refreshing the links with refreshLinks.php solved the problem. Maybe only links through templates are not refreshed when the import occurs?
It seems like importdump.php used different settings than the normal wiki. Try putting on LocalSetttings.php explicitely that the path to articles is /index.php?title= and not /index.php/ However, refreshLinks is also a maintenance utility, so should have the same configuration :S
Emanuele D'Arrigo wrote:
On 8/9/07, Brion Vibber brion@wikimedia.org wrote:
Or should I modify include/SpecialImport.php so that it fixes the links right away?
It already does?
Don't think so. Unless the issue is with links through templates rather than standard links.
The pages I imported included instances of templates and the links in those templates were in the form
mediawiki.mydomain.co.uk/index.php/MyPage
rather than the correct
mediawiki.mydomain.co.uk/index.php?title=MyPage
Refreshing the links with refreshLinks.php solved the problem. Maybe only links through templates are not refreshed when the import occurs?
refreshLinks.php has nothing to do with that -- it updates the pagelinks tables in the database.
You seem to have an inconsistency in your $wgArticlePath.
-- brion vibber (brion @ wikimedia.org)
wikitech-l@lists.wikimedia.org