Page MenuHomePhabricator

Fatal error while saving global default preferences
Closed, ResolvedPublic

Description

Description

It seems that setting global defaults as described in T4103#178803 and T11098 is not working for my install.

I literally can only find the below-referenced function in phabricator/src/applications/settings/editor/PhabricatorUserPreferencesEditor.php, so I'm guessing this is some unfinished business from T11954/D16998.

Naively, it feels like that line should be $cache->deleteKey(PhabricatorUser::getGlobalSettingsCacheKey());, but I'm not sure that does what is intended (though I do see the changes in users' interfaces and their settings update to the new "Default" value).

Reproduction steps

Actual results

>>> UNRECOVERABLE FATAL ERROR <<<

Call to undefined method PhabricatorUserPreferences::getGlobalCacheKey()

/home/phabricator/phabricator/phabricator/src/applications/settings/editor/PhabricatorUserPreferencesEditor.php:162


┻━┻ ︵ ¯\_(ツ)_/¯ ︵ ┻━┻

Expected results

Setting is saved as default, without error.

Version Information

phabricator f0b695239186ed3e4f3f5124e2726e0897df829d (Fri, Dec 9)
arcanist fad85844314b151994769a461825c90f7400c145 (Oct 21 2016)
phutil 5ac2ca1214890d865bc57fab2715a322fdf02ab6 (Tue, Dec 6)

Revisions and Commits

Restricted Differential Revision
Restricted Differential Revision

Event Timeline

epriestley added a revision: Restricted Differential Revision.Dec 11 2016, 3:17 PM
epriestley triaged this task as Normal priority.

Thanks! Yeah, this was just some editing/testing slop on my part. Your suggested fix is correct.

epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Dec 11 2016, 4:28 PM
epriestley added a commit: Restricted Diffusion Commit.
epriestley added a commit: Restricted Diffusion Commit.