Storage Update Error: Private methods cannot be final

Hey there:

I have updated the php version and needed to upgrade my phab installation. After using git pull I cannot use ./bin/storage upgrade as stated in this doc: https://secure.phabricator.com/book/phabricator/article/upgrading/

The full Error message:

[2021-01-18 22:22:52] EXCEPTION: (Exception) Error while loading file >"/var/www/code/phabricator/src/applications/base/PhabricatorApplication.php": Private methods >cannot be final as they are never overridden by other classes at [/src/init/lib/PhutilBootloader.php:275]
arcanist(head=master, ref.master=b2e715fc5a9c), phabricator(head=master, ref.master=ea9cb0b625fb)
#0 PhutilBootloader::executeInclude(string) called at [/src/init/lib/PhutilBootloader.php:207]
#1 PhutilBootloader::loadLibrarySource(string, string) called at [/src/symbols/PhutilSymbolLoader.php:422]
#2 PhutilSymbolLoader::loadSymbol(array) called at [/src/symbols/PhutilSymbolLoader.php:277]
#3 PhutilSymbolLoader::selectAndLoadSymbols() called at [/src/init/init-library.php:23]
#4 __phutil_autoload(string) called at [/src/infrastructure/events/PhabricatorEventEngine.php:30]
#5 PhabricatorEventEngine::initialize() called at [/src/infrastructure/env/PhabricatorEnv.php:133]
#6 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [/src/infrastructure/env/PhabricatorEnv.php:75]
#7 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [/scripts/init/lib.php:26]
#8 init_phabricator_script(array) called at [/scripts/init/init-setup.php:11]
#9 require_once(string) called at [/scripts/sql/manage_storage.php:5]

I hope someone can help me

Phabricator doesn’t support PHP 8 yet; you should install PHP 7 for now.

1 Like

This is likely fixed by https://secure.phabricator.com/D21540. See also https://secure.phabricator.com/D21539.

For PHP8 compatibility, see https://secure.phabricator.com/T13588.

1 Like