Last modified: 2013-04-22 16:14:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44941, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42941 - Restore functioning of $CHANGEDORCREATED for backward compatibility of outdated enotif_body
Restore functioning of $CHANGEDORCREATED for backward compatibility of outdat...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Email (Other open bugs)
1.21.x
All All
: Normal enhancement (vote)
: ---
Assigned To: bsitu
:
Depends on:
Blocks: 14901
  Show dependency treegraph
 
Reported: 2012-12-11 07:43 UTC by T. Gries
Modified: 2013-04-22 16:14 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2012-12-11 07:43:58 UTC
After upgrading to 067fe75c717cc085742a5d20e61c80a4c1b80ca0 E-Notifs show unresolved variable $CHANGEDORCREATED

observed in 
* 067fe75c717cc085742a5d20e61c80a4c1b80ca0
* Author: jenkins-bot <jenkins-bot@gerrit.wikimedia.org>
* Date:   Sat Dec 8 18:54:01 2012 +0000

Dear (username, correct)

the (pagename, correct) has been $CHANGEDORCREATED on
10 December 2012
Comment 2 Aaron Schulz 2012-12-11 08:01:19 UTC
Is there a custom message defined in a MediaWiki: page for the affected wiki?
Comment 3 T. Gries 2012-12-11 08:05:39 UTC
See https://bugzilla.wikimedia.org/show_bug.cgi?id=14901#c70 .

users and admins should be informed in release notes that - if they use customised mail templates for e-mail notification - these templates need to be (most likely) changed.

Closed as resolved invalid by the reporter, because it appears to be a problem of (customised) enotif mail templates (i18n), which have not been adapted.



(I am reporting this early; parts of my observation may be wrong or outdated)

See my https://bugzilla.wikimedia.org/show_bug.cgi?id=42941 "Bug 42941 - Enotifs show unresolved variable $CHANGEDORCREATED (version of 08.12.2012)"

Regarding
*  https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=commit;h=494529503b41142d68d52c458a44b82577699785
* Mon, 26 Nov 2012 20:37:01 +0100 (19:37 +0000) 
which aims to fix this bug,

- users and admins should be informed in release notes that - if they use customised mail templates for e-mail notification - these templates need to be (most likely) changed

to make them correctly working with the new software.

An indication that a change is needed is for example an unresolved variable $CHANGEDORCREATED in received enotifs.
Comment 4 T. Gries 2012-12-11 08:08:18 UTC
@Aaron: the english message file shows specific messages for page change/creation... actions. Need more time to check the new messages and mechanism.

may be that

"- users and admins should be informed in release notes that - if they use
customised mail templates for e-mail notification - these templates need to be
(most likely) changed"

Perhaps the committer(s) of the patch 494529503b41142d68d52c458a44b82577699785

can better comment than I (at the moment).
Comment 5 T. Gries 2012-12-11 08:09:52 UTC
see https://gerrit.wikimedia.org/r/#/c/7986/14/languages/messages/MessagesEn.php for the changes in the message file
Comment 6 T. Gries 2012-12-11 08:59:20 UTC
@Aaron wrote
> Is there a custom message defined in a MediaWiki: page for the affected wiki?

I forgot to answer your question:

Yes, I do have a customised enotif_body message in my wiki which uses the (now-removed) $CHANGEDORCREATED .
Comment 7 T. Gries 2012-12-11 09:12:00 UTC
After deletion of my MediaWiki:enotif_body , it works fine.
Comment 8 Nemo 2012-12-11 10:46:18 UTC
Note that bug 42941 is different and happens without custom enotif_body.

A short while ago I added complete docs to [[translatewiki:MediaWiki:Enotif_body/qqq]], it would be nice if you could write a short update on what needs doing, as done with
https://www.mediawiki.org/wiki/MediaWiki_1.21/wmf5#welcomecreation

Then, if someone runs a script like https://www.mediawiki.org/wiki/User:S_Page_%28WMF%29/welcomecreation_messages#Script_to_generate_this , we can also notified the affected wikis.
Comment 9 Richard Guk 2012-12-13 01:23:44 UTC
Further to comments at bug 42752:

- my more recent MediaWiki.org email notifications are now OK again;

- mybugs.mail@gmail.com has reported the problem with ptwikibooks, presumably caused by the 1.21wmf6 phase 2 rollout a few hours ago.

Should this bug be reopened?
Comment 10 T. Gries 2012-12-13 01:31:33 UTC
(In reply to comment #9)
> Should this bug be reopened?

in my view: not. It works on my large scale wikis.
Comment 11 Richard Guk 2012-12-13 01:35:45 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Should this bug be reopened?
> in my view: not. It works on my large scale wikis.

But apparently fails in a transitional period for WMF wikis, as evidenced by MediaWiki wiki and now by ptwikibooks.
Comment 12 Nemo 2012-12-13 11:24:07 UTC
By the way yesterday I notified 42 (!) wikis which had a custom enotif_body so that they delete (or update) it, which means they'll run into bug 42752 instead but eventually (...) be ok.
Comment 13 bsitu 2012-12-18 00:29:22 UTC
I will add "$CHANGEDORCREATED" replacement back to the script so wikis with old custom enotif_body will still work.
Comment 14 bsitu 2012-12-18 02:50:52 UTC
submitted a patch in here: https://gerrit.wikimedia.org/r/#/c/39179/, hopefully this would resolve the problem
Comment 15 Nemo 2012-12-18 09:01:11 UTC
(In reply to comment #14)
> submitted a patch in here: https://gerrit.wikimedia.org/r/#/c/39179/,
> hopefully
> this would resolve the problem

Thanks, adjusting summary and resolution accordingly.

People kept cluttering bug 42752 with reports of this bug but they really are two different things, so I'm leaving this open until the change is merged/deployed so that is shows up in searches.
Comment 16 T. Gries 2012-12-18 09:22:25 UTC
Just my comment:

I originally designed enotif, I have nothing against a convenience/compatibility patch regarding this variable "$CHANGEDORCREATED".

On the other I wondering if the patch is really needed, because it creates a legacy and an overhead which is not needed, because we now have these distinct messages (which are much better: they can be better localised).
Comment 17 Richard Guk 2013-01-06 05:34:44 UTC
Just received this email notification from idwiki (running 1.21wmf6):

> Halo Richardguk,
> Halaman Pembicaraan Pengguna:Richardguk di Wikipedia telah 
> $CHANGEDORCREATED pada 2013-01-06 oleh LaninBot, lihat 
> http://id.wikipedia.org/wiki/Pembicaraan_Pengguna:Richardguk 
> untuk revisi terakhir.
> ...

Looks like the patch in comment #14 is still awaiting review.
Comment 18 Siebrand Mazeland 2013-01-11 12:13:16 UTC
Patch is merged (or will be soon). This BC feature is scheduled for removal in MediaWiki 1.23 now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links