Page MenuHomePhabricator

[BlueSpiceAvatars] PHP Notice BS_DATA_DIR / BS_DATA_PATH
Closed, ResolvedPublic

Description

PHP Notice: Use of undefined constant BS_DATA_DIR - assumed 'BS_DATA_DIR'
in extensions/BlueSpiceAvatars/Avatars.php on line 48
PHP Notice: Use of undefined constant BS_DATA_PATH - assumed 'BS_DATA_PATH'
in extensions/BlueSpiceAvatars/Avatars.php on line 50

BlueSpiceAvatars uses BS_DATA_DIR and BS_DATA_PATH in the onRegistration callback. They are defined by BlueSpiceFoundation and might not be available depending on the load order. For example:

wfLoadExtensions( [
   'BlueSpiceAvatars',
   'BlueSpiceFoundation',
] );

Details

Related Gerrit Patches:
mediawiki/extensions/BlueSpiceAvatars : masterAdd file repo at setup time, not on registration
integration/config : masterMigrate BlueSpiceAvatars to Quibble

Event Timeline

hashar created this task.Aug 21 2018, 2:39 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 21 2018, 2:39 PM

Change 455156 had a related patch set uploaded (by Hashar; owner: Hashar):
[mediawiki/extensions/BlueSpiceAvatars@master] Add file repo at setup time, not on registration

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

hashar claimed this task.Aug 24 2018, 12:54 PM

Change 455162 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] Migrate BlueSpiceAvatars to Quibble

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

Change 455162 merged by Hashar:
[integration/config@master] Migrate BlueSpiceAvatars to Quibble

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

hashar closed this task as Resolved.Aug 24 2018, 1:22 PM

Change 455156 merged by jenkins-bot:
[mediawiki/extensions/BlueSpiceAvatars@master] Add file repo at setup time, not on registration

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

Change 461262 had a related patch set uploaded (by MGChecker; owner: MGChecker):
[mediawiki/extensions/Variables@master] Moving hooks to their own class

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

MGChecker added a subscriber: MGChecker.

Whoops, wrong task.