Bugs item #2675814, was opened at 2009-03-09 13:46 Message generated for change (Comment added) made by djbarrett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Daniel Barrett (djbarrett) Assigned to: Nobody/Anonymous (nobody) Summary: SyntaxError: undefined entity : line 14789, column 89
Initial Comment: When I run "python redirect.py double", after the first redirect gets fixed, I get:
Changing page [[My article name]] Traceback (most recent call last): File "redirect.py", line 840, in <module> main() File "redirect.py", line 836, in main bot.run() File "redirect.py", line 757, in run self.fix_double_redirects() File "redirect.py", line 611, in fix_double_redirects self.fix_1_double_redirect(mysite, redir_name, summary) File "redirect.py", line 707, in fix_1_double_redirect redir.put(text) File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop) File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage if self.site().has_mediawiki_message("spamprotectiontitle")\ File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message v = self.mediawiki_message(key) File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message tree = XML(decode) File "<string>", line 85, in XML SyntaxError: undefined entity : line 14789, column 89
Likewise for "python category.py move -from:"name" -to:"name2":
Traceback (most recent call last): File "category.py", line 974, in <module> bot.run() File "category.py", line 446, in run comment=self.editSummary, inPlace=self.inPlace) File "c:\temp\pywikipedia\catlib.py", line 506, in change_category article.put(text, comment) File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop) File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage if self.site().has_mediawiki_message("spamprotectiontitle")\ File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message v = self.mediawiki_message(key) File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message tree = XML(decode) File "<string>", line 85, in XML SyntaxError: undefined entity : line 14789, column 89
Output of version.py:
Pywikipedia [http] trunk/pywikipedia (r6503, Mar 09 2009, 14:43:57) Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 16:43
Message: [[MediaWiki:Spamprotectiontitle]] contains only the default text:
Spam protection filter
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2009-03-09 16:19
Message: Probably you want to escape the "undefined entity" by changing " " to "&nbsp;" in the text on [[MediaWiki:Spamprotectiontitle]].
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett) Date: 2009-03-09 15:36
Message: This is on our own MediaWiki site, running 1.11.0.
How can I provide you with the source text?
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2009-03-09 14:50
Message: What site does this occur on? It could be a problem with the site's formatting of the message, or it could be in the XML parser. We need to see the source text to know which.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814...