I left rebuildLinks.php running from the command line last night. It looked good when I left. This morning, I found this:
26476 of 45991: New_Zealand/People 26477 of 45991: New_Zealand/Transnational_issues 26478 of 45991: New_Zealand/Transportation 26479 of 45991: New_Zealand_English 26480 of 45991: New_directions_and_movements 26481 of 45991: New_liberalism 26482 of 45991: New_materials_(painting) 26483 of 45991: New_moon 26484 of 45991: New_moon/details 26485 of 45991: New_testament 26486 of 45991: New_topics <br> <b>Warning</b>: Wrong datatype for second argument in call to in_array() in <b>./wikiPage.php</b> on line <b>31</b><br> <br> <b>Fatal error</b>: Call to a member function on a non-object in <b>./special_newpages.php</b> on line <b>15</b><br> [root@ross work-http]#
I suppose this means that there's some bad data in there somewhere?
On ĵaŭ, 2002-03-28 at 09:31, Jimmy Wales wrote: [..]
26486 of 45991: New_topics
<br> <b>Warning</b>: Wrong datatype for second argument in call to in_array() in <b>./wikiPage.php</b> on line <b>31</b><br> <br> <b>Fatal error</b>: Call to a member function on a non-object in <b>./special_newpages.php</b> on line <b>15</b><br> [root@ross work-http]#
I suppose this means that there's some bad data in there somewhere?
New_topics is a redirect to [[special:NewPages]]. The link building script shouldn't be following redirects! I've just checked in a quick fix that should do it:
- $sql1 = "SELECT cur_title FROM cur LIMIT $offset, $size ;" ; + $sql1 = "SELECT cur_title FROM cur WHERE cur_text NOT LIKE "#REDIRECT%" LIMIT $offset, $size ;" ;
Try it again... You can set the offset to start things up in the middle somewhere: offset=25000 php rebuildLinks.php
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org