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)