On Wed, 2005-07-20 at 08:53 -0400, Scott Garman wrote:
Hi all,
I have some existing mediawiki sites running 1.4.7 that I'd like to add
E-mail watchlist notification to. The EnotifWiki site makes reference to
a patch file that can be applied to an existing wiki install, but on
SourceForge I'm only seeing tarballs I can download that include all of
mediawiki with the extension already installed.
Where can I download the enotif patch for v1.4.x?
I finally figured this out, but I'm going to answer my own question for
the benefit of others...
The mw1.4.6+enotifwiki3.11.tgz file you can download from SourceForge
actually has the needed patch in it. It is called CVS-REL1_4_6.diff.
This patch does not apply cleanly to v1.4.7, so here is what I did:
0. Back up your mediawiki install and MySQL database (don't forget
this!).
1. "Roll back" your mediawiki version by grabbing the tarball for 1.4.6
again, and copy the contents of it over your current install. Check that
the version reported by your wiki now reports v1.4.6.
2. Copy the CVS-REL1_4_6.diff file into the mediawiki install's main
directory and apply the patch (patch -p0 CVS-REL1_4_6.diff). The patch
should apply cleanly.
3. Additionally, you need to copy the *.sql files in the
maintenance/archives directory of the extracted mw+enotifwiki tarball
into the maintenance/archives directory of your mediawiki install.
4. Rename your LocalSettings.php file to get it out of the way and chmod
777 the config directory.
5. Re-run the installer, which you should notice now offers default
options for some of the e-mail notification options.
Important Note: Since the installer is going to have to modify the
schema of your database, it won't work with the user-level database
account you created for the mediawiki database. I had to enter "root"
into the mediawiki DB username and the MySQL root password into the
mediawiki DB password fields in order for it to work. Once that
completes, make sure to change them back to the original mediawiki DB
user/pw combo in the generated LocalSettings.php.
6. Move LocalSettings.php up out of config, fix the permissions, and try
your site out. I had to merge in some other custom settings I had added
to my LocalSettings.php file from before, but it worked flawlessly after
that.
Drop me a line if you're in a similar situation and the above doesn't
work.
I'm definitely looking forward to when 1.5 stabilizes, as e-mail
notification is really useful in many environments.
Regards,
Scott
--
Scott Garman
sgarman at iname dot com