Description
Attempting to create a new page or editing existing one produces traceback before I'm presented with an editor. Error is
"AttributeError'unicode' object has no attribute 'getText'".
at PageEditor.py line 88. Everything else about MoinMoin works fine, but no editing!
Please help -- I don't want to revert to the ancient version (if I still even can!)
Steps to reproduce
Upgrade from very, very old MoinMoin. Ran all the migration scripts. Tweaked per the docs.
Example
Details
MoinMoin Version |
Release 1.3.4 |
OS and Version |
RH9 Linux 2.4.20-31.9 |
Python Version |
Python 2.3.2: /usr/bin/python2.3 |
Server Setup |
simple Wiki instance |
Server Details |
very generic |
Workaround
Looks like some of your code files were not updated - or you maybe have some old *.pyc/pyo still there. It just calls the Page constructor with wrong parameter sequence (maybe was like that in an ancient version).
If you remove all old stuff, I bet this effect vanishes. Maybe just remove old MoinMoin code dir and reinstall the new code. You did make a backup.
Also check if you use the new moin.cgi file that we provide under server/ - using an ancient one will make trouble.
Definitely make a backup! I did, and I'm very glad. After the failed upgrade, I wiped out my /usr/lib/python2.*/site-packages/MoinMoin directory, and did a fresh python2.3 setup.py install in the moin-1.3.4 dist directory. This fixed it.
My MoinMoin was so old that it accepted the [^http://www.foo.bar label] syntax to open a link in a new window. The change logs show this was removed a long time ago. 2005-04-09 -- JohnCocula
Discussion
The traceback page: traceback.html
I installed 1.3.4 over my old, old MoinMoin installation, and it resulted in this problem. In an attempt to get my site working again, I manually removed /usr/lib/python2.3/site-packages/MoinMoin and ran setup.py install again. Now I can edit! So there was something fouled in my old directory tree; I don't know what.
Word of warning to other upgraders, I suppose!!!
Please could you show us from your moved dir which files were not updated. -- ReimarBauer 2005-04-09 06:09:28
Here is the directory listing of the non-working MoinMoin 1.3.4 installation after upgrade: olddir.txt There are files from 2001-2003 that I don't think belong there. -- JohnCocula 2005-04-09 12:59:36
Final advice: If you have a very old MoinMoin installation (prior to those specifically listed), do not do a normal install over your existing /usr/lib/pythonX.Y/site-packages/MoinMoin directory. Instead, backup and move that directory away before installing. Make sure to run the migration scripts, and settle in for a lot of hand-tweaking of configuration files. It will eventually work, and it will be a beautiful thing, at that! JohnCocula 2005-04-09
Plan
- Priority:
- Assigned to:
- Status: code mixup, maybe used wrong (old) cgi adaptor