On Nov 30, 2003, at 15:23, Agon S. Buchholz wrote:
"Error in the database. There was an syntax
error in the database
query. The last database query was: "INSERT INTO rebuildlinks
(rl_f_id,rl_f_title,rl_to) VALUES " from the fuction "".
MySQL reported error "1064: You have an error in your SQL syntax."
The new rebuildlinks script is heavily rewritten; you may wish to grab
the current dev branch out of CVS (which we're running now on
Wikipedia) or wait a few days for the new stable release.
(1b) When just importing cur_, rebuildlinks.php runs
fine, but when
accessing the Main_Page ("Hauptseite"), it says that there are "0
articles", but the wiki pages exist, in this case, several thousend
pages. Is this the wanted behaviour, or is there something else to do
after running rebuildlinks.php? Also, newly created pages are not
being counted.
To rebuild the article count manually:
SELECT @foo:=COUNT(*) FROM cur
WHERE cur_namespace=0 AND cur_is_redirect=0 AND cur_text like '%[[%';
UPDATE site_stats SET ss_good_articles=@foo;
The statement references to an external RewriteMap
which I couldn't
find:
RewriteMap ampescape int:ampescape
RewriteRule ^/wiki/(.*)$ /wiki.phtml?title=${ampescape:$1} [L]
The ../maintenance directory contains just apache-ampersand.diff. Is
the RewriteMap used by Wikipedia somewhere publicly available?
That is a patch for Apache 1.3.x which creates a new internal
rewritemap function called ampescape. The one and only thing it does is
to escape the '&' character into '%26' so that titles including the
ampersand won't be corrupted when rewritten (since & is a reserved
character in query strings, as a field separator).
-- brion vibber (brion @
pobox.com)