Last modified: 2014-11-06 20:28:28 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 T69522, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67522 - Saving pages broken in MW 1.24 - "Fatal error: Cannot access protected property EditPage::$mTokenOk"
Saving pages broken in MW 1.24 - "Fatal error: Cannot access protected proper...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
master
All All
: Unprioritized critical (vote)
: ---
Assigned To: Siebrand Mazeland
:
Depends on: 67984
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-04 06:24 UTC by Joel K. Pettersson
Modified: 2014-11-06 20:28 UTC (History)
6 users (show)

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


Attachments

Description Joel K. Pettersson 2014-07-04 06:24:51 UTC
The following MW 1.24 change made some member variables of the MW EditPage class protected:

https://gerrit.wikimedia.org/r/#/c/133484/

As a result, saving a page using a form fails with "Fatal error: Cannot access protected property EditPage::$mTokenOk".

That member variable is accessed in SF's includes/SF_AutoeditAPI.php on line 465.

I can think of these 2 solutions:

1. Get a core change accepted that makes EditPage::$mTokenOk public again. (Or alternatively, since SF only reads it: a core change that adds a method to return it, and then changing SF to use that.)

2. Have SF derive the EditPage class and add a method to return $mTokenOk, then use the new class and its method instead.
Comment 1 heimlersimon 2014-07-23 14:22:55 UTC
Can confirm this!
Comment 2 s7eph4n 2014-08-03 00:05:01 UTC
Patch: https://gerrit.wikimedia.org/r/#/c/151370/
Comment 3 Gerrit Notification Bot 2014-08-03 00:06:16 UTC
Change 151370 had a related patch set uploaded by Legoktm:
Fix for Ia9baaf0b: Make previously public variables public again

https://gerrit.wikimedia.org/r/151370
Comment 4 Gerrit Notification Bot 2014-08-29 16:58:52 UTC
Change 157178 had a related patch set uploaded by Brian Wolff:
Make EditPage::tokenOK public for SemanticForms.

https://gerrit.wikimedia.org/r/157178
Comment 5 Gerrit Notification Bot 2014-08-29 17:10:08 UTC
Change 157178 merged by jenkins-bot:
Make EditPage::tokenOK public for SemanticForms.

https://gerrit.wikimedia.org/r/157178
Comment 6 Bawolff (Brian Wolff) 2014-08-29 19:47:29 UTC
(In reply to Gerrit Notification Bot from comment #4)
> Change 157178 had a related patch set uploaded by Brian Wolff:
> Make EditPage::tokenOK public for SemanticForms.
> 
> https://gerrit.wikimedia.org/r/157178

This reverts the visibility change in core (In order to fix the immediate issue). It should probably be looked into if the way that SemanticForms uses EditPage is appropriate.
Comment 7 Gerrit Notification Bot 2014-09-03 23:47:29 UTC
Change 158286 had a related patch set uploaded by Reedy:
Make EditPage::tokenOK public for SemanticForms.

https://gerrit.wikimedia.org/r/158286
Comment 8 Gerrit Notification Bot 2014-09-03 23:51:21 UTC
Change 158286 merged by jenkins-bot:
Make EditPage::tokenOK public for SemanticForms.

https://gerrit.wikimedia.org/r/158286
Comment 9 Gerrit Notification Bot 2014-09-12 19:52:54 UTC
Change 151370 merged by jenkins-bot:
Fix for Ia9baaf0b: Make previously public variables public again

https://gerrit.wikimedia.org/r/151370
Comment 10 Gerrit Notification Bot 2014-11-06 20:15:56 UTC
Change 171631 had a related patch set uploaded by Foxtrott:
Initialize variable $pageExists; remove direct use of EditPage::$mTokenOk

https://gerrit.wikimedia.org/r/171631
Comment 11 Gerrit Notification Bot 2014-11-06 20:27:39 UTC
Change 171631 merged by Foxtrott:
Initialize variable $pageExists; remove direct use of EditPage::$mTokenOk

https://gerrit.wikimedia.org/r/171631

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


Navigation
Links