[Mediawiki-l] refreshLinks.php : Fatal error & other troubles !

Baeckeroot alain al2.baeckeroot at laposte.net
Thu Dec 9 18:43:08 UTC 2004


Hello

I m still trying to rebuild my french wikipedia for local use and i have pbs
while trying to rebuild the "brokenlinks" and "categorylinks" tables, using
the php script in the maintenance directory of mediawiki-1.3.8:

1/ It seems to be broken, and forget many good or broken links 
eg in page Avignon in the fr.wikipedia.org it finds only 3 good links
those who are located at the bottom of the page !!! 
but on another page it behaves differently !

2/ It fails to complete  with a fatal error. (and very slowly, i estimate 
its need 3 hours to complete, whereas wiki2static does the same
 and many other things in less than 10 min !!!)

$ php refreshLinks.php wikidb  
50
..../....
7150

Fatal error: Allowed memory size of 67108864 bytes exhausted 
(tried to allocate 224 bytes)
in /Big/Wikipedia/mediawiki-1.3.8/includes/Parser.php on line 787

hmm, that's 64M for Php request, i think it should be enough ;)

Then i tried to restart from here , having modfied the .inc to have
reporting interval of 1 instead of 50, to find the offending article.

 php refreshLinks.php 7150 
 it starts from 1 !!!!

So i modfy the .inc to start at 7150 and it goes .... until a crash later:
17510
17511

Fatal error: Allowed memory size of 67108864 bytes exhausted
 (tried to allocate 17833 bytes)
 in /Big/Wikipedia/mediawiki-1.3.8/includes/MagicWord.php on line 174

It looks like a memory "leak" in the script ?

So here are my questions :
1/ what can i do ? 
2/ Is there a documentation about the rebuilding of a wikipedia from
the downloaded cur database ? (if so i suggest to include it in the mediawiki.tgz&&rpm)

Regards
Alain



More information about the MediaWiki-l mailing list