Page MenuHomePhabricator

edit.php is not setting up context, just $wgUser and $wgTitle globals
Closed, ResolvedPublic

Description

maxsem@tin:~$ cat somefile.txt | mwscript edit.php --wiki=testwiki Page_title
PHP Fatal error: Call to a member function isSpecial() on a non-object in /a/common/php-1.22wmf6/extensions/Echo/Hooks.php on line 804


Version: unspecified
Severity: normal

Details

Reference
bz49271

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:57 AM
bzimport set Reference to bz49271.
MaxSem created this task.Jun 6 2013, 8:04 PM

Gerrit change 67309

That was fast :)

bsitu wrote:

I put some extra check in Echo as well in case there is similar issue with other maintenance script

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

(In reply to comment #1)

Gerrit change #67309

Merged on June 6th.

(In reply to comment #3)

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

Merged on June 7th.

Assuming this is FIXED - if more work is needed, please reopen and elaborate.